﻿/* My Atlas styles on Mortar tokens. App classes use the app- prefix, never m- or bmap-. */
html, body { height: 100%; margin: 0; }
body { background: var(--m-bg); }
.m-shell { height: 100%; }
.app-muted { color: var(--m-text-3); }
.m-topbar .app-ver { cursor: pointer; background: none; border: 0; box-shadow: none; padding: 2px 4px; font: inherit; font-size: 12px; font-weight: 400; color: var(--m-text-3); }
.m-topbar .app-ver:hover { color: var(--m-accent); }
.m-topbar .app-ver { white-space: nowrap; flex: none; }
.m-topbar .m-crumbs { min-width: 0; flex-wrap: nowrap; overflow: hidden; }
.m-topbar .m-crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-logo { width: 22px; height: 22px; flex: none; filter: drop-shadow(0 0 5px rgba(255, 159, 69, .35)); }
.app-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.app-head .m-h1 { margin: 0; }
/* C0169: the active filters after the title, dimmer and smaller */
.app-h1-filt { margin-left: 14px; color: var(--m-text-2); font-size: 13.5px; font-weight: 400; letter-spacing: 0; vertical-align: middle; }
.app-h1-ico { margin-right: 10px; color: var(--m-text-2); }
.app-h1-ico .m-i { width: 1em; height: 1em; vertical-align: -.12em; }
.app-sub { margin: 6px 0 0; color: var(--m-text-2); font-size: 13.5px; max-width: 72ch; line-height: 1.5; }
@media (min-width: 1100px) { .app-sub { max-width: none; } }  /* one line on wide screens: more room for the map */
.app-whatsnew .m-h3 { margin: 14px 0 6px; }
.app-whatsnew > p:first-child { margin-top: 0; }
.app-list { margin: 0; padding-left: 20px; color: var(--m-text-2); line-height: 1.55; }
.app-list li + li { margin-top: 4px; }
.app-code { font-family: Consolas, 'Cascadia Mono', monospace; font-size: .92em; padding: 1px 5px; border-radius: 4px; background: rgba(var(--m-ink), .07); color: var(--m-text); }
/* map view */
.app-filters { margin-bottom: 16px; }
.app-filters .m-card-body { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.app-filter { width: 150px; }
.app-filter-switch { display: inline-flex; align-items: center; gap: 8px; height: 32px; cursor: pointer; color: var(--m-text-2); }
.app-filter-reset { margin-left: auto; }
.app-filter-reset[hidden] { display: none; }
.app-filters-h { display: none; }
/* wide windows: the bar in the side navigation, one filter per line (D113) */
.app-side-filters { border-top: 1px solid var(--m-line); padding-top: 12px; }
.app-side-filters[hidden] { display: none; }
.app-side-filters .app-filters { margin: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app-side-filters .m-card-body { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 12px; padding: 0; }
.app-side-filters .app-filters-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--m-text-3); }
.app-side-filters .app-filters-h .m-i { width: 14px; height: 14px; }
.app-side-filters .app-filter { width: auto; }
.app-side-filters .app-multi .m-menu { min-width: 100%; width: 100%; }
.app-side-filters .app-filter-switch { height: auto; }
.app-multi { display: block; }
.app-multi-btn { width: 100%; justify-content: space-between; text-align: left; }
.app-multi-btn .m-grow { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-multi .m-menu { min-width: 220px; max-height: 340px; overflow-y: auto; }
.app-multi-search { width: calc(100% - 16px); margin: 0 8px 6px; }
.app-multi .m-mi[hidden] { display: none; }
.app-multi-hint { margin: 4px 10px 6px; max-width: 220px; line-height: 1.4; }
.app-tiles { --min: 170px; --gap: 12px; margin-bottom: 16px; }
.app-tile { container-type: inline-size; }
.app-tile .m-stat-value { font-size: clamp(28px, 22cqi, 46px); }
.app-tile-label { display: inline-flex; align-items: center; gap: 6px; }
.app-tile-label .m-i { width: 15px; height: 15px; color: var(--m-accent); flex: none; }
/* 226: the back without a number of its own tells what the tile counts; the small tile of a dialog (country, trips, companion) */
.app-flip-note { font-size: 13px; line-height: 1.4; color: var(--m-text-2); }
.app-tile--sm > .m-stat { padding: 10px 12px; gap: 4px; }
.app-tile.app-tile--sm .m-stat-value { font-size: 22px; }
.app-tile.app-tile--sm .app-stat-html { font-size: 15px; font-weight: 700; line-height: 1.35; }
.app-tile--sm .m-stat-foot:empty { display: none; }
.app-tile--sm .app-flip-note { font-size: 12px; }
/* 226 (C0173): a chart card turns with its ↻ button; the front keeps the height, a longer back scrolls */
.app-card-flip { position: relative; cursor: auto; }
.app-card-flip > .app-flip-front { grid-area: 1 / 1; min-width: 0; }
.app-card-flip > .app-flip-back { position: absolute; inset: 0; overflow: auto; }
.app-flip-btn { position: absolute; top: 8px; right: 8px; z-index: 2; color: var(--m-text-2); }
.app-card-flip.is-flip .app-flip-btn { color: var(--m-accent); }
.app-card-flip.is-noback > .app-flip-btn { display: none; }
.app-card-back + .app-card-back { margin-top: 16px; }
.app-card-back .m-h3 { margin: 0 32px 8px 0; }
.app-card-back .m-table-scroll { max-width: 100%; overflow: visible; }   /* C0236: the card's back scrolls, not a second scroll box in it */
.app-card-flip > .app-flip-back { overflow-x: hidden; }
.app-back-dotc { width: 18px; padding-right: 0 !important; }
.app-back-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; }   /* C0235 */
/* 255 (C0179): a map box turns over too; its button at the map's foot, clear of the zoom buttons */
.app-map-flip { border-radius: 12px; }
.app-map-flip > .app-flip-btn { top: auto; bottom: 8px; background: var(--m-card-solid); }
.app-map-flip > .app-flip-back { padding: 14px 16px 48px; }   /* 264 (C0191): the card body's margins; the bottom one clears the flip button */
.app-layers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 8px 16px; border-bottom: 1px solid var(--m-line); }
.app-layer { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.app-layer i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.app-layer--places i { width: 8px; height: 8px; border-radius: 50%; background: #f5a524; }
.app-layer--flights i { background: #3d8bfd; }
.app-layer--unesco i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; }
.app-layer--trails i { background: #e5484d; }
.app-lay path.app-prov { stroke: var(--m-card-solid); stroke-width: .5; vector-effect: non-scaling-stroke; cursor: pointer; }
.app-lay path.app-prov-edge { fill: none; stroke: #e9ecef; stroke-opacity: .9; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.app-lay path.app-prov-off { fill: none; stroke: rgba(var(--m-ink), .25); stroke-width: .4; vector-effect: non-scaling-stroke; pointer-events: none; }
.app-layer--provinces i { background: var(--bmap-r4); }
.app-lay path { vector-effect: non-scaling-stroke; }
.app-lay path:not(.app-prov):not(.app-prov-off):not(.app-prov-edge):not(.app-e-pm) { fill: none; cursor: pointer; }
.app-lay-flight { stroke: #3d8bfd; stroke-width: 1.4; opacity: .75; }
.app-lay-flight:hover { opacity: 1; stroke-width: 2.4; }
.app-lay-trail { stroke: #e5484d; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-lay-trail.is-part { stroke-dasharray: 4 3; }
#app-map .bmap-pin.app-lay-place { fill: #f5a524; stroke: var(--m-card-solid); stroke-width: .5; cursor: pointer; }
#app-map .bmap-pin.app-lay-unesco { fill: #2fbf71; stroke: var(--m-card-solid); stroke-width: .5; cursor: pointer; }
.app-map-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--m-line); }
.app-legend { flex: 1 1 400px; }
.app-save { flex: none; }
/* 249: a newer version is online */
/* 279 (C0181): green like a pressed .m-btn.is-on: a light green wash with a thin green inner edge, in both themes */
.m-topbar .app-update { flex: none; color: var(--m-good-text); background: color-mix(in srgb, var(--m-good) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-good) 50%, transparent), 0 0 14px -4px color-mix(in srgb, var(--m-good) 45%, transparent); }
.m-topbar .app-update:hover { background: color-mix(in srgb, var(--m-good) 22%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-good) 70%, transparent), 0 0 16px -4px color-mix(in srgb, var(--m-good) 60%, transparent); }
@media (max-width: 599px) {   /* on a phone: the icon only, and the version number (also in the footer) makes room for it */
  .m-topbar .app-update { width: 28px; padding: 0; } .m-topbar .app-update .app-update-txt { display: none; }
  .m-topbar .app-ver:has(~ .app-update:not([hidden])) { display: none; }
  /* 285: the header fits a 375 px phone – the logo stands for the name, no separator and empty crumbs, tight gaps and
     edges, and the icon buttons keep their size instead of being squeezed. If the row is still too long (e.g. with the
     unseen-changes badge), only the version text gives way, cut at its end */
  .m-topbar { gap: 4px; padding: 0 8px; }
  .m-topbar .m-appname, .m-topbar .m-vsep, .m-topbar .m-crumbs { display: none; }
  .m-topbar > .m-btn { flex-shrink: 0; }
  .m-topbar .app-ver { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .m-topbar #app-lang { padding: 0 6px; }
  /* the five filters of the reports page do not fit a phone: the switch scrolls in its own row */
  .app-rep-filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .app-rep-filter > button { flex: none; }
  .m-topbar #app-lang { padding: 0 6px; }
}
.m-topbar .app-update:focus-visible { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-good) 70%, transparent), 0 0 0 3px var(--m-ring); }
.app-mview { flex: none; }   /* 298b b7 */
.app-mcont { flex: none; max-width: 100%; overflow-x: auto; }   /* C0137; 298b: on the left, the legend is on the map */
.app-map-head .app-save { margin-left: auto; }
.app-map-stage { position: relative; }
.app-map-key { position: absolute; top: 8px; left: 8px; z-index: 3; max-width: calc(100% - 64px); display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 6px; }
.app-map-key-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 10px; font-size: 12px; background: color-mix(in srgb, var(--m-card-solid) 88%, transparent); border: 1px solid var(--m-line-strong); border-radius: 6px; }
.app-map-key-body { flex-basis: 100%; width: max-content; max-width: 100%; max-height: 230px; overflow: auto; padding: 8px 10px; background: color-mix(in srgb, var(--m-card-solid) 94%, transparent); border: 1px solid var(--m-line-strong); border-radius: 8px; }
.app-map-key-body[hidden] { display: none; }
.app-map-key-body .app-legend { flex-direction: column; align-items: flex-start; gap: 4px; }
.app-map-layers .app-layers { flex-direction: column; align-items: flex-start; gap: 8px; padding: 0; border: 0; }
.app-map-layers .app-layers > .app-muted:first-child { display: none; }
.is-heat .app-map-legend-btn, .is-heat .app-map-legend { display: none; }
/* U2: the Map page - compact numbers, then the map on the first screen */
.app-mapnums { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; font-size: 13px; }
.app-mapnum { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.app-mapnum b { font-size: 17px; }
.app-my-legs { flex-basis: 100%; }
.app-my-legs > summary { cursor: pointer; user-select: none; padding: 2px 0; }
.app-my-legs-body { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 4px 0; }
@media (min-width: 900px) { #app-map-card .app-map-key-body { max-height: 400px; } }
@media (max-width: 640px) {
  .app-mapnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 10px; font-size: 12px; }
  .app-mapnum { min-width: 0; overflow: hidden; }
  .app-mapnum > span { overflow: hidden; text-overflow: ellipsis; }
  .app-mapnum b { font-size: 14px; }
  #app-main:has(> .app-mapnums) .app-sub { display: none; }
  #app-map-card .app-map-head { justify-content: flex-start; gap: 6px; padding: 8px 10px; }
  #app-map-card .app-map-head .app-save { margin-left: 0; }
  #app-map.bmap--gl { min-height: 330px; }
}
#app-map-card > .app-coll-leg { padding: 8px 16px 2px; }
.bmap-c.app-outline { stroke: #b39a62; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
:root[data-theme="dark"] .bmap-c.app-outline { stroke: #d9c7a3; }
.app-tiles .m-stat-foot { min-height: 16px; flex-wrap: wrap; gap: 6px; }
.bmap-key i[class^="app-band-"] { width: 14px; }
.app-band-1 { background: var(--bmap-r1); } .app-band-2 { background: var(--bmap-r2); } .app-band-3 { background: var(--bmap-r3); }
.app-band-4 { background: var(--bmap-r4); } .app-band-5 { background: var(--bmap-r5); } .app-band-6 { background: var(--bmap-r6); }
.app-band-7 { background: var(--bmap-r7); }
/* microstate points: band colour with a thin edge, so they stand out from a same-coloured neighbour */
.bmap-pin[class*="app-pin-"] { stroke: rgba(var(--m-ink), .6); stroke-width: 1; }
.app-pin-s1 { fill: var(--bmap-r1); } .app-pin-s2 { fill: var(--bmap-r2); } .app-pin-s3 { fill: var(--bmap-r3); }
.app-pin-s4 { fill: var(--bmap-r4); } .app-pin-s5 { fill: var(--bmap-r5); } .app-pin-s6 { fill: var(--bmap-r6); }
.app-pin-s7 { fill: var(--bmap-r7); } .app-pin-touched { fill: var(--m-card-solid); }
.bmap-pin[class*="app-pin-"]:hover, .bmap-pin[class*="app-pin-"]:focus-visible { fill: var(--m-accent); }
.app-legend .bmap-key--pin i { background: var(--bmap-r5); box-shadow: 0 0 0 1px rgba(var(--m-ink), .6); }
.app-country { margin-top: 16px; }
.app-country-h { margin: 16px 0 6px; }
.app-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px 16px; margin: 0; }
.app-kv dt { font-size: 11.5px; font-weight: 700; color: var(--m-text-2); }
.app-kv dd { margin: 2px 0 0; font-size: 15px; font-weight: 800; color: var(--m-text); }
.app-date { font-variant-numeric: tabular-nums; color: var(--m-text-3); margin-right: 4px; }
/* estimated values: own colour and icon (D41) */
.app-est { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--m-warn); vertical-align: middle; }
.app-est .m-i { width: 12px; height: 12px; }
/* filter: per-filter clear icon */
.app-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 18px; }
.app-multi-clear { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: rgba(var(--m-ink), .08); color: var(--m-text-2); cursor: pointer; }
.app-multi-clear:hover, .app-multi-clear:focus-visible { background: rgba(var(--m-ink), .16); color: var(--m-text); }
.app-multi-clear[hidden] { display: none; }
.app-multi-clear .m-i { width: 11px; height: 11px; }
/* country card status */
.app-status { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 12.5px; font-weight: 700; color: var(--m-text-2); }
.app-status .m-i { width: 14px; height: 14px; }
.app-status--in .m-i { color: var(--m-good-text); }
/* long lists: "show all" */
.app-more { margin-top: 8px; }
.app-more[aria-expanded="true"] .m-i { transform: rotate(180deg); }
[data-app-more-item][hidden] { display: none; }
/* overview */
.app-ov-card { margin-bottom: 16px; min-width: 0; }
.app-ov-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; }
.app-ov-row > .app-ov-card { margin-bottom: 0; }
.app-ov-row + #app-country { margin-bottom: 16px; }
.app-ov-row { margin-bottom: 16px; }
.app-ov-h { display: flex; align-items: center; gap: 8px; margin: 8px 0 12px; }
.app-ov-h .m-i { color: var(--m-accent); }
.app-ov-recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.app-ov-recs .app-ov-card { margin-bottom: 0; }
.app-ov-num { font-weight: 800; color: var(--m-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-ov-cont { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.app-ov-cont li { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px 48px; gap: 10px; align-items: center; font-size: 13px; }
.app-ov-cont .app-ov-num, .app-cont-p { text-align: right; }
.app-c1 { --c: var(--m-series-1); } .app-c2 { --c: var(--m-series-2); } .app-c3 { --c: var(--m-series-3); } .app-c4 { --c: var(--m-series-4); }
.app-c5 { --c: var(--m-series-5); } .app-c6 { --c: var(--m-series-6); } .app-c7 { --c: var(--m-series-7); } .app-c8 { --c: var(--m-series-8); }
.app-ranks, .app-recs { list-style: none; margin: 10px 0 0; padding: 0; }
.app-rank { display: grid; grid-template-columns: 26px minmax(90px, 1.2fr) minmax(40px, 1fr) auto 64px; gap: 10px; align-items: center; width: 100%; padding: 6px 4px; border: 0; border-radius: 8px; background: none; color: var(--m-text-2); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.app-rank:hover, .app-rank:focus-visible { background: rgba(var(--m-ink), .06); }
.app-rank-n { color: var(--m-text-3); font-variant-numeric: tabular-nums; text-align: right; }
.app-rank-name { color: var(--m-text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-rank-bar { height: 8px; border-radius: 4px; background: rgba(var(--m-ink), .06); overflow: hidden; }
.app-rank-bar i { display: block; height: 100%; border-radius: 4px; background: var(--m-series-1); }
.app-recs li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 0; border-top: 1px solid var(--m-line); font-size: 13px; }
.app-recs li:first-child { border-top: 0; }
.app-rec-label { color: var(--m-text-2); font-weight: 600; }
.app-rec-where { grid-column: 1 / -1; color: var(--m-text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* trips view */
.app-trips-table tbody tr[data-id] { cursor: pointer; }
.app-trips-table tbody tr[data-id]:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--m-ring); }
.app-trips-table .m-trunc { --max: 260px; }
.app-trips-table td.m-id { color: var(--m-text-2); }
/* 283 (C0197): the countries view – rows open the country's window; on a phone the five-way switch scrolls sideways */
.app-cl-table tbody tr[data-cc] { cursor: pointer; }
.app-cl-table tbody tr[data-cc]:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--m-ring); }
.app-cl-table td.m-id { color: var(--m-text-2); }
.app-cl .m-table-toolbar .m-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.app-cols .m-menu { min-width: 220px; left: auto; right: 0; }
.app-trip-when { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; color: var(--m-text); font-variant-numeric: tabular-nums; }
.app-trip-when .m-i { color: var(--m-accent); }
.app-trip-h { margin: 18px 0 6px; }
.app-trip-h > .m-i, .app-trip-h > .app-flag { margin-right: 6px; }   /* 278 (C0193): an icon or a flag stands apart from its title */
.app-trip .m-body { margin: 0; }
.app-trip-ccb { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.app-trip-src { margin: 18px 0 0; }
@media (max-width: 600px) {
  .app-filter { width: calc(50% - 8px); }
  .app-multi .m-menu { min-width: 100%; width: 100%; }
  .app-cols .m-menu { left: 0; right: auto; }
  .app-tiles { --min: 140px; }
  .app-tile .m-stat-value { font-size: clamp(26px, 20cqi, 40px); }
  .app-rank { grid-template-columns: 22px minmax(0, 1fr) auto; }
  .app-rank-bar, .app-rank > .m-small { display: none; }
}
@media (max-width: 900px) {
  .app-ov-row { grid-template-columns: minmax(0, 1fr); }
  .app-ov-recs { grid-template-columns: minmax(0, 1fr); }
}

/* data view: backup, restore, reload from the import */
.app-data-info { margin: 0 0 16px; }
.app-data-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.app-data-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.app-data-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.app-data-warn { color: var(--m-warn-text); font-size: 13px; }
.app-data-msg:empty { display: none; }
/* L11: the server's backups */
.app-cloud-who { display: block; margin: 8px 0; }
.app-cloud-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 320px; overflow: auto; }
.app-cloud-list:empty { display: none; }
.app-cloud-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--m-border); }
.app-dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.app-dlg-actions--top { margin: 0 0 12px; }   /* 295 (C0200): a long window has its buttons at the top too */

/* country card: all trips | destination trips */
.app-country-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 24px; }

/* trips: a horizontal scrollbar above the table too */
.app-top-scroll { overflow-x: auto; overflow-y: hidden; margin-bottom: 4px; }
.app-top-scroll > div { height: 1px; }
.app-top-scroll[hidden] { display: none; }

/* trip editor */
.app-edit { display: grid; gap: 16px; max-width: 980px; }
.app-e-h { margin: 0 0 12px; }
.app-e-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.app-e-wide { grid-column: 1 / -1; }
.app-e-dom { padding-bottom: 8px; }
.app-e-cc { display: grid; grid-template-columns: 22px minmax(160px, 2fr) minmax(120px, 1.2fr) repeat(3, minmax(64px, .7fr)) auto auto; gap: 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--m-line, rgba(127,127,127,.2)); }
.app-e-cc:last-child { border-bottom: 0; margin-bottom: 8px; }
.app-e-n { display: grid; gap: 4px; font-size: 12px; color: var(--m-text-2); }
.app-e-cc .m-check { padding-bottom: 8px; white-space: nowrap; }
.app-e-places { width: 100%; }
.app-e-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.app-e-addp { display: flex; gap: 8px; max-width: 420px; }
.app-e-addp .m-input { flex: 1; min-width: 0; }
.app-e-checks { display: grid; gap: 6px 16px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.app-e-list { margin: 4px 0 0; padding-left: 18px; }
.app-e-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; bottom: 0; z-index: 2; padding: 10px 12px; border-radius: var(--m-r-lg, 12px); background: var(--m-card-solid); box-shadow: 0 -6px 24px -12px rgba(0,0,0,.35); }
@media (max-width: 1099px) {
  .app-e-cc { grid-template-columns: 1fr 1fr 1fr; }
  .app-e-cc select { grid-column: 1 / -1; }
  .app-e-ccflag { display: none; }
}

/* record groups: icon before the title */
.app-rec-h { display: flex; align-items: center; gap: 8px; }

/* trips in the country card: clickable, look like the list */
.app-trip-link { text-align: left; color: inherit; font: inherit; padding: 0; background: none; border: 0; cursor: pointer; }
.app-trip-link:hover { color: var(--m-accent); }

/* flags (D122) and transport / activity icons (D123) */
.app-flag { width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; flex: none; }
.m-plate > .app-flag { width: 22px; height: 22px; margin: 0; vertical-align: middle; }
.app-xi-cell { white-space: nowrap; }
.app-xi { display: inline-flex; margin-right: 6px; color: var(--m-text-2); }
.app-xi .m-i { width: 18px; height: 18px; }
.app-xi-t { margin-right: 6px; font-size: 12px; color: var(--m-text-2); }
.app-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.app-chips li { display: inline-flex; align-items: center; gap: 6px; }
.app-chips .m-i { width: 18px; height: 18px; color: var(--m-text-2); }
.app-rec-label .m-i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--m-text-2); }

/* trip dialog: wide, details left, the trip's map right (stacked on narrow screens) */
.app-dlg-wide .m-modal-box { width: min(1040px, 100%); }
.app-dlg-wide .app-trip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.app-trip-map { height: 340px; border-radius: 12px; overflow: hidden; }
.app-trip-map { height: auto; overflow: visible; }
.app-mini-map { height: 300px; border-radius: 12px; overflow: hidden; }
.app-trip-map .app-layers, .app-cc-map .app-layers { padding: 0 0 8px; border: 0; gap: 4px 12px; }
.app-layer--colls i { width: 8px; height: 8px; border-radius: 50%; background: #a970ff; }
#app-dlg .bmap-pin.app-lay-place, #app-dlg .bmap-pin.app-lay-unesco, #app-dlg .bmap-pin.app-lay-coll, #app-map .bmap-pin.app-lay-coll, .app-mini-map .bmap-pin.app-lay-place, .app-mini-map .bmap-pin.app-lay-unesco, .app-mini-map .bmap-pin.app-lay-coll { transform-box: fill-box; transform-origin: center; transform: scale(.35); stroke: var(--m-card-solid); stroke-width: .5; cursor: pointer; }
.bmap-pin.app-lay-place { fill: #f5a524; } .bmap-pin.app-lay-unesco { fill: #2fbf71; } .bmap-pin.app-lay-coll { fill: #a970ff; }
.app-trip > .app-dlg-actions { grid-column: 1 / -1; }
:root .app-trip > .app-tagbox { grid-column: 1 / -1; margin: 0 0 14px; }   /* C0329 */
:root .app-trip > .app-tagbox .app-tagin { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
:root .app-trip > .app-tagbox .app-tagin .app-tag { --h: 22px; --fs: 12px; --px: 8px; --ic: 13px; }
:root .app-trip > .app-tagbox .app-tagin-q { height: 22px; border-bottom: 1px solid transparent; }
:root .app-trip > .app-tagbox .app-tagin-q:focus { border-bottom-color: var(--m-line); }
:root .app-trip > .app-tagbox .app-tagin-list { top: calc(100% - 4px); }
.app-trip-pl + .app-trip-pl { margin-top: 4px; }
@media (max-width: 760px) {
  .app-dlg-wide .app-trip { grid-template-columns: minmax(0, 1fr); }
  .app-trip-map { height: 260px; }
  .app-trip-side { order: -1; }
  :root .app-trip > .app-tagbox { order: -2; }
}

/* editor additions (23f, 23g) */
.app-e-h { display: flex; align-items: center; gap: 8px; }
.app-e-h .m-i, .app-e-sub .m-i { color: var(--m-text-2); }
.app-e-sub { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 14px; }
.app-e-wide2 { grid-column: span 2; }
.app-e-alt { display: grid; gap: 12px; grid-template-columns: minmax(120px, 180px) 1fr; align-items: end; margin-bottom: 12px; }
.app-e-ccflag { align-self: end; padding-bottom: 9px; }
.app-e-ccflag .app-flag { margin: 0; }
.app-e-ck { display: flex; align-items: center; gap: 8px; min-height: 34px; }
.app-e-ckl { display: inline-flex; align-items: center; gap: 6px; }
.app-e-ckl .m-i { width: 18px; height: 18px; color: var(--m-text-2); }
.app-e-checks--km { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 40px; }
.app-e-checks--km .app-e-ck { padding-right: 12px; border-right: 1px solid rgba(127,127,127,.15); }
.app-e-km { width: 84px; height: 30px; margin-left: auto; }
.app-e-rel { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(180px, 280px) auto; gap: 8px 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(127,127,127,.18); }
.app-e-rell { font-weight: 700; font-size: 13px; color: var(--m-text-2); }
.app-e-rel .app-e-tags { margin: 0; }
#app-e-newp { margin-top: 12px; justify-self: start; width: auto; }
/* next_steps 172: a companion on some days only */
.app-e-pres { margin-top: 12px; }
.app-e-pres summary { cursor: pointer; color: var(--m-text-2); }
.app-e-presrow { display: grid; grid-template-columns: 110px repeat(2, minmax(0, 170px)) minmax(0, 200px); gap: 8px 12px; align-items: center; padding: 6px 0; }
.app-person { display: grid; gap: 12px; }
@media (max-width: 700px) {
  .app-e-rel { grid-template-columns: minmax(0, 1fr) auto; }
  .app-e-rel .app-e-tags, .app-e-rel .app-e-pick { grid-column: 1 / -1; }
  .app-e-presrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app-e-presrow .app-e-rell { grid-column: 1 / -1; }
  .app-e-wide2 { grid-column: 1 / -1; }
}

/* overview: more charts under the records (23h) */
.app-ov-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.app-ov-charts .app-ov-card { margin-bottom: 0; }
@media (max-width: 600px) { .app-ov-charts { grid-template-columns: minmax(0, 1fr); } }

/* 23i: country card people, km lines, editor km unit, days hint, dark date pickers */
.app-country-people { margin: 0; }
.app-km-line { margin: 8px 0 0; color: var(--m-text-2); }
.app-km-total { display: block; margin-top: 4px; }
.app-km-line b { color: var(--m-text); }
.app-km-total b { color: var(--m-accent); }
.app-e-kmw { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--m-text-2); }
.app-e-kmw[hidden] { display: none; }
.app-e-kmw .app-e-km { margin-left: 0; }
#app-e-kmsum .app-km-line { margin-top: 14px; font-size: 14px; }
.app-warn-text { color: var(--m-warn-text); }
:root[data-theme="dark"] .m-input, :root[data-theme="dark"] .m-select { color-scheme: dark; }
:root[data-theme="light"] .m-input, :root[data-theme="light"] .m-select, :root[data-theme="beige"] .m-input, :root[data-theme="beige"] .m-select { color-scheme: light; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) .m-input { color-scheme: dark; } }

/* record rows open their ranking (24) */
.app-rec-row { cursor: pointer; border-radius: 8px; }
.app-rec-row:hover { background: rgba(var(--m-ink), .05); }
.app-rec-row:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-rank-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.app-rank-list li { display: grid; grid-template-columns: 28px minmax(90px, auto) minmax(0, 1fr); gap: 10px; align-items: baseline; }
.app-rank-go { text-align: left; padding: 0; border: 0; background: none; font: inherit; color: var(--m-accent); cursor: pointer; }

/* filter: length of the trip (26) */
.app-f-len { display: flex; align-items: center; gap: 6px; }
.app-f-len .m-input { width: 68px; min-width: 0; }
.app-side-filters .app-f-len .m-input { flex: 1; width: auto; }

/* master data (27) */
.app-master-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.app-master-head .app-data-h { margin: 0; }
.app-master-chips { margin: 4px 0 14px; }
.app-own { font-size: 10px; }
.app-master-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.app-master-add .m-input { flex: 1 1 140px; min-width: 0; }
.app-master-add .m-select { flex: 0 0 140px; }
.app-m-act { white-space: nowrap; text-align: right; }
/* editor: place rows (name, flag, country, coordinate, status) and flight legs (from city + airport → to city + airport, km) */
.app-e-pls { display: grid; gap: 6px; margin-bottom: 8px; }
.app-e-pl { display: grid; grid-template-columns: minmax(150px, 2fr) 22px minmax(140px, 1.4fr) minmax(130px, 1fr) 24px auto; gap: 8px; align-items: center; }
.app-e-pst { display: inline-flex; justify-content: center; color: var(--m-text-3); }
.app-e-pst--ok { color: var(--m-good, #2f9e5b); }
.app-e-pst--warn { color: var(--m-warn); }
.app-e-pst .m-i { width: 18px; height: 18px; }
.app-e-leg { display: grid; grid-template-columns: 70px minmax(110px, 1fr) minmax(150px, 1.4fr) 20px minmax(110px, 1fr) minmax(150px, 1.4fr) 110px 96px; gap: 8px; align-items: center; margin-top: 8px; grid-column: 1 / -1; }
.app-e-legn { font-size: 12px; color: var(--m-text-2); }
.app-e-legto { display: inline-flex; justify-content: center; color: var(--m-text-3); }
.app-e-air { height: 30px; min-width: 0; }
.app-e-legx { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--m-text-3); }   /* 348 e: flight number, aircraft, registration */
.app-e-legx .m-input { height: 30px; width: 130px; min-width: 0; }
.app-e-legx .app-e-ac { width: 190px; }
.app-e-legx .app-e-seat { width: 70px; }   /* 356d: seat and cabin class */
.app-e-legx .app-e-cabin { height: 30px; width: auto; }   /* 288: the airline of a leg */
#app-e-legs { display: block; }
.app-e-kmoff { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--m-warn-text); }
.app-e-kmoff .m-i { width: 15px; height: 15px; }
@media (max-width: 1099px) {
  .app-e-pl { grid-template-columns: 1fr 22px 1fr 24px auto; }
  .app-e-pl [data-p="coord"] { grid-column: 1 / 3; grid-row: 2; }
  .app-e-leg { grid-template-columns: 1fr 1fr; }
  .app-e-legn { grid-column: 1 / -1; }
  .app-e-legto { display: none; }
}

/* trip dialog: map, days per country, km per means of transport (next_steps 35) */
.app-trip-side, .app-trip-cmaps { display: grid; gap: 32px; align-content: start; }   /* 258 (C0183): the maps apart */
.app-trip-cmaps:empty { display: none; }
.app-trip-chart .app-trip-h { margin-top: 0; }
.app-trip-chart[hidden] { display: none; }

/* rankings and chart details (next_steps 34): list left, bar chart right */
.app-rank-dlg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.app-rank-dlg--one { grid-template-columns: minmax(0, 1fr); }
.app-rank-chart { position: sticky; top: 0; }
.app-rank-full { margin-top: 12px; }
.app-rank-list--chart li { grid-template-columns: 28px minmax(90px, auto) minmax(0, 1fr); }
.app-rank-list .app-flag, .app-rec-where .app-flag { margin-right: 4px; }
.app-ov-click { cursor: pointer; }
.app-ov-click:hover { box-shadow: 0 0 0 1px rgba(var(--m-accent-rgb), .45); }
.app-leg-ico { display: inline-flex; margin-right: 4px; vertical-align: -3px; }
.app-leg-ico .m-i { width: 14px; height: 14px; }
.app-leg-ico .app-flag { margin-right: 0; width: 14px; height: 14px; }
/* 361: the legends of the charts stand in columns, so their colour squares line up (the map keys have their own layout) */
.m-legend:not(.app-legend), .app-cv-legend:has(.app-cv-key) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.m-legend:not(.app-legend) .m-legend-i { min-width: 0; white-space: normal; }
@media (max-width: 760px) { .app-rank-dlg { grid-template-columns: minmax(0, 1fr); } .app-rank-chart { position: static; } }

/* extreme points with a world map (next_steps 29b) */
.app-ov-recs .app-ext-card, .app-ov-recs #app-fl-card { grid-column: 1 / -1; }   /* the airlines and aircraft across the page too */
.app-ext { display: grid; grid-template-columns: minmax(260px, 1fr) auto minmax(0, 1.6fr); gap: 20px; align-items: center; }
@media (min-width: 901px) { .app-ext:not(:has(> .app-ext-scale)) > .app-ext-view { grid-column: 2 / -1; } }   /* no height gauge: the map takes its column too */
.app-ext-map { width: 100%; height: auto; display: block; }
.app-ext-land path { fill: rgba(var(--m-ink), .16); stroke: var(--m-card-solid); stroke-width: .4; }
.app-ext-guide { stroke: rgba(var(--m-ink), .28); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }   /* 253 (C0185) */
.app-ext-guide.is-equator, .app-ext-guide.is-meridian { stroke: rgba(var(--m-ink), .38); }
.app-ext-guide-hit { stroke: transparent; stroke-width: 8; pointer-events: stroke; vector-effect: non-scaling-stroke; }   /* 263 (C0190): the name on hover */
.app-ext-guides g:hover .app-ext-guide { stroke: rgba(var(--m-ink), .6); }
.app-ext-line { stroke: var(--m-accent); stroke-width: 1.8; stroke-dasharray: 6 4; }
.app-ext-veil { fill: var(--m-card-solid); opacity: .6; pointer-events: none; }
.app-ext-country { fill: rgba(217, 199, 163, .07); stroke: #b39a62; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }   /* 299 (C0206); C0210: a fainter fill, close to the map's own grey, so the visited part stands out */
:root[data-theme="dark"] .app-ext-country { stroke: #d9c7a3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) .app-ext-country { stroke: #d9c7a3; } }
.app-ext-pt circle { fill: none; stroke: var(--m-accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.app-ext-pt line { stroke: var(--m-accent); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.app-ext-alt circle { fill: #fff; stroke: #1f6feb; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.app-ext-alt use { color: #1b2333; }
.app-ext-alt.is-summit circle { fill: var(--m-card-solid); stroke: rgba(var(--m-ink), .55); stroke-dasharray: 2 1.5; }   /* 281 (C0195): the continent's summit, apart from the own marks */
.app-ext-alt.is-summit use { color: rgba(var(--m-ink), .7); }
.app-ext-air { fill: #f5a524; stroke: var(--m-card-solid); stroke-width: 1; vector-effect: non-scaling-stroke; animation: app-ext-air-in .5s ease-out both; }   /* 284 (C0198): the flights' airports, as the map's places */
@keyframes app-ext-air-in { from { opacity: 0; } }
/* 296 (C0202): the airports' legend, below the map – clear of the point labels */
.app-ext-legend { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--m-text-2, inherit); font-size: 11px; line-height: 1.4; }
.app-ext-legend-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5a524; flex: none; }
@media (prefers-reduced-motion: reduce) { .app-ext-air { animation: none; } }
.app-ext-lab.is-summit b { font-weight: 500; color: var(--m-text-2, inherit); }
.app-ext-line, .app-ext-pt, .app-ext-land path { vector-effect: non-scaling-stroke; }
.app-ext-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 8px; }
.app-ext-head .app-rec-h { margin: 0; }
.app-ext-tabs { max-width: 100%; overflow-x: auto; }
.app-ext-note { margin: 12px 0 0; }
.app-ext-map { overflow: hidden; border-radius: 8px; }
.app-ext-view { min-width: 0; }
.app-ext-box { position: relative; min-width: 0; }
/* C0163 (237): the points' labels over the map, beside their point, outwards */
.app-ext-lab { position: absolute; display: flex; flex-direction: column; max-width: 11em; padding: 2px 6px; border-radius: 6px;
  background: color-mix(in srgb, var(--m-card-solid) 84%, transparent); font-size: 10.5px; line-height: 1.25; color: var(--m-text-2, inherit); pointer-events: none; white-space: nowrap; transform: translate(-50%, -100%); margin-top: -10px; }
.app-ext-lab b { font-weight: 600; color: var(--m-text, inherit); overflow: hidden; text-overflow: ellipsis; }
.app-ext-lab.is-s { transform: translate(-50%, 0); margin-top: 10px; }
.app-ext-lab.is-e { transform: translate(0, -50%); margin: 0 0 0 10px; }
.app-ext-lab.is-w { transform: translate(-100%, -50%); margin: 0 0 0 -10px; }
.app-ext-box.is-compact .app-ext-lab span { display: none; }
.app-ext-lab.is-off { visibility: hidden; }
/* the height scale (272): between the list and the map; a thin base column −440 m dark blue … 8850 m white, on it the thick
   column of the heights reached; own records on the left (orange line), metres on the right */
.app-ext-scale { position: relative; align-self: stretch; width: 164px; min-height: 230px; cursor: pointer; border-radius: 8px; outline-offset: 2px; }
.app-ext-bar { position: absolute; top: 14px; bottom: 10px; left: 70px; width: 20px; }
.app-ext-base { position: absolute; top: 0; bottom: 0; left: 7px; width: 6px; border-radius: 3px; background: linear-gradient(to top, #0b2a5e 0%, #2a64a8 4.7%, #7aa7d6 35%, #c9ddf0 70%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(var(--m-ink), .2); }
.app-ext-base.is-country { background: linear-gradient(to top, #2a64a8 0%, #7aa7d6 35%, #c9ddf0 70%, #ffffff 100%); }   /* 282: sea level … the country's summit */
.app-ext-own { position: absolute; left: 2px; width: 16px; border-radius: 5px; background: var(--m-accent); box-shadow: 0 0 0 1.5px var(--m-card-solid); }
.app-ext-tick { position: absolute; left: 14px; width: 6px; height: 0; border-top: 1px solid rgba(var(--m-ink), .4); }
.app-ext-tick.is-sea { left: 0; width: 20px; border-top: 1.5px solid rgba(var(--m-ink), .55); }
.app-ext-tick span { position: absolute; left: 10px; top: -.65em; font-size: 10px; line-height: 1.25; font-style: normal; white-space: nowrap; color: var(--m-text-2, inherit); }
.app-ext-tick.is-sea span { left: 24px; }
.app-ext-tick.is-top { border-top-color: transparent; }
.app-ext-tick.is-top span { top: -.7em; }
.app-ext-tick.is-top b { display: block; font-weight: 600; color: var(--m-text, inherit); }
.app-ext-cmark { position: absolute; left: 14px; width: 10px; height: 9px; margin-top: -4.5px; cursor: help; }   /* 260 (C0186): the continent's highest / lowest land point */
.app-ext-cmark::before { content: ""; position: absolute; left: 0; right: 0; top: 3.5px; border-top: 2px solid rgba(var(--m-ink), .55); border-radius: 1px; }
.app-ext-mine { position: absolute; left: -12px; width: 34px; height: 0; border-top: 2px solid #ff9f45; border-radius: 1px; pointer-events: none; }
.app-ext-end { position: absolute; right: calc(100% + 14px); display: flex; align-items: center; gap: 4px; transform: translateY(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; color: var(--m-text, inherit); }
.app-ext-end .m-i { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: #fff; color: #1b2333; box-shadow: 0 0 0 1.5px #1f6feb; flex: none; }
@media (max-width: 900px) { .app-ext { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; } .app-ext-view { grid-column: 1 / -1; } .app-ext-scale { width: 150px; } }

/* country card (next_steps 33) */
.app-country-badge { margin: 0 8px 0 0; }
.app-cstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.app-country-part { margin-bottom: 12px; width: 100%; flex: 1 1 100%; }
.app-country-cols, .app-country-two { width: 100%; flex: 1 1 100%; }
.app-country-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 24px; }
.app-country-sec { display: flex; align-items: center; gap: 8px; margin: 24px 0 4px; }
.app-crecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px 24px; margin-bottom: 8px; }
.app-crec-h { display: flex; align-items: center; gap: 6px; margin: 8px 0 4px; font-size: 13px; color: var(--m-text-2); }
.app-crec-h .m-i { width: 15px; height: 15px; }
.app-country .app-ov-charts { margin-top: 8px; }
/* 233 (C0154, D277): the country window in cards; each card's first title at its top */
.app-cblk { margin-top: 12px; }
/* 286: the country's extremes card sits bare in its block, under the block's own heading */
.app-cc-ext .app-ext-card { border: 0; background: none; box-shadow: none; }
.app-cc-ext .app-ext-card > .m-card-body { padding: 0; }
.app-cc-ext .app-ext-head { display: none; }
.app-cblk > .m-card-body > .app-country-sec:first-child, .app-cblk > .m-card-body > .app-country-part:first-child > .app-country-sec:first-child { margin-top: 0; }
.app-data-credits { margin-top: 16px; }
/* 355: country data – name, this country, the compared one, difference; on a narrow card the values go under the name */
#app-cc-data, .app-cd-host { container-type: inline-size; }
.app-cd-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 8px; }
.app-cd-pick .m-select { width: auto; max-width: 100%; }
.app-cd-pair { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 24px; }
.app-cd-pick:has(.app-combo-list.is-flow:not([hidden])) { align-items: flex-start; }   /* C0345: the field stays where it was */
.app-cd-group { margin-top: 14px; }
.app-cd-line.app-cd-s3 { stroke: var(--m-series-3); }
.app-cd-dot.app-cd-s3, .app-cd-bar.app-cd-s3 { fill: var(--m-series-3); }
.app-cd-key.app-cd-s3 { background: var(--m-series-3); }
.app-cd-gh, .app-cd-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2px 12px; align-items: start; }
.app-cd--two .app-cd-gh, .app-cd--two .app-cd-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr); }
.app-cd-gh { margin: 0; padding-bottom: 4px; border-bottom: 2px solid var(--m-line); font-size: 13px; }
.app-cd-gname { font-weight: 800; color: var(--m-text); }
.app-cd-col { font-size: 11.5px; font-weight: 700; color: var(--m-text-2); }
.app-cd-list { list-style: none; margin: 0; padding: 0; }
.app-cd-row { padding: 7px 0; border-bottom: 1px solid var(--m-line); }
.app-cd-name { font-weight: 700; color: var(--m-text); }
.app-cd-val { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.app-cd-who { display: none; }
.app-cd-num b { font-variant-numeric: tabular-nums; color: var(--m-text); }
.app-cd-src .m-i { width: 12px; height: 12px; }
.app-cd-meta { font-size: 11.5px; color: var(--m-text-3); }
.app-cd-calc { font-size: 11px; font-weight: 700; color: var(--m-text-2); }
.app-cd-diff { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--m-text-2); }
.app-cd-help { grid-column: 1 / -1; margin: 2px 0 0; color: var(--m-text-2); }
.app-cd-help[hidden] { display: none; }
.app-cd-foot { margin: 8px 0 0; }
.app-cd-charts { margin-top: 10px; }
.app-cd-figs { display: flex; flex-wrap: wrap; gap: 12px; }
.app-cd-fig { flex: 1 1 260px; max-width: 460px; min-width: 0; margin: 0; }
.app-cd-fig figcaption { font-weight: 700; color: var(--m-text-2); }
.app-cd-fig svg { display: block; width: 100%; height: auto; }
.app-cd-grid { stroke: var(--m-line); stroke-width: 1; }
.app-cd-zero { stroke: var(--m-line-strong); }
.app-cd-tick { font-size: 10px; fill: var(--m-text-3); }
.app-cd-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.app-cd-line.app-cd-s1 { stroke: var(--m-series-1); }
.app-cd-line.app-cd-s2 { stroke: var(--m-series-2); }
.app-cd-dot.app-cd-s1, .app-cd-bar.app-cd-s1 { fill: var(--m-series-1); }
.app-cd-dot.app-cd-s2, .app-cd-bar.app-cd-s2 { fill: var(--m-series-2); }
.app-cd-hit { fill: transparent; }
.app-cd-hit:hover { fill: var(--m-accent-wash); fill-opacity: .35; }
.app-cd-legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 4px; }
.app-cd-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--m-text-2); }
.app-cd-key { width: 10px; height: 10px; border-radius: 2px; }
.app-cd-key.app-cd-s1 { background: var(--m-series-1); }
.app-cd-key.app-cd-s2 { background: var(--m-series-2); }
.app-cd-tbl summary { cursor: pointer; color: var(--m-text-2); }
.app-cd-scroll { overflow-x: auto; }
.app-cd-tbl table { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app-cd-tbl th, .app-cd-tbl td { padding: 2px 6px; border-bottom: 1px solid var(--m-line); text-align: right; white-space: nowrap; }
.app-cd-tbl th[scope="row"] { text-align: left; }
@container (max-width: 520px) {
  .app-cd-gh .app-cd-col { display: none; }
  .app-cd-gh { display: block; }
  .app-cd-row, .app-cd--two .app-cd-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .app-cd-name { grid-column: 1 / -1; }
  .app-cd-who { display: block; font-size: 11px; font-weight: 700; color: var(--m-text-3); }
  .app-cd-diff { grid-column: 1 / -1; }
  .app-cd-diff:empty { display: none; }
}

/* 355n: the visual comparison – group cards, charts and the badge. .app-cd-h: the base country, .app-cd-t: the compared one */
.app-cd-h { --c: var(--m-series-2); }
.app-cd-t { --c: var(--m-series-1); }
.app-cd-u { --c: var(--m-series-3); }
/* 357b: the switch and the buttons on a floating palette that stays on top while the cards are scrolled */
.app-cv-bar { position: sticky; top: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 8px 0 4px;
  padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-card-solid); box-shadow: 0 10px 24px -14px rgba(0,0,0,.55); }
.m-modal-body .app-cv-bar { top: -16px; }   /* the bodys own padding: no card shows above the palette */
.app-cv-persw { flex: none; }
.app-cv-per { font-size: 12px; font-weight: 600; color: var(--m-text-3); white-space: nowrap; }
@container (max-width: 640px) {
  .app-cv-bar { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; gap: 8px; padding: 6px 8px; }
  .app-cv-bar .app-cv-tools { flex: none; flex-wrap: nowrap; margin-left: 0; }
  .app-cv-bar .m-btn, .app-cv-bar .m-seg { flex: none; white-space: nowrap; }
}
.app-cv-who, .app-cv-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-cv-tools { justify-content: flex-end; margin-left: auto; }
.app-cv-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px 3px 8px; border: 2px solid var(--c); border-radius: 999px; font-size: 15px; font-weight: 800; }
.app-cv-tools [aria-pressed="true"] { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.app-cv-cc { font-size: 11px; font-weight: 800; color: var(--m-text-3); }
.app-cv-card { margin-top: 12px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-card-solid); }
.app-cv-top { display: flex; align-items: center; gap: 8px; }
.app-cv-top h5 { flex: 1; min-width: 0; margin: 0; }
.app-cv-gh { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: none; font: inherit; color: var(--m-text); text-align: left; cursor: pointer; }
.app-cv-gi { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--m-accent-wash); color: var(--m-accent); }
.app-cv-gi .m-i { width: 26px; height: 26px; margin: 0; }
.app-cv-gt { display: flex; flex-direction: column; min-width: 0; }
.app-cv-gname { font-size: 20px; font-weight: 800; }
.app-cv-peek { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; font-weight: 600; color: var(--m-text-2); }
.app-cv-chev { margin-left: auto; font-size: 18px; color: var(--m-text-3); }
.app-cv-gh[aria-expanded="false"] .app-cv-chev { transform: rotate(-90deg); }
.app-cv-body { padding: 0 14px 14px; }
.app-cv-body[hidden] { display: none; }
.app-cv-cols, .app-cv--two .app-cv-row, .app-cv--two .app-cv-prow { display: grid; grid-template-columns: 150px minmax(0, 1fr) 128px; gap: 6px 16px; align-items: center; }
/* 355r: the practical facts */
.app-cv-prow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--m-line); }
.app-cv-pvals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.app-cv-pvals .app-cv-val { align-items: flex-start; }
.app-cv-pcc { display: none; }
.app-cv-prow .app-cv-bachelp { grid-column: 1 / -1; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--m-accent-wash); color: var(--m-text-2); }
.app-cv-bachelp summary { cursor: pointer; font-weight: 700; }
.app-cv-bachelp p { margin: 6px 0 0; }
.app-cv-plugs { display: flex; flex-wrap: wrap; gap: 8px; }
.app-cv-plug { display: flex; flex-direction: column; align-items: center; font-size: 12px; font-weight: 800; }
.app-cv-pface { fill: none; stroke: var(--c); stroke-width: 2; }
.app-cv-pin { fill: var(--m-text); }
.app-cv-hole { fill: none; stroke: var(--m-text); stroke-width: 1.5; }
.app-cv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.app-cv-road { margin-bottom: 2px; }
.app-cv-asphalt { fill: var(--m-line); }
.app-cv-lane { fill: none; stroke: var(--m-text-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.app-cv-ownway { fill: var(--c); }
.app-cv-oncoming { fill: var(--m-text-3); opacity: .6; }
.app-cv-beers { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.app-cv-glasses { display: flex; flex-wrap: wrap; gap: 3px; }
.app-cv-beer { fill: var(--m-warn); }
.app-cv-rim { fill: none; stroke: var(--m-text-2); stroke-width: 1.5; stroke-linejoin: round; }
.app-cv-cross { fill: none; stroke: var(--m-text); stroke-width: 1.5; }
.app-cv-cols { padding-bottom: 5px; border-bottom: 2px solid var(--m-line); font-weight: 800; color: var(--m-text-2); }
.app-cv-colv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.app-cv-colh { display: flex; align-items: center; border-bottom: 3px solid var(--c); padding-bottom: 2px; }
.app-cv-colw { text-align: center; font-size: 11.5px; }
.app-cv-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--m-line); }
.app-cv-name { font-weight: 800; color: var(--m-text); }
.app-cv-vis { min-width: 0; }
/* 387c2: the icon of a row, its name with a short description, the three-position switch, grid <-> pie */
/* 387c4: money rows step through the currencies */
.app-cv-row--money .app-cv-vis { cursor: pointer; }
.app-cv-vis button.app-cv-cur { display: block; margin: 6px auto 0; padding: 1px 10px; border: 1px solid var(--m-line); border-radius: 999px; background: none; font: 600 11px/20px var(--m-font); color: var(--m-text-3); cursor: pointer; }
.app-cv-vis button.app-cv-cur:hover, .app-cv-vis button.app-cv-cur:focus-visible { color: var(--m-text); border-color: var(--m-accent); }
button.app-cv-curnum.app-cv-curnum { padding: 0; border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
@media print { .app-cv-vis button.app-cv-cur { display: none; } button.app-cv-curnum.app-cv-curnum { text-decoration: none; } }

.app-cc-headbtns { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.app-cv-name { position: relative; }
.app-cv-nline { display: flex; align-items: center; gap: 7px; }
.app-cv-ricon { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--m-accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.app-cv-name .app-cv-nbtn { min-width: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; overflow-wrap: anywhere; cursor: help; }
.app-cv-pop { display: none; position: absolute; left: 0; z-index: 6; width: max-content; max-width: min(300px, 78vw); max-height: 50vh; overflow-y: auto; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-card-solid); box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); font: 500 12.5px/1.45 var(--m-font); color: var(--m-text-2); }
.app-cv-nline:has(.app-cv-nbtn:focus-visible) + .app-cv-pop, .app-cv-nline:has(.app-cv-nbtn[aria-expanded="true"]) + .app-cv-pop { display: block; }
@media (hover: hover) { .app-cv-nline:has(.app-cv-nbtn:hover) + .app-cv-pop { display: block; } }
.app-cv--info .app-cv-name .app-cv-pop { display: none; }
.app-cv-mode { display: inline-flex; flex: none; flex-direction: column; align-items: center; gap: 2px; }
.app-cv-mode--col .m-seg > button { min-width: 28px; padding: 0 6px; }
.app-cv-mname { font-size: 11.5px; font-weight: 700; }
.app-cv-row--people .app-cv-pie > svg { cursor: pointer; }
.app-cv-vis .app-cv-gridsw { display: block; margin: 6px auto 0; padding: 1px 10px; border: 1px solid var(--m-line); border-radius: 999px; background: none; font: 600 11px/20px var(--m-font); color: var(--m-text-3); cursor: pointer; }
.app-cv-vis .app-cv-gridsw:hover { color: var(--m-text); }
.app-cv-help { display: none; grid-column: 1 / -1; margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--m-accent-wash); color: var(--m-text-2); }
.app-cv--info .app-cv-help { display: block; }
.app-cv-val { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.app-cv-val b { font-size: 15px; font-weight: 800; color: var(--m-text); font-variant-numeric: tabular-nums; }
.app-cv-meta { font-size: 11px; font-weight: 600; color: var(--m-text-3); }
/* 357c: the total score beside the country names and the list of the rows behind it */
.app-cv-score { margin-left: 6px; min-width: 28px; padding: 0 8px; border: 1px solid var(--c, var(--m-line)); border-radius: 999px; background: var(--m-card-solid); color: var(--m-text); font: 800 13px/20px var(--m-font); cursor: pointer; }
.app-cv-score--tie { margin-left: 0; font-weight: 600; color: var(--m-text-3); }
.app-cv-score[aria-expanded="true"] { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.app-cv-scorebox { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--m-line); border-radius: 14px; background: var(--m-card-solid); max-height: 320px; overflow: auto; }
.app-cv-scorebox ul { list-style: none; margin: 6px 0 0; padding: 0; }
.app-cv-scorebox li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 3px 0; font-size: 13px; border-top: 1px solid var(--m-line); }
.app-cv-scorebox li.app-cv-scoreg { padding-top: 8px; border-top: 0; font-weight: 800; color: var(--m-text-3); }
.app-cv-scorev { display: inline-flex; flex-wrap: wrap; gap: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.app-cv-scorev b { padding-bottom: 1px; border-bottom: 2px solid var(--c, var(--m-line)); }
.app-cv-vis .app-flag, .app-cv-pcc .app-flag, .app-cv-who .app-flag, .app-cv-colh .app-flag, .app-cv-badge .app-flag { width: 18px; height: 18px; margin-right: 4px; }
.app-cv-tr { display: block; width: 100%; overflow: visible; }
.app-cv-fill { fill: var(--c); }
.app-cv-track, .app-cv-ghost { fill: var(--m-line); }
.app-cv-shade { fill: #000; fill-opacity: .2; }
.app-cv-p1 { fill-opacity: .6; }
.app-cv-p2 { fill-opacity: .35; }
.app-cv-p1 { fill-opacity: .65; }
.app-cv-tidecap { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 6px; }
.app-cv-tsw { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 2px; background: var(--c); }
.app-cv-tsw.app-cv-p1 { opacity: .65; }
.app-cv-tsw.app-cv-p2 { opacity: .35; }
.app-cv-p3 { fill-opacity: .2; }
.app-cv-p4 { fill-opacity: .12; stroke: var(--c); stroke-width: 1.5; }
.app-cv-axis { stroke: var(--m-text-3); stroke-width: 1; }
.app-cv-sea { stroke: var(--m-series-1); stroke-width: 2; stroke-dasharray: 6 3; }
.app-cv-mark { fill: var(--c); stroke: var(--m-card-solid); stroke-width: 2; }
.app-cv-stem { stroke: var(--c); stroke-width: 2; }
.app-cv-hole { fill: var(--m-card-solid); stroke: var(--c); stroke-width: 2; }
.app-cv-ring { fill: none; stroke: var(--m-line); stroke-width: 12; }
.app-cv-arc { fill: none; stroke: var(--c); stroke-width: 12; }
.app-cv-hb { display: grid; grid-template-columns: 22px minmax(0, 1fr) 120px; gap: 8px; align-items: center; margin: 3px 0; }
.app-cv-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; align-items: start; }   /* 387c1: equal drawings keep one baseline, flags stay level */
.app-cv-side { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.app-cv-pair--row .app-cv-side { flex-direction: row; justify-content: center; text-align: left; gap: 8px; }
.app-cv-under { display: flex; align-items: center; justify-content: center; gap: 4px; }
.app-cv-draw { display: block; max-width: 100%; }
/* 387c1: the flag at the first line of its text, everything else in the column beside it */
.app-cv-side.app-cv-text { display: grid; grid-template-columns: auto minmax(0, auto); justify-content: center; align-content: start; align-items: start; justify-items: center; column-gap: 4px; }
.app-cv-text > * { grid-column: 2; }
.app-cv-text > :first-child { grid-column: 1; grid-row: 1; margin-top: 4px; }
.app-cv-chip { display: inline-block; max-width: 100%; padding: 4px 12px; border: 2px solid var(--c); border-radius: 14px; font-weight: 800; overflow-wrap: anywhere; }
.app-cv-same { margin: 4px 0 0; text-align: center; }
.app-cv-dot, .app-cv-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.app-cv-key.app-cv-p1 { opacity: .6; }
.app-cv-key.app-cv-p2 { opacity: .35; }
.app-cv-key.app-cv-p3 { opacity: .2; }
.app-cv-key.app-cv-p4 { background: transparent; border: 2px solid var(--c); }
.app-cv-ghostkey { background: var(--m-line); }
/* 355t: the true size map over the whole window */
.app-size, .app-size[popover] { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--m-card-solid); color: var(--m-text); }
.app-size-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--m-line); }
.app-size-t { flex: 1 1 240px; min-width: 0; }
.app-size-t h3, .app-size-t p { margin: 0; }
.app-size-stage { position: relative; flex: 1; min-height: 0; }
.app-size-map.bmap { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
.app-size-map.bmap .bmap-svg { width: 100%; height: 100%; max-height: none; }
.app-size-map .bmap-mv { fill-opacity: .45; stroke-width: 1.5; }   /* the compared country stays visible under a larger outline */
/* 357g: the data map over the comparison */
.app-cv-name .app-cv-globe { display: flex; align-items: center; gap: 4px; width: fit-content; margin: 2px 0 0; padding: 1px 8px 1px 2px; border: 0; border-radius: 999px; background: none; color: var(--m-text-3); font: 600 11px/20px var(--m-font); white-space: nowrap; cursor: pointer; }   /* 387c1: always on its own line under the name */
.app-cv-globe:hover, .app-cv-globe:focus-visible { background: var(--m-accent-wash); }
.app-print .app-cv-globe { display: none; }
.app-dm, .app-dm[popover] { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--m-card-solid); color: var(--m-text); }
.app-dm .app-size-head h3 + p { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.app-dm .app-size-stage { overflow: hidden; }
.app-dm-bar { display: flex; flex: none; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 6px 14px; border-bottom: 1px solid var(--m-line); }
.app-dm-pick, .app-dm-seg { display: inline-flex; align-items: center; gap: 4px; }
.app-dm-seg[hidden] { display: none; }
.app-dm-pick .m-select { width: min(320px, 56vw); }
.app-dm-bar [aria-pressed="true"] { background: var(--m-accent); border-color: var(--m-accent); color: #fff; }
.app-dm .bmap-globe { display: none; }   /* the view is chosen in the bar */
.app-dm-body { position: relative; display: flex; flex: 1; min-height: 0; }
.app-dm-flat { position: absolute; inset: 0; display: flex; align-items: center; overflow: auto; padding: 8px; }
.app-dm-flat[hidden] { display: none; }
.app-dm-flat svg { width: 100%; height: 100%; flex: none; }
.app-dm-sea { fill: var(--m-accent-wash); stroke: var(--m-line); stroke-width: .6; }
.app-dm-land { fill: var(--m-line); stroke: var(--m-card-solid); stroke-width: .4; cursor: pointer; }
#app-dm-nodata line { stroke: var(--m-text-3); stroke-width: 1.2; }
.app-dm-edge { fill: none; stroke: var(--m-text); stroke-width: 2.2; pointer-events: none; }
.app-dm-ring { fill: none; stroke-width: 1.1; pointer-events: none; }
.app-dm-rank { display: flex; flex: none; flex-direction: column; gap: 6px; width: 300px; min-height: 0; padding: 8px 10px; border-left: 1px solid var(--m-line); background: var(--m-card-solid); }
.app-dm-rank[hidden] { display: none; }
.app-dm-rank .m-input { flex: none; width: 100%; }
.app-dm-rank ol { flex: 1; min-height: 0; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.app-dm-rank li button { display: grid; grid-template-columns: 34px 12px 1fr auto; align-items: center; gap: 6px; width: 100%; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.app-dm-rank li button:hover, .app-dm-rank li button:focus-visible { background: var(--m-accent-wash); }
.app-dm-rank li i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--m-line); }
.app-dm-rank li b { white-space: nowrap; }
.app-dm-pos { color: var(--m-text-3); text-align: right; font-variant-numeric: tabular-nums; }
.app-dm-rname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-dm-own { box-shadow: inset 3px 0 0 var(--c); }
.app-dm-own--h { --c: var(--m-series-2); }
.app-dm-own--t { --c: var(--m-series-1); }
.app-dm-own--u { --c: var(--m-series-3); }
.app-dm-gap { color: var(--m-text-3); text-align: center; line-height: 1.2; }
.app-dm-card { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; gap: 2px; max-width: min(300px, calc(100% - 80px)); padding: 10px 14px; border: 1px solid var(--m-line); border-radius: 12px; background: var(--m-card-solid); pointer-events: none; }
.app-dm-card[hidden] { display: none; }
.app-dm-cname { font-size: 15px; }
.app-dm-cval { font-size: 22px; font-weight: 800; }
.app-dm-legend { flex: none; padding: 8px 14px 10px; border-top: 1px solid var(--m-line); }
.app-dm-scale { max-width: 760px; margin: 0 auto; padding: 0 12px; }
.app-dm-classes { display: flex; gap: 2px; }
.app-dm-class { display: flex; flex: 1; flex-direction: column; align-items: stretch; min-width: 0; padding: 0; border: 0; border-radius: 4px; background: none; color: inherit; font: inherit; text-align: center; cursor: pointer; }
.app-dm-class[aria-pressed="true"] { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.app-dm-n { font-size: 11px; font-weight: 700; color: var(--m-text-2); }
.app-dm-barbox { display: flex; align-items: flex-end; height: 34px; }
.app-dm-barbox i { width: 100%; border-radius: 4px 4px 0 0; opacity: .8; }
.app-dm-chip { height: 12px; }
.app-dm-marks { position: relative; height: 12px; }
.app-dm-mark { position: absolute; top: 0; width: 0; height: 0; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom: 10px solid var(--c); }
.app-dm-mark--h { --c: var(--m-series-2); }
.app-dm-mark--t { --c: var(--m-series-1); }
.app-dm-mark--u { --c: var(--m-series-3); }
.app-dm-mark--p { --c: var(--m-text); }
.app-dm-mark--m { --c: var(--m-text-3); }
.app-dm-limits { position: relative; height: 16px; font-size: 11px; color: var(--m-text-2); }
.app-dm-limits span { position: absolute; white-space: nowrap; }
.app-dm-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-top: 4px; font-size: 13px; }
.app-dm-key { display: inline-flex; align-items: center; gap: 5px; }
.app-dm-key i { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.app-dm-key i.app-dm-hatch { background: repeating-linear-gradient(45deg, var(--m-text-3) 0 1.5px, transparent 1.5px 4px); }
.app-dm-how { max-width: 760px; margin: 4px auto 0; text-align: center; }
.app-dm-sizes { display: flex; justify-content: center; }
.app-dm-sizes line { stroke: var(--m-text-3); stroke-width: .6; }
.app-dm-sizes text { fill: var(--m-text-2); font-size: 11px; }
.app-dm-bubble { fill-opacity: .75; stroke: var(--m-text); stroke-width: .3; cursor: pointer; }
.app-dm-seg .m-btn svg { margin-right: 4px; }
@media (max-width: 640px) {
  .app-dm-legend { padding: 6px 8px 8px; }
  .app-dm-bar { flex-wrap: nowrap; overflow-x: auto; padding: 6px 8px; }
  .app-dm-pick, .app-dm-seg { flex: none; }
  .app-dm-flat svg { width: auto; height: auto; min-width: 720px; }
  .app-dm-rank { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; width: auto; height: 75%; border-left: 0; border-top: 1px solid var(--m-line); }
  .app-dm-how, .app-dm .app-size-head h3 + p { display: none; }
  .app-dm-limits { font-size: 9.5px; }
  .app-dm-card { left: 8px; top: auto; bottom: 34px; }
}

/* 357f2: age pyramids; the women's side is the same colour, lighter */
.app-cv-pyr { max-width: 100%; height: auto; }
.app-cv-faint path { fill: none; stroke: var(--c); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .65; vector-effect: non-scaling-stroke; }
.app-cv-shp path { fill: var(--c); fill-opacity: .55; stroke: var(--c); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.app-cv-strap { fill: var(--m-text); opacity: .3; }
.app-cv-money { max-width: 100%; height: auto; }
.app-cv-rest > summary { cursor: pointer; margin: 6px 0; text-align: center; }
.app-cv-bkey { margin: 4px 0 0; text-align: center; }
.app-cv-row[data-r="area"] .app-cv-draw { cursor: pointer; }
.app-cv-squares { max-width: 100%; height: auto; }
.app-cv-outsvg { max-width: 100%; height: auto; }

.app-cv-person { stroke: none; }
.app-cv-pyf { opacity: .6; }
.app-cv-pyt { fill: var(--m-text-3); font-size: 8px; }

/* 357d: C0334 - the other country's shape faint over this one's, after a second of resting or by a click */
.app-cv-ov { opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.app-cv-ovshape { fill: var(--c); fill-opacity: .28; stroke: var(--c); stroke-width: 1.5; stroke-dasharray: 4 3; }
/* 387c1: a click on a slice or a segment drew the browser's square focus frame; the keyboard focus brightens the part */
.app-cv-vis svg [tabindex]:focus { outline: none; }
.app-cv-vis svg [tabindex]:focus-visible { stroke: var(--m-text); stroke-width: 2; }
[data-cv-over] { cursor: pointer; }
[data-cv-over]:hover .app-cv-ov, [data-cv-over]:focus-visible .app-cv-ov { opacity: 1; transition-delay: 1s; }
[data-cv-over].app-cv-on .app-cv-ov { opacity: 1; transition-delay: 0s; }
@media (prefers-reduced-motion: reduce) { .app-cv-ov { transition-duration: 0s; } }
.app-cv-tier { fill: none; stroke: var(--m-card-solid); stroke-width: 1; }
.app-cv-pitch { fill: var(--m-good-text); fill-opacity: .55; }
/* the awards: an icon by every name; a click shows that many icons instead of the bars in every line */
.app-cv-award { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; border: 0; border-radius: 6px; background: none; font: inherit; color: inherit; cursor: pointer; }
.app-cv-award[aria-pressed="true"] { background: var(--m-accent-wash); color: var(--m-text); }
.app-cv-awicon { flex: none; fill: var(--c, var(--m-text-3)); }
.app-cv-vis:has([data-cv-award]) { cursor: pointer; }
.app-cv-awicons { display: none; flex: 1; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.app-cv-fly:not(.app-cv-fly--one) .app-cv-half.app-cd-h .app-cv-awicons { justify-content: flex-end; }
.app-cv-half.is-icons .app-cv-tr { display: none; }
.app-cv-half.is-icons .app-cv-awicons { display: flex; }
.app-cv-maplink .m-i { width: 12px; height: 12px; margin: 0; }
/* 357f5: coats of arms; a light plate keeps dark emblems visible in the dark theme */
.app-cv-coa { width: 104px; max-width: 100%; height: 104px; object-fit: contain; padding: 6px; border: 2px solid var(--c); border-radius: 14px; background: #fff; }
.app-cv-side.app-cv-text:has(> .app-cv-coa) { display: flex; flex-direction: column; justify-content: flex-start; align-self: start; }
.app-cv-days { max-width: 100%; text-align: left; font-size: .9em; }
.app-cv-days summary { cursor: pointer; font-weight: 600; text-align: center; }
.app-cv-days ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow: auto; }
.app-cv-days li { padding: 2px 0; }
.app-cv-days li > span { display: inline-block; min-width: 7.5em; font-variant-numeric: tabular-nums; }
.app-cv-row[data-r="anthem"] .app-cv-side { align-self: start; align-content: flex-start; }
.app-cv-fx { display: block; }
@container (max-width: 640px) {
  .app-cv-vis .app-cv-fly:not(.app-cv-fly--one) { grid-template-columns: minmax(0, 1fr) minmax(0, 80px) minmax(0, 1fr); gap: 4px; }
  .app-cv-fly .app-cv-award { flex-direction: column; gap: 1px; padding: 0; }
  .app-cv-fly .app-cv-half { gap: 3px; }
  .app-cv-awicons { gap: 1px; }
}
/* C0339: the corner button of a badge */
.app-cv-diff { position: relative; min-height: 20px; }
.app-cv-swap { position: absolute; top: -9px; right: -7px; width: 20px; height: 20px; padding: 0; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-card-solid); color: var(--m-text-3); font: 700 11px/18px var(--m-font); cursor: pointer; }
.app-cv-swap:hover, .app-cv-swap:focus-visible { color: var(--m-accent); border-color: var(--m-accent); }
.app-print .app-cv-swap { display: none; }
.app-cv--two .app-cv-row.app-cv-row--wide { grid-template-columns: 150px minmax(0, 1fr) 230px; }
.app-cv--two.app-cv--ratio .app-cv-row.app-cv-row--narrow { grid-template-columns: 150px minmax(0, 1fr) 128px; }

/* 355o: pies with a shared legend, the badge as a button, "where better" and the second drawing */
.app-cv-pies { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.app-cv-pie { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.app-cv-slice { stroke: var(--m-card-solid); stroke-width: 2; }
.app-cv-pring { fill: none; stroke: var(--c); stroke-width: 3; }
/* 355s: a warmer, leafy green than --m-series-3; validated next to series-4 (yellow) and series-1 (blue) in both themes */
.app-cv-k0 { --k: #457F12; }
:root[data-theme="light"] .app-cv-k0, :root[data-theme="beige"] .app-cv-k0 { --k: #3C9A2E; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .app-cv-k0 { --k: #3C9A2E; } }
.app-cv-k1 { --k: var(--m-series-4); }
.app-cv-k2 { --k: var(--m-series-1); }
.app-cv-k3 { --k: var(--m-series-8); }
.app-cv-k4 { --k: var(--m-series-7); }
.app-cv-k5 { --k: var(--m-series-3); }
.app-cv-k6 { --k: var(--m-series-2); }
.app-cv-kn { --k: var(--m-text-3); }
.app-cv-kx { --k: var(--m-line); }
.app-cv-slice { fill: var(--k); }
.app-cv-sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--k); }
.app-cv-legtbl { flex: 1 1 200px; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.app-cv-legtbl th, .app-cv-legtbl td { padding: 3px 6px; border-bottom: 1px solid var(--m-line); text-align: right; }
.app-cv-legtbl th[scope="row"] { text-align: left; font-weight: 600; }
button.app-cv-badge { display: block; width: 100%; font: inherit; color: var(--m-text); cursor: pointer; }
button.app-cv-badge:hover { filter: brightness(1.12); }
button.app-cv-badge:focus-visible, button.app-cv-badge[aria-expanded="true"] { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--m-line)) 22%, transparent), 0 0 14px 2px color-mix(in srgb, var(--c, var(--m-line)) 65%, transparent); }
.app-cv-badge.app-cv-badge--better { --c: var(--m-good-text); border: 2px solid var(--m-good-text); background: var(--m-card-solid); }
.app-cv-badge--better b span { color: var(--m-good-text); }
.app-cv-row[data-win="h"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip),
.app-cv-row[data-win="t"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip) { color: var(--m-good-text); }
.app-cv-row[data-win="h"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip),
.app-cv-row[data-win="t"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip) { color: var(--m-danger-text); }
.app-cv-row[data-win="h"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-total)::after,
.app-cv-row[data-win="t"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-total)::after { content: "\00a0✓"; }
.app-cv-row[data-win="h"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-total)::after,
.app-cv-row[data-win="t"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-total)::after { content: "\00a0✗"; }
.app-cv-more { grid-column: 1 / -1; padding: 10px 12px; border-radius: 10px; background: var(--m-accent-wash); }
.app-cv-more[hidden] { display: none; }
.app-cv-units { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.app-cv-unit { display: block; }
.app-cv-gap { margin: 6px 0 4px; }
.app-cv-gaptext { fill: var(--m-text-2); font-size: 11px; font-weight: 700; }
.app-cv-ends { display: flex; justify-content: space-between; gap: 8px; }
.app-cv-picto { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 3px 0; }
.app-cv-icons { display: inline-flex; flex-wrap: wrap; gap: 2px; }
.app-cv-ico { overflow: hidden; }
.app-cv-part { margin: 4px 0 0; }
.app-cv-stackrow { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.app-cv-stackrow > div { flex: 1; min-width: 0; }
.app-cv-legend { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 2px; }
.app-cv-legend .app-cv-key { margin-right: 4px; width: 8px; height: 8px; }
.app-cv-total { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.app-cv-fly { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 130px) minmax(0, 1fr); gap: 4px 8px; align-items: center; }
.app-cv-fly--one { grid-template-columns: minmax(0, 150px) minmax(0, 1fr); }
.app-cv-flyh { text-align: right; }
.app-cv-flyl { text-align: center; }
.app-cv-half { display: flex; align-items: center; gap: 6px; min-width: 0; }
.app-cv-half .app-cv-tr { flex: 1; min-width: 0; }
.app-cv-n { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.app-cv-badge { padding: 6px 8px; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--c) 20%, transparent); text-align: center; }
.app-cv-badge b { display: flex; justify-content: center; align-items: center; font-size: 14px; }
.app-cv-badge--same { --c: var(--m-text-3); }
.app-cv-lead { display: block; margin-top: 4px; }
/* 355z: the ratio badge - both values at the two ends, a split bar with a divider at the share */
.app-cv-badge.app-cv-badge--ratio { --c: var(--m-text-3); border: 1px solid var(--m-line); background: var(--m-card-solid); }
.app-cv-rends { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; }
.app-cv-rends b { color: var(--c); font-variant-numeric: tabular-nums; }
.app-cv-rends b:last-child { margin-left: auto; }
.app-cv-rends b:last-child .app-flag { margin: 0 0 0 4px; }
.app-cv-delta { display: block; margin-top: 2px; font-size: 12px; font-weight: 800; color: var(--m-text-2); text-align: center; }
.app-cv-split { stroke: var(--m-text); stroke-width: 2; }
.app-cv-neg { fill: transparent; stroke: var(--c); stroke-width: 1.5; }
.app-cv--ratio .app-cv-cols, .app-cv--ratio.app-cv--two .app-cv-row, .app-cv--ratio.app-cv--two .app-cv-prow { grid-template-columns: 150px minmax(0, 1fr) 230px; }
.app-cv-numbers { margin-top: 10px; }
.app-cv-numbers > summary { cursor: pointer; color: var(--m-text-2); }
.app-cv-move { display: inline-flex; flex: none; gap: 2px; padding-right: 8px; }
.app-cv--sort [draggable="true"] { cursor: grab; }
.app-cv--sort .app-cv-card { border-style: dashed; border-color: var(--m-accent); }
.app-cv-sortrows { list-style: none; margin: 0; padding: 0; }
.app-cv-sortrows li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--m-line); font-weight: 700; }
@container (max-width: 640px) {
  .app-cv-cols { display: none; }
  .app-cv--two .app-cv-row, .app-cv--two .app-cv-row.app-cv-row--wide, .app-cv--two.app-cv--ratio .app-cv-row.app-cv-row--narrow { grid-template-columns: minmax(0, 1fr) 118px; }
  .app-cv-row { grid-template-columns: minmax(0, 1fr); }
  .app-cv-name { grid-column: 1; grid-row: 1; }
  .app-cv-diff { grid-column: 2; grid-row: 1; }
  .app-cv-vis { grid-column: 1 / -1; }
  .app-cv-prow, .app-cv--two .app-cv-prow, .app-cv--ratio.app-cv--two .app-cv-prow { grid-template-columns: minmax(0, 1fr); }
  .app-cv-pcc { display: block; }
  .app-cv--ratio.app-cv--two .app-cv-row { grid-template-columns: minmax(0, 1fr); }
  .app-cv--ratio .app-cv-diff { grid-column: 1; grid-row: auto; }
  .app-cv-hb { grid-template-columns: 22px minmax(0, 1fr) 100px; }
  .app-cv-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-cv-pair--row .app-cv-side { flex-direction: column; text-align: center; }
  .app-cv-side.app-cv-text { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .app-cv-text > *, .app-cv-text > :first-child { grid-column: 1; grid-row: auto; margin-top: 0; }
  .app-cv-fly { grid-template-columns: minmax(0, 1fr) minmax(0, 96px) minmax(0, 1fr); }
  .app-cv-gname { font-size: 18px; }
}

/* 355q: three countries – three columns, the badge of the three, the best one marked */
.app-cd--three .app-cd-gh, .app-cd--three .app-cd-row { grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); }
.app-cv--three .app-cv-cols, .app-cv--three.app-cv--two .app-cv-row, .app-cv--three.app-cv--two .app-cv-prow { grid-template-columns: 150px minmax(0, 1fr) 190px; }
.app-cv--three .app-cv-colv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-cv-badge--three { padding: 6px 8px; }
button.app-cv-badge.app-cv-badge--three { border: 1px solid var(--m-line); background: var(--m-card-solid); }
button.app-cv-badge.app-cv-badge--three.app-cv-badge--better { border: 2px solid var(--m-good-text); }
.app-cv-badge[data-v] > span { display: none; }
.app-cv-badge[data-v="0"] > .app-cv-v0, .app-cv-badge[data-v="1"] > .app-cv-v1, .app-cv-badge[data-v="2"] > .app-cv-v2 { display: block; }
.app-cv-badge[data-v] svg { display: block; margin: 0 auto; max-width: 100%; overflow: visible; }
.app-cv-b3 { display: grid; grid-template-columns: 22px minmax(0, 1fr) 62px; align-items: center; gap: 4px; margin: 2px 0; text-align: right; font-variant-numeric: tabular-nums; }
.app-cv-badge .app-cv-b3 b { display: block; font-size: 12px; }
.app-cv-badge--better .app-cv-top3, .app-cv-badge--better .app-cv-t3--best { color: var(--m-good-text); fill: var(--m-good-text); }
.app-cv-ring3 { fill: none; stroke: var(--m-line); }
.app-cv-arm { stroke: var(--c); stroke-width: 7; stroke-linecap: round; }
.app-cv-t3 { fill: var(--m-text-2); font-size: 10px; font-weight: 600; }
.app-cv-t3--best { fill: var(--m-text); font-weight: 800; }
.app-cv-dim { opacity: .55; }
.app-cv-r3 { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 4px; text-align: left; font-variant-numeric: tabular-nums; }
.app-cv-badge .app-cv-r3 b { display: block; font-size: 13px; color: var(--c); }
.app-cv-fly3 { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.app-cv-fly3 .app-cv-half { flex: 1; }
.app-cv-fly3 .app-cv-n { min-width: 34px; text-align: right; }
.app-cv--three .app-cv-pair { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-cv-row[data-best~="h"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip),
.app-cv-row[data-best~="t"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip),
.app-cv-row[data-best~="u"] .app-cv-vis .app-cd-u :is(.app-cv-val > b, .app-cv-n, .app-cv-total, .app-cv-chip) { color: var(--m-good-text); }
.app-cv-row[data-best~="h"] .app-cv-vis .app-cd-h :is(.app-cv-val > b, .app-cv-total)::after,
.app-cv-row[data-best~="t"] .app-cv-vis .app-cd-t :is(.app-cv-val > b, .app-cv-total)::after,
.app-cv-row[data-best~="u"] .app-cv-vis .app-cd-u :is(.app-cv-val > b, .app-cv-total)::after { content: "\00a0✓"; }
@container (max-width: 640px) {
  .app-cv--three.app-cv--two .app-cv-row, .app-cv--three.app-cv--two .app-cv-prow { grid-template-columns: minmax(0, 1fr); }
  .app-cv--three .app-cv-diff { grid-column: 1; grid-row: auto; }
  .app-cv--three .app-cv-pair { gap: 8px 4px; }
  .app-cv--three .app-cv-side { overflow-wrap: anywhere; }
  .app-cv--three .app-cv-draw, .app-cv--three .app-cv-pie > svg { max-width: 100%; }
  .app-cv--three .app-cv-pies { justify-content: space-around; gap: 12px 4px; }
  .app-cv--three .app-cv-legtbl { flex-basis: 100%; }
}
@container (max-width: 520px) {
  .app-cd--three .app-cd-gh, .app-cd--three .app-cd-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* UNESCO (next_steps 36) */
.app-unesco-chips .m-i { color: var(--m-text-2); }
.app-e-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.app-e-upick { max-width: 520px; }
.app-u-bar { gap: 16px; justify-content: flex-start; align-items: center; }
.app-u-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));   /* C0323: wider cards */ gap: 16px; align-items: start; margin-top: 16px; }
.app-u-list .app-ov-card { margin-bottom: 0; }
.app-u-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.app-u-h .app-trip-ccb { flex: 1; text-align: left; }
.app-u-n { font-size: 13px; color: var(--m-text-2); font-variant-numeric: tabular-nums; }
.app-u-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.app-u-sites li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.app-u-sites .m-i { width: 15px; height: 15px; flex: none; align-self: center; }
.app-u-seen .m-i { color: var(--m-good-text); }
.app-u-not { color: var(--m-text-3); }
.app-u-mark { cursor: pointer; border-radius: 6px; padding: 2px 4px; margin: 0 -4px; }
.app-u-mark:hover, .app-u-mark:focus-visible { background: rgba(var(--m-ink), .06); }
.app-mono { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: rgba(var(--m-ink), .14); color: var(--m-text); font-size: 10px; font-weight: 700; line-height: 1; vertical-align: -3px; }
.app-person-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.app-person-trips { border-left: 1px solid var(--m-line); padding-left: 24px; }
.app-person-trips .m-h3 { margin: 0 0 8px; }
.app-ptrips li { align-items: center; }
.app-psplit { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--m-line); display: grid; gap: 8px; }
.app-psplit .m-btn { justify-self: start; }
.app-person [data-app-merge] { width: auto; justify-self: start; align-self: start; margin-top: 8px; }
.app-person-trips .app-u-sites { max-height: 60vh; overflow: auto; }
.app-pi .m-i { width: .95em; height: .95em; margin: 0 3px 0 0; vertical-align: -.1em; opacity: .7; }
.app-plink { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.app-plink:hover, .app-plink:focus-visible { color: var(--m-accent); text-decoration: underline; }
.app-b-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-b-list li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--m-line); font-size: 14px; }
.app-b-list li:last-child { border-bottom: 0; }
.app-b-list .m-i { flex: none; }
.app-b-where { display: block; margin-top: 2px; }
.app-b-where .app-flag { margin-right: 2px; }
.app-idea { align-items: center !important; }
.app-idea .m-btn { flex: none; }
.app-i-where { max-width: 260px; }
.app-mark-note { display: flex; gap: 8px; align-items: center; margin: 0 0 8px; }
.app-mark-flag { white-space: nowrap; }
.app-mark-sug { margin-left: 6px; }
.app-b-cc { min-height: 160px; }
.app-coll-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-coll-row { display: grid; grid-template-columns: 20px 260px minmax(60px, 1fr) 96px 52px; gap: 10px; align-items: center; padding: 7px 6px; border-radius: 8px; color: inherit; text-decoration: none; }
.app-coll-row:hover, .app-coll-row:focus-visible { background: rgba(var(--m-ink), .06); }
.app-coll-row .app-muted, .app-coll-row .app-ov-num { text-align: right; }
.app-coll-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-coll-t { font-weight: 600; }
.app-sug { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
.app-sug .m-btn { padding: 0 6px; min-height: 22px; }
.is-est { opacity: .7; border: 1px dashed currentColor; background: transparent; }
.app-rec-now { margin-left: 6px; background: rgba(var(--m-accent-rgb), .3); font-weight: 600; }
.app-rec-former { margin-left: 6px; opacity: .7; }
.app-mark-part { margin-left: 6px; background: rgba(var(--m-accent-rgb), .18); }
@media (max-width: 600px) { .app-coll-row { grid-template-columns: 20px minmax(0, 1fr) auto; } .app-coll-row .app-rank-bar, .app-coll-row .app-muted { display: none; } }
.app-q-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.app-q-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 6px 0; border-bottom: 1px solid var(--m-line); }
.app-q-row:last-child { border-bottom: 0; }
/* the window's icon left of its title, matched to the title (Attila 2026-10-28) */
.m-modal-head > .m-plate { width: 46px; height: 46px; border-radius: 13px; }
.m-modal-head > .m-plate .m-i { width: 24px; height: 24px; }
.m-modal-head > .m-plate > .app-flag { width: 32px; height: 32px; }
.app-q-row > .app-rank-go { min-width: 240px; }
.app-flag-btn { padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; }
.app-flag-btn:hover .app-flag, .app-flag-btn:focus-visible .app-flag { outline: 2px solid var(--m-accent); outline-offset: 1px; }
a.app-e-pst { text-decoration: none; }
a.app-e-pst:hover { color: var(--m-accent); }
.app-e-cpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 8px; }
.app-e-cpickw { display: flex; align-items: center; gap: 8px; }
.app-e-cpickw .m-select { flex: 1; min-width: 0; }
.m-tag .app-flag, .m-btn .app-flag { margin-right: 2px; }
.app-sov { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--m-line); }
.app-sov-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 16px; }
.app-sov-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 12px; }
.app-sov-cc { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; }
.app-sov-map .app-layers { padding: 0 0 8px; border: 0; }
@media (max-width: 700px) { .app-sov-row { grid-template-columns: minmax(0, 1fr); } }
.app-coll-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px; margin-bottom: 4px; }
.app-coll-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--m-text-2); text-decoration: none; background: rgba(var(--m-ink), .05); }
.app-coll-tab:hover { color: var(--m-text); background: rgba(var(--m-ink), .09); }
.app-coll-tab.is-on { color: var(--m-text); background: rgba(var(--m-accent-rgb), .2); }
.app-coll-tab .m-i { width: 15px; height: 15px; }
/* 387 (CG, DCG2–DCG3): the collection groups – their colours (light and dark), the chip row with pictures, the hub's cards */
:root { --app-cg-all: 108, 117, 128; --app-cg-nature: 47, 128, 66; --app-cg-culture: 176, 86, 46; --app-cg-cities: 66, 98, 140; --app-cg-leisure: 18, 128, 128; --app-cg-food: 150, 44, 78; --app-cg-bucket: var(--m-accent-rgb); --app-cg-other: 108, 117, 128; }
:root[data-theme="dark"] { --app-cg-all: 160, 170, 182; --app-cg-nature: 110, 196, 128; --app-cg-culture: 232, 150, 108; --app-cg-cities: 140, 176, 220; --app-cg-leisure: 88, 206, 198; --app-cg-food: 232, 124, 156; --app-cg-other: 160, 170, 182; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) { --app-cg-all: 160, 170, 182; --app-cg-nature: 110, 196, 128; --app-cg-culture: 232, 150, 108; --app-cg-cities: 140, 176, 220; --app-cg-leisure: 88, 206, 198; --app-cg-food: 232, 124, 156; --app-cg-other: 160, 170, 182; } }
.app-cg-c-all { --cg: var(--app-cg-all); } .app-cg-c-nature { --cg: var(--app-cg-nature); } .app-cg-c-culture { --cg: var(--app-cg-culture); } .app-cg-c-cities { --cg: var(--app-cg-cities); }
.app-cg-c-leisure { --cg: var(--app-cg-leisure); } .app-cg-c-food { --cg: var(--app-cg-food); } .app-cg-c-bucket { --cg: var(--app-cg-bucket); } .app-cg-c-other { --cg: var(--app-cg-other); }
.app-cg-nav { margin-bottom: 8px; }
.app-cg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 10px; }
.app-cg-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 14px 4px 5px; border-radius: 999px; border: 1px solid transparent; background: rgba(var(--m-ink), .05); color: var(--m-text-2); text-decoration: none; white-space: nowrap; transition: background var(--m-t-fast, .15s), border-color var(--m-t-fast, .15s); }
.app-cg-chip:hover { color: var(--m-text); background: rgba(var(--m-ink), .09); }
.app-cg-chip:focus-visible, .app-cg-card:focus-visible, .app-cg-sibl:focus-visible, .app-cg-kind:focus-visible { outline: 2px solid rgb(var(--cg, var(--m-accent-rgb))); outline-offset: 2px; }
.app-cg-chip.is-on { color: var(--m-text); background: rgba(var(--cg), .16); border-color: rgba(var(--cg), .6); }
.app-cg-ill { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(var(--cg), .14); color: rgb(var(--cg)); }
.app-cg-ill .m-i { width: 20px; height: 20px; }
.app-cg-chip-t { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; font-weight: 600; }
.app-cg-chip-n { font-size: 11px; font-weight: 500; color: var(--m-text-3); font-variant-numeric: tabular-nums; }
.app-cg-sep { width: 1px; height: 28px; background: rgba(var(--m-ink), .14); margin: 0 2px; }
.app-cg-c-bucket .app-cg-ill { background: transparent; border: 1.5px dashed rgba(var(--cg), .6); }
.app-cg-sib { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0 0 12px; }
.app-cg-sibl { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 11px; border-radius: 999px; font-size: 13px; color: var(--m-text-2); text-decoration: none; }
.app-cg-sibl .m-i { width: 15px; height: 15px; color: rgb(var(--cg)); }
.app-cg-sibl:hover { color: var(--m-text); background: rgba(var(--m-ink), .06); }
.app-cg-sibl.is-on { color: var(--m-text); font-weight: 600; background: rgba(var(--cg), .14); }
.app-cg-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 16px; }
.app-cg-q { flex: 1 1 280px; max-width: 480px; }
.app-cg-sec { margin: 0 0 22px; }
.app-cg-gh { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(var(--cg), .35); }
.app-cg-gh .m-h3 { margin: 0; }
.app-cg-gh .m-small { margin-left: auto; font-variant-numeric: tabular-nums; }
.app-cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.app-cg-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; color: inherit; text-decoration: none; min-width: 0; }
.app-cg-card:hover { border-color: rgba(var(--cg), .55); }
.app-cg-card .app-cg-ill { width: 40px; height: 40px; }
.app-cg-card .app-cg-ill .m-i { width: 22px; height: 22px; }
.app-cg-card-b { display: grid; gap: 5px; min-width: 0; flex: 1; }
.app-cg-card-t { font-weight: 600; line-height: 1.25; }
.app-cg-card-n { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.app-cg-card .app-rank-bar i { background: rgb(var(--cg)); }
.app-cg-last { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-cg-hits { margin-bottom: 10px; }
.app-cg-hits-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.app-cg-hits-h a { color: inherit; }
.app-cg-kinds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.app-cg-kind { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(var(--m-ink), .14); background: transparent; color: var(--m-text-2); font: inherit; font-size: 13px; cursor: pointer; }
.app-cg-kind:hover { color: var(--m-text); background: rgba(var(--m-ink), .06); }
.app-cg-kind[aria-pressed="true"] { color: var(--m-text); font-weight: 600; background: rgba(var(--m-accent-rgb), .16); border-color: rgba(var(--m-accent-rgb), .55); }
.app-cg-kind-n { font-size: 11px; color: var(--m-text-3); font-variant-numeric: tabular-nums; }
.app-cg-kmore { width: auto; min-height: 32px; font-size: 13px; }
.app-cg-kmore.is-on { border-color: rgba(var(--m-accent-rgb), .55); background-color: rgba(var(--m-accent-rgb), .12); }
/* 387 CG6: on a phone the rows scroll sideways (snapping, faded at the end), the chip row stays on top, the short names */
@media (max-width: 640px) {
  .app-cg-nav { position: sticky; top: 0; z-index: 5; margin: 0 -12px 8px; padding: 6px 12px 0; background: var(--m-bg-solid, var(--m-bg)); }
  .app-cg-row, .app-cg-sib, .app-cg-kinds { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); padding-right: 24px; }
  .app-cg-row::-webkit-scrollbar, .app-cg-sib::-webkit-scrollbar, .app-cg-kinds::-webkit-scrollbar { display: none; }
  .app-cg-chip, .app-cg-sibl, .app-cg-kind, .app-cg-kmore { flex: 0 0 auto; scroll-snap-align: start; }
  .app-cg-chip, .app-cg-sibl, .app-cg-kind { min-height: 40px; }
  .app-cg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-cg-card { flex-direction: column; gap: 8px; padding: 12px; }
  .app-cg-gh { flex-wrap: wrap; }
}
@media (max-width: 359px) {
  .app-cg-grid { grid-template-columns: minmax(0, 1fr); }
  .app-cg-card { flex-direction: row; }
}
.app-coll-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.app-coll-top .app-tiles { grid-template-columns: minmax(0, 1fr); }
.app-coll-wmap .m-card-body { padding: 8px; }
#app-c-wmap, .app-ccd-map { height: 300px; border-radius: 10px; overflow: hidden; }
.app-ccd-map { height: 340px; margin-bottom: 8px; }
.app-ccd-list { max-height: 40vh; overflow: auto; }
.app-mk circle { fill: var(--m-card-solid); stroke: rgba(var(--m-ink), .45); stroke-width: .8; vector-effect: non-scaling-stroke; }
.app-mk use { color: rgba(var(--m-ink), .55); }
.app-mk.is-seen circle { fill: #2fbf71; stroke: var(--m-card-solid); }
.app-mk.is-seen use { color: #fff; }
.app-mk { cursor: pointer; }
.app-mk.is-hot circle { fill: var(--m-accent); stroke: #fff; }
.app-mk.is-hot use { color: #fff; }
.app-u-sites li.is-flash { background: rgba(var(--m-accent-rgb), .2); }
.app-u-h .app-trip-ccb { cursor: zoom-in; }
@media (max-width: 900px) { .app-coll-top { grid-template-columns: minmax(0, 1fr); } }
.app-home-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
#app-h-map .app-layers { padding: 0 0 8px; border: 0; }
.app-home-h { margin-top: 16px; }
.app-h-pls { display: grid; gap: 8px; margin: 8px 0; }
.app-h-pl { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 28px 32px; gap: 8px; align-items: center; }
.app-h-grp summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.app-h-grp summary::-webkit-details-marker { display: none; }
.app-h-grp .app-u-sites { max-height: 50vh; overflow: auto; }
@media (max-width: 900px) { .app-home-top { grid-template-columns: minmax(0, 1fr); } }

/* game mode (next_steps 84, D177): orange, apart from the blue app; nothing of it shows while it is off */
:root { --app-game: #F07C12; --app-game-text: #A84E00; --app-game-ink: #241200; --app-game-soft: rgba(240, 124, 18, .14); }
:root[data-theme="dark"] { --app-game: #FF9F45; --app-game-text: #FFB874; --app-game-soft: rgba(255, 159, 69, .16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) { --app-game: #FF9F45; --app-game-text: #FFB874; --app-game-soft: rgba(255, 159, 69, .16); } }
#app-game.is-on { color: var(--app-game-ink); background: var(--app-game); }
.app-score { gap: 6px; color: var(--app-game-text); font-variant-numeric: tabular-nums; }
.app-score b { font-size: 15px; }
.app-score-lv { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 9px; color: var(--app-game-ink); background: var(--app-game); }
.app-game-bar { display: inline-block; width: 48px; height: 5px; border-radius: 3px; background: var(--app-game-soft); overflow: hidden; vertical-align: middle; }
.app-game-bar > span { display: block; height: 100%; background: var(--app-game); }
.app-pts { display: none; align-items: center; gap: 2px; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 0 6px; border-radius: 9px;
  color: var(--app-game-ink); background: var(--app-game); white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: middle; }
.app-pts.is-est { color: var(--app-game-text); background: var(--app-game-soft); outline: 1px dashed var(--app-game); }
.app-pts .m-i { width: 11px; height: 11px; }
body.app-gamemode .app-pts, #app-dlg .app-pts, .app-cl-table .app-pts { display: inline-flex; }   /* 283: the countries' worth shows with the game off too */
.app-game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 14px; }
.app-game-big { display: inline-flex; align-items: center; gap: 6px; font-size: 28px; font-weight: 800; color: var(--app-game-text); }
.app-game-big .m-i { width: 26px; height: 26px; }
.app-game-lv { display: inline-flex; flex-direction: column; gap: 4px; }
.app-game-lv .app-game-bar { width: 180px; height: 7px; }
.app-game-kind { border-top: 1px solid var(--m-line); }
.app-game-kind > summary { display: flex; align-items: center; gap: 8px; padding: 8px 2px; cursor: pointer; }
.app-game-rows, .app-game-top { margin: 0 0 8px; padding: 0; list-style: none; }
.app-game-row, .app-game-top li { display: flex; align-items: center; gap: 4px 8px; padding: 3px 2px; flex-wrap: wrap; }
.app-game-row > .m-grow { flex: 1 1 160px; min-width: 0; }
.app-game-row > .app-rank-go { margin-left: auto; text-align: right; }
.app-game-off { margin-left: auto; }
/* next_steps 85: the score beside a window's or page's title, a link to its breakdown */
.app-pts-btn { display: none; align-items: center; gap: 4px; margin-left: 10px; padding: 2px 10px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 800; color: var(--app-game-ink); background: var(--app-game); vertical-align: middle; font-variant-numeric: tabular-nums; }
.app-pts-btn.app-pts-btn { color: var(--app-game-ink); }   /* C0295: beats ".m-page button { color: inherit }", which made the number light on the orange in the dark theme */
.app-pts-btn:hover { filter: brightness(1.08); }
.app-pts-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--app-game-soft); }
.app-pts-btn .m-i { width: 14px; height: 14px; }
.app-pts-est { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding-left: 6px; border-left: 1px solid rgba(0, 0, 0, .25); font-weight: 600; font-size: 12px; }
body.app-gamemode .app-pts-btn { display: inline-flex; }
.app-dlg-pts { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.app-dlg-pts .app-plan-btn { white-space: nowrap; }
.app-dlg-pts .app-pts-btn { margin: 0 6px 0 0; }
.m-modal-head .app-dlg-pts + .m-btn { margin-left: 0; }
.app-gdlg .m-modal-box { width: min(760px, 100%); }
.app-gdlg-plate { color: var(--app-game-text); }
/* next_steps 90: a suggestion under a near goal */
.app-goal-tip { display: flex; gap: 4px; align-items: baseline; margin-top: 2px; color: var(--app-game-text); }
.app-goal-tip .m-i { flex: none; width: 12px; height: 12px; align-self: center; }
.app-goal-tip .app-rank-go { display: inline; }
.app-goal-tip .app-flag { vertical-align: -3px; margin-right: 3px; }
.app-goal-tip-sep { color: var(--m-text-3, inherit); opacity: .6; }
/* next_steps 101: on this day */
.app-otd { border-color: var(--app-game-soft); box-shadow: inset 4px 0 0 var(--app-game); margin-bottom: 14px; }
.app-otd .m-h3 { display: inline-flex; align-items: center; gap: 6px; color: var(--app-game-text); margin: 0 0 6px; }
.app-otd-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 6px 22px; }   /* 280 (C0194): the trips side by side, wrapping on a narrow screen */
.app-otd-list li { display: flex; align-items: center; gap: 14px; padding: 6px 2px; cursor: pointer; min-width: 0; }
.app-otd-list li:hover b { text-decoration: underline; }
.app-otd-y { flex: none; min-width: 74px; text-align: center; padding: 6px 8px; border-radius: 10px; font-weight: 900; color: var(--app-game-ink); background: var(--app-game); }
.app-otd-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.app-otd-body b .app-flag { vertical-align: -3px; margin-right: 2px; }
.app-otd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-otd-meta .app-pts { display: inline-flex; }
.app-otd-meta .app-medal { width: 30px; height: 30px; }
.app-otd-meta .app-medal > .m-i, .app-otd-meta .app-medal.is-repeat > .m-i, .app-otd-meta .app-medal.is-geo > .m-i { width: 13px; height: 13px; margin-top: 0; }
.app-otd-meta .app-medal.is-repeat > .m-i { margin-top: 5px; }
.app-otd-meta .app-medal-n { display: none; }
/* next_steps 121: game statistics – in the game's colours */
.app-gstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-bottom: 18px;
  --m-series-1: var(--app-game); --m-series-2: #F2611D; --m-series-3: #DC2626; --m-series-4: #9F1239; --m-series-5: #7F1D1D; --m-series-6: #0E9F8E; --m-series-7: #B07A45; --m-series-8: #6D28D9; }
.app-gs-card.is-wide { grid-column: 1 / -1; }
.app-gs-card .m-h3 { margin: 0; color: var(--app-game-text); }
.app-gs-groups { margin: 8px 0 0; padding: 0; list-style: none; }
.app-gs-groups li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 64px; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--m-line); }
.app-gs-groups .app-game-bar { width: 100%; height: 7px; }
.app-gs-groups b { text-align: right; font-variant-numeric: tabular-nums; }
.app-gs-hard { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 10px; }
.app-gs-hard-b { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 96px; text-align: center; cursor: pointer; }
.app-gs-hard-b .app-medal { width: 60px; height: 60px; }
.app-gs-hard-b .app-medal > .m-i { width: 26px; height: 26px; }
.app-gs-hard-b .app-medal.is-repeat > .m-i { margin-top: 10px; width: 22px; height: 22px; }
/* next_steps 128: personality and organiser */
.app-medal.is-organizer { --mc1: #0F766E; --mc2: #99F6E4; }
.app-medal.is-organizer > .m-i { margin-top: -8px; width: 32px; height: 32px; }
.app-persona { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.4fr); gap: 10px 24px; align-items: start; margin-top: 8px; }
@media (max-width: 640px) { .app-persona { grid-template-columns: 1fr; } }
.app-persona-main { display: flex; flex-direction: column; gap: 6px; }
.app-persona-name { font-size: 30px; font-weight: 900; color: var(--app-game-text); }
.app-persona-years { display: flex; flex-wrap: wrap; gap: 6px; }
.app-persona-y { display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; width: 112px; padding: 5px 8px; border-radius: 8px; font-size: 12px; line-height: 1.25; text-align: center; background: var(--app-game-soft); cursor: pointer; }   /* C0233: wide enough for the full name, wraps; C0232: opens the yearbook */
.app-persona-y:hover, .app-persona-y:focus-visible { outline: 2px solid var(--app-game); outline-offset: 1px; }
.app-persona-y b { font-size: 12px; color: var(--app-game-text); }
.app-style { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--m-line); }   /* 153: Thrifty / Comfort traveller */
.app-style-y.is-comfort { background: transparent; box-shadow: inset 0 0 0 1px var(--app-game); }
/* next_steps 127: badge points and the showcase */
.app-bpts { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--app-game-text); }
.app-bpts .m-i { width: 14px; height: 14px; }
.app-sc.is-empty { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; padding: 10px 12px; border: 1px dashed var(--app-game-soft); border-radius: 12px; }
.app-sc { margin-bottom: 14px; border-color: var(--app-game-soft); }
.app-sc-head { display: flex; align-items: center; gap: 8px; }
.app-sc-head .m-h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--app-game-text); }
.app-sc-row { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 10px; }
.app-sc-b { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; text-align: center; cursor: pointer; }
.app-sc-b .app-medal { width: 76px; height: 76px; }
.app-sc-b .app-medal > .m-i { width: 32px; height: 32px; }
.app-bd-head .app-plan-btn { margin-top: 6px; }
/* next_steps 126: weekly quests */
.app-quests { margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--app-game-soft); }
.app-quests .m-h3 { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--app-game-text); }
.app-quests ul { margin: 0; padding: 0; list-style: none; }
.app-quests li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.app-quests li.is-done { color: var(--app-game-text); font-weight: 700; }
.app-quests .app-game-bar { width: 90px; }
.app-chron-q { margin-left: 4px; padding: 0 6px; border-radius: 9px; font-size: 11px; color: var(--app-game-ink); background: var(--app-game-soft); }
.app-chron-q.is-done { background: var(--app-game); }
/* next_steps 125: world shares */
.app-share-t td { white-space: nowrap; }
.app-share-t .app-game-bar { width: 70px; }
/* next_steps 124: mayor lists */
.app-mayor-list { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.app-mayor-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--m-line); counter-increment: m; }
.app-mayor-list li::before { content: counter(m); min-width: 18px; font-weight: 800; color: var(--app-game-text); }
.app-mayor-list b { font-variant-numeric: tabular-nums; min-width: 28px; text-align: right; }
.app-mayor-list { max-width: 460px; margin-top: 8px; }   /* C0237: not stretched over a wide monitor */
.app-mayor-span { min-width: 44px; text-align: right; }
/* next_steps 98: the points curve – in the game's colours */
.app-curve { --m-series-1: var(--app-game); --m-series-2: #D9342B; margin-bottom: 14px; }
.app-curve .m-h3 { display: inline-flex; align-items: center; gap: 6px; color: var(--app-game-text); margin: 0; }
.app-curve-ms { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 10px; }
.app-curve-m { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 4px; border-radius: 12px; font-size: 12px; background: var(--app-game-soft); cursor: pointer; }
.app-curve-m b { padding: 1px 6px; border-radius: 9px; color: var(--app-game-ink); background: var(--app-game); }
/* next_steps 97: the yearbook */
.app-yb-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 0 0 14px; overflow: hidden; }   /* C0227: fitted by yearbookFit() */
.app-yb-bar > * { flex: none; }
.app-yb-bar > .m-small { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.app-yb-more { width: auto; min-height: 28px; }
.app-yb-top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-yb-sel { width: auto; }
.app-yb-page { min-height: 300px; animation: app-pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.app-yb-cover { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 0; text-align: center; }
.app-yb-year { font-size: 96px; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #FFE7C2, var(--app-game), #D9342B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.app-yb-pts { font-size: 34px; font-weight: 900; color: var(--app-game-text); }
.app-yb-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; }
.app-yb-big { flex: 1 1 140px; display: flex; flex-direction: column; padding: 14px 16px; border-radius: 12px; background: var(--app-game-soft); }
.app-yb-big b { font-size: 44px; font-weight: 900; line-height: 1.1; }
.app-yb-big span { color: var(--app-game-text); font-weight: 700; }
.app-yb-flags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.app-yb-flags span { display: inline-flex; align-items: center; gap: 4px; }
.app-yb-best { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 0; }
.app-yb-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.app-yb-nav .m-btn--primary { color: var(--app-game-ink); background: var(--app-game); border-color: var(--app-game); }
.app-yb-dots { display: flex; gap: 6px; }
.app-yb-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--app-game-soft); cursor: pointer; }
.app-yb-dots i.is-on { background: var(--app-game); }
/* next_steps 96: celebration – a medal pops in, a little confetti; the "new" marks */
.app-cel { position: relative; text-align: center; overflow: hidden; padding-top: 6px; }
.app-cel-level { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 14px; animation: app-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.app-cel-lv { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; font-size: 44px; font-weight: 900; color: var(--app-game-ink);
  background: radial-gradient(circle at 35% 30%, #FFE7C2, var(--app-game) 60%, #D9342B); box-shadow: 0 0 0 6px var(--app-game-soft), 0 10px 30px rgba(242, 95, 28, .45); }
.app-cel-medals { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 22px; margin: 10px 0 16px; }
.app-cel-medal { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 130px; animation: app-pop .7s cubic-bezier(.2, 1.6, .4, 1) both; animation-delay: calc(var(--d) * .12s + .15s); cursor: pointer; }
.app-cel-medal .app-medal { width: 96px; height: 96px; }
.app-cel .app-dlg-actions { justify-content: center; }
.app-cel .m-btn--primary { color: var(--app-game-ink); background: var(--app-game); border-color: var(--app-game); }
.app-cel-conf { position: absolute; inset: 0; pointer-events: none; }
.app-cel-conf i { position: absolute; top: -12px; left: calc(var(--i) * 5.5% + 2%); width: 7px; height: 12px; border-radius: 2px; opacity: 0;
  background: hsl(calc(var(--i) * 37), 90%, 60%); animation: app-conf 1.8s ease-in calc(var(--i) * .05s) 1 both; }
@keyframes app-pop { 0% { transform: scale(.2) rotate(-20deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes app-conf { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(360px) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .app-cel-level, .app-cel-medal, .app-cel-conf i { animation: none; opacity: 1; } .app-cel-conf { display: none; } }
.m-count.app-n-new { color: var(--app-game-ink); background: var(--app-game); font-weight: 800; }
.app-badge.is-new { position: relative; border-color: var(--app-game); }
.app-badge.is-new::after { content: attr(data-new); position: absolute; top: 8px; right: -6px; padding: 1px 8px; border-radius: 4px 0 0 4px; font-size: 11px; font-weight: 800;
  color: var(--app-game-ink); background: var(--app-game); }
/* next_steps 95: yearly challenges */
.app-chal-card { border-color: var(--app-game-soft); box-shadow: inset 4px 0 0 var(--app-game); margin-bottom: 14px; }
.app-chal-card .m-h3 { display: inline-flex; align-items: center; gap: 6px; color: var(--app-game-text); margin: 0; }
.app-chal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-chal-list { margin: 10px 0 6px; padding: 0; list-style: none; }
.app-chal-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 5px 2px; border-top: 1px solid var(--m-line); }
.app-chal-list .app-game-bar { width: 160px; height: 7px; }
.app-chal-list b { min-width: 70px; font-variant-numeric: tabular-nums; }
.app-chal-m { min-width: 200px; display: inline-flex; align-items: center; gap: 4px; }
.app-chal-list li.is-done .app-chal-m { color: var(--app-game-text); font-weight: 700; }
.app-chal-goal { width: 90px; }
.app-chal-list .app-filter-switch { min-width: 220px; }
.app-chal-prev { display: inline-flex; align-items: center; gap: 2px; margin-right: 8px; }
.app-chal-prev.is-done { color: var(--app-game-text); font-weight: 700; }
.app-chal-prev .m-i { width: 12px; height: 12px; }
/* next_steps 94: where the most points wait – orange to red, its own legend */
.app-leg-heat, .is-heat .app-leg-days { display: none; }
.is-heat .app-leg-heat { display: flex; }
.app-heat-sw .m-small { display: inline-flex; align-items: center; gap: 4px; color: var(--app-game-text); font-weight: 700; }
.app-heat-sw .m-i { width: 13px; height: 13px; }
/* next_steps 154: a place nearby not seen yet – an orange bar at the bottom, above everything but the dialogs */
.app-nearby { position: fixed; left: 50%; bottom: 48px; transform: translateX(-50%); z-index: 900; width: min(640px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 2px solid var(--app-game);
  background: linear-gradient(var(--app-game-soft), var(--app-game-soft)), var(--m-card-solid); color: var(--m-text); box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.app-nearby[hidden] { display: none; }
.app-nearby-i { flex: none; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--app-game); color: var(--app-game-ink); }
.app-nearby-i .m-i { width: 20px; height: 20px; }
.app-nearby-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-nearby-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-nearby-t .m-small:first-child { color: var(--app-game-text); font-weight: 700; }
.app-nearby-a { flex: none; display: flex; gap: 4px; align-items: center; }
@media (max-width: 560px) { .app-nearby { flex-wrap: wrap; } .app-nearby-a { width: 100%; justify-content: flex-end; } }
.is-heat #app-map, .app-leg-heat { --bmap-r1: #FFE7C2; --bmap-r2: #FFC985; --bmap-r3: #FFA94D; --bmap-r4: #FF8A1F; --bmap-r5: #F25F1C; --bmap-r6: #D9342B; --bmap-r7: #9F1D1D; }
.app-heat-1 { background: var(--bmap-r1); } .app-heat-2 { background: var(--bmap-r2); } .app-heat-3 { background: var(--bmap-r3); } .app-heat-4 { background: var(--bmap-r4); }
.app-heat-5 { background: var(--bmap-r5); } .app-heat-6 { background: var(--bmap-r6); } .app-heat-7 { background: var(--bmap-r7); }
/* next_steps 93: the trip planner */
.app-plan-row { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.app-plan-btn { color: var(--app-game-text); border-color: var(--app-game-soft); }
.app-plan-btn .m-i { color: var(--app-game); }
.app-b-list .app-plan-btn { padding: 0 8px; font-size: 11px; min-height: 22px; vertical-align: middle; }
.app-plan-in { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 8px 0 14px; }
/* next_steps 92: the chronicler – a smaller counter beside the score, its dialog */
.app-chron { gap: 4px; color: var(--app-game-text); font-weight: 700; font-size: 12px; opacity: .9; }
.app-chron .m-i { width: 14px; height: 14px; }
@media (max-width: 599px) { #app-chron { display: none !important; } }
.app-chron-big { color: #B07A45; }
.app-chron-keys { margin: 8px 0 14px; padding: 0; list-style: none; }
.app-chron-keys li { display: flex; align-items: center; gap: 10px; padding: 4px 2px; border-top: 1px solid var(--m-line); }
.app-chron-keys .app-game-bar { width: 120px; }
.app-chron-keys b { min-width: 90px; text-align: right; font-variant-numeric: tabular-nums; }
/* next_steps 87: Settings → Scoring */
.app-gset .app-set { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: 12px; }
.app-gset .app-gset-more { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.app-gset { border-color: var(--app-game-soft); box-shadow: inset 4px 0 0 var(--app-game); }
.app-gset .app-data-h { color: var(--app-game-text); }
.app-gset-own label { color: var(--app-game-text); font-weight: 700; }
.app-gset-own .m-input { border-color: var(--app-game); }
/* next_steps 86: badges */
body:not(.app-gamemode) .app-game-nav { display: none; }
.app-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 0 0 18px; padding: 0; list-style: none; }
.app-badge { display: flex; gap: 16px; align-items: center; padding: 14px 14px 16px; border-radius: 12px; border: 1px solid var(--m-line); opacity: .62; }
.app-badge.is-earned { opacity: 1; border-color: var(--app-game-soft); }
.app-badge-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.app-badge-step { font-size: 12px; font-weight: 700; color: var(--app-game-text); }
.app-badge-prog { display: flex; align-items: center; gap: 8px; }
.app-badge-prog .app-game-bar { width: 110px; }
.app-medal { position: relative; flex: none; display: inline-grid; place-items: center; width: 92px; height: 92px; --mc1: #8a8f98; --mc2: #5d636c; }
.app-medal-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.app-medal-shape > * { fill: rgba(127, 127, 127, .14); stroke: rgba(127, 127, 127, .45); stroke-width: 3; stroke-dasharray: 6 5; stroke-linejoin: round; }
.app-medal-shine > * { fill: none; stroke: none; }
.app-medal > .m-i { position: relative; width: 40px; height: 40px; color: rgba(127, 127, 127, .8); }
.app-medal.is-repeat > .m-i { margin-top: 18px; width: 34px; height: 34px; }
.app-medal.is-earned .app-medal-shape > * { fill: var(--mc1); stroke: var(--app-game); stroke-width: 7; stroke-dasharray: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .28)); }
.app-medal.is-earned .app-medal-shine > * { fill: var(--mc2); transform: scale(.62); transform-origin: 50% 50%; opacity: .55; }
.app-medal.is-earned.is-repeat .app-medal-shine > * { transform-origin: 50% 62%; }
.app-medal.is-earned > .m-i { color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.app-medal.is-places { --mc1: #2F80ED; --mc2: #56CCF2; }
.app-medal.is-collections { --mc1: #219653; --mc2: #6FCF97; }
.app-medal.is-travel { --mc1: #7B3FE4; --mc2: #BB6BD9; }
.app-medal.is-people { --mc1: #D63A6A; --mc2: #F28CB1; }
.app-medal.is-repeat { --mc1: #0E9F8E; --mc2: #5EE6D0; }
.app-medal.is-geo { --mc1: #0284C7; --mc2: #F5C542; }
.app-medal.is-city3d { --mc1: #3F51B5; --mc2: #9FA8DA; }   /* 388b */
.app-medal.is-chronicle { --mc1: #8B5E34; --mc2: #E7C9A0; }
.app-medal.is-secret { --mc1: #5B21B6; --mc2: #F5C542; }
.app-medal.is-wallet { --mc1: #15803D; --mc2: #FACC15; }
.app-medal.is-streak { --mc1: #B45309; --mc2: #FCD34D; }
.app-medal.is-event { --mc1: #BE185D; --mc2: #F9A8D4; }
.app-medal.is-event > .m-i { width: 32px; height: 32px; }
.app-badge-note { font-weight: 700; color: var(--app-game-text); }
.app-secret-left { opacity: 1; border-style: dashed; cursor: default; }
.app-secret-left .app-medal > .m-i { color: #A78BFA; width: 34px; height: 34px; }
.app-medal.is-geo > .m-i { width: 30px; height: 30px; margin-top: 4px; }
.app-medal-n { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); min-width: 26px; padding: 1px 7px; border-radius: 10px;
  font-size: 12px; font-weight: 800; line-height: 1.4; text-align: center; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); }
/* the step: the frame goes from orange towards red, and a little thicker */
.app-medal { --mf: var(--app-game); --mw: 7; }
.app-medal.is-t2 { --mf: #F2611D; --mw: 8.5; }
.app-medal.is-t3 { --mf: #DC2626; --mw: 10; }
.app-medal.is-earned .app-medal-shape > * { stroke: var(--mf); stroke-width: var(--mw); }
.app-badge { cursor: pointer; transition: transform .15s; }
.app-badge:hover { transform: translateY(-2px); }
.app-badge:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--app-game-soft); }
.app-trip-badge { cursor: pointer; }
.app-bd-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.app-bd-steps, .app-bd-list { margin: 0 0 12px; padding: 0; list-style: none; }
.app-bd-steps li, .app-bd-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 5px 2px; border-top: 1px solid var(--m-line); }
.app-bd-steps li:not(.is-got) { opacity: .6; }
.app-bd-step { min-width: 90px; font-size: 12px; font-weight: 800; padding: 1px 8px; border-radius: 10px; text-align: center; color: #fff; background: var(--app-game); }
.app-bd-step.is-t2 { background: #F2611D; }
.app-bd-step.is-t3 { background: #DC2626; }
.app-bd-inc { font-weight: 700; color: var(--app-game-text); font-variant-numeric: tabular-nums; }
.app-bd-what { flex-basis: 100%; }
.app-medal-n { color: var(--app-game-ink); background: var(--app-game); }
.app-trip-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 22px; }
.app-trip-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.app-trip-badge .app-medal { width: 56px; height: 56px; }
.app-trip-badge .app-medal > .m-i { width: 24px; height: 24px; }
.app-trip-badge .app-medal.is-repeat > .m-i { margin-top: 11px; width: 20px; height: 20px; }
.app-trip-badge .app-medal { --mw: 9; }
.app-trip-badge .app-medal.is-t2 { --mw: 10.5; }
.app-trip-badge .app-medal.is-t3 { --mw: 12; }
.app-trip-badge .app-medal-n { font-size: 10px; min-width: 18px; padding: 0 5px; bottom: -5px; }
/* a phone: no room in the top bar, the trophy opens the details (with the switch-off button) */
@media (max-width: 599px) { #app-score { display: none !important; } }
.app-mg-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0 12px; }   /* next_steps 181 */
.app-mg-table td, .app-mg-table th { white-space: nowrap; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea { color-scheme: dark; }
.app-layers-fold { margin: 0 0 6px; }   /* 299 (C0211) */
.app-layers-fold > summary { cursor: pointer; padding: 2px 0; user-select: none; }
.app-layers-fold .app-layers > .app-muted:first-child { display: none; }
.app-mini-map, #app-c-wmap, .app-ccd-map { height: auto; aspect-ratio: 16 / 9; }
.app-mini-map .bmap-svg, #app-c-wmap .bmap-svg, .app-ccd-map .bmap-svg { width: 100%; height: 100%; }
.app-mini-map .bmap-pin.app-lay-place, .app-mini-map .bmap-pin.app-lay-unesco, .app-mini-map .bmap-pin.app-lay-coll { transform: scale(1); }
#app-h-map .bmap-pin.app-lay-place, #app-h-map .bmap-pin.app-lay-unesco, #app-h-map .bmap-pin.app-lay-coll { transform: scale(.4); }
.app-totop { position: fixed; right: 20px; bottom: 44px; z-index: 50; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); background: var(--m-raise); }
.app-u-sites li { flex-wrap: wrap; }
.app-u-name { flex: 0 1 auto; }
.app-years { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; margin-left: 8px; }
.app-sov-map { margin-bottom: 16px; }
.app-coll-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 2fr); gap: 16px; margin: 16px 0; align-items: start; }
.app-coll-stats .app-ov-card { margin: 0; }
@media (max-width: 900px) { .app-coll-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-ps-bar { grid-column: 1 / -1; } }
.app-h-cty { padding: 0; border: 0; background: none; font: inherit; color: var(--m-text-3); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.app-h-cty.is-on { color: var(--m-text); font-weight: 600; }
.app-h-cty:hover { color: var(--m-accent); }
.app-h-pick { margin: 8px 0; }
.app-h-pickbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.app-h-pickbar .m-input { flex: 1; min-width: 180px; }
.app-h-picklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 2px 12px; max-height: 320px; overflow: auto; }
.app-h-pl1 { padding: 2px 0; border: 0; background: none; font: inherit; font-size: 13px; color: inherit; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; text-align: left; }
.app-h-pl1.is-on { color: var(--m-good-text); cursor: default; }
.app-h-gmap { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; margin-bottom: 8px; cursor: zoom-in; }
/* C0142: the big map of a home collection, the ticking list under it */
.app-hbig-map { height: min(62vh, 620px); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.app-hbig-map .bmap-svg { width: 100%; height: 100%; }
.app-hbig-list { max-height: 22vh; overflow: auto; columns: 3 220px; column-gap: 20px; margin-top: 4px; }
.app-hbig-list li { break-inside: avoid; }
@media (max-width: 800px) { .app-hbig-map { height: 46vh; } .app-hbig-list { max-height: 30vh; } }
.app-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.app-set-sw { align-self: center; }
.app-coll { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.app-mark-bar { gap: 12px; align-items: center; margin-bottom: 8px; }
.app-mark-scroll { max-height: 60vh; overflow: auto; }
.app-mark-table tbody tr:hover { background: rgba(var(--m-ink), .05); }
.app-mark-table tr.app-mark-on { background: rgba(var(--m-accent-rgb), .12); }
.app-mark-ck { width: 1%; white-space: nowrap; }
.app-mark-ck .app-mark-sug { margin: 0 8px 0 0; vertical-align: middle; }
.app-mark-ck .m-seg { vertical-align: middle; }
.app-mark-seg button { padding: 0 6px; font-size: 12px; }
.app-mark-table { width: 100%; }
.app-mark-table td:not(.app-mark-ck):not(.m-id) { max-width: 0; }   /* C0299: the text columns share the width and truncate, no sideways scroll */
.app-mark-table .m-trunc { max-width: 100%; }
.app-mark-table td:nth-child(3) { min-width: 150px; }   /* the trip title */
.app-site-a { color: inherit; display: inline-flex; align-items: center; }
.app-site-a:hover, .app-site-a:focus-visible { color: var(--m-accent); }
.app-site-map { margin-left: 6px; vertical-align: -2px; color: var(--m-text-3); }
.app-site-map .m-i, .app-u-sites .app-site-map .m-i { width: 13px; height: 13px; color: var(--m-text-3); }
.app-coll-year { grid-column: 1 / -1; }
.app-coll-year .m-h3 { margin: 0 0 8px; }
.app-site-wiki { margin-left: 6px; font: 700 11px/1 Georgia, 'Times New Roman', serif; color: var(--m-text-3); }
.app-coll-chart svg text, .app-coll-year svg text, .app-trip-chart svg text { font: 600 11px var(--m-font); fill: var(--m-text-3); }
svg text.m-t-strong { fill: var(--m-text); font-weight: 800; }
#app-dlg svg text, .app-rank-chart svg text { font: 600 11px var(--m-font); fill: var(--m-text-3); }
#app-dlg svg text.m-t-strong { fill: var(--m-text); font-weight: 800; }
#app-map .bmap-pin { transform-box: fill-box; transform-origin: center; transform: scale(.7); }
#app-map .bmap-pin.app-lay-place, #app-map .bmap-pin.app-lay-unesco { transform: scale(.35); }
.app-trip-legs .app-ov-num { margin-left: auto; }
@media (max-width: 600px) {
  .app-u-list, .app-coll, .app-person-wrap { grid-template-columns: minmax(0, 1fr); }
  .app-person-trips { border-left: 0; padding-left: 0; border-top: 1px solid var(--m-line); padding-top: 16px; }
}
.app-h-plgrid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.app-h-plgrid .app-h-pick { position: sticky; top: 64px; margin: 8px 0; }
.app-h-plgrid .app-h-picklist { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); max-height: 420px; }
@media (max-width: 900px) { .app-h-plgrid { grid-template-columns: minmax(0, 1fr); } }
.app-u-size { margin-left: auto; white-space: nowrap; font-size: 12px; }
.app-u-sub { margin: 12px 0 4px; }
.app-e-provh { margin: 8px 0; cursor: pointer; }
.app-h-cty.is-auto { cursor: default; opacity: .85; }
.app-e-sum { margin-bottom: 8px; }
.app-e-sumele { display: flex; gap: 8px; align-items: center; }
/* R106: the seen items as a compact table on the left, the donut right next to it */
.app-coll { grid-template-columns: minmax(0, 640px) 220px; justify-content: start; }
.app-coll-main .app-u-sites li { display: grid; grid-template-columns: 18px minmax(0, 1fr) minmax(0, max-content) minmax(0, max-content); align-items: baseline; gap: 4px 12px; padding: 3px 0; border-bottom: 1px solid var(--m-line); }
.app-coll-main .app-u-sites li > .m-grow { grid-column: 2; }
.app-coll-main .app-u-size { margin-left: 0; text-align: right; }
.app-coll-main .app-years { margin-left: 0; justify-content: flex-end; }
@media (max-width: 700px) { .app-coll { grid-template-columns: minmax(0, 1fr); } }
/* C0106 (190): on a wide card the year chart moves up, to the right of the donut */
.app-ov-card:has(> .app-coll > .app-coll-year) { container-type: inline-size; }
@container (min-width: 1240px) {
  .app-coll:has(> .app-coll-year) { grid-template-columns: minmax(0, 640px) 220px minmax(0, 1fr); }
  .app-coll > .app-coll-year { grid-column: 3; grid-row: 1; }
}
.app-e-provmapb { margin: 0 0 8px; }
.app-e-provmapm .bmap-c { cursor: default; }
.app-lay path.app-e-pm { fill: rgba(var(--m-ink), .06); stroke: var(--m-card-solid); stroke-width: .8; vector-effect: non-scaling-stroke; cursor: pointer; }
.app-lay path.app-e-pm:hover { fill: rgba(var(--m-accent-rgb), .25); }
.app-lay path.app-e-pm.is-on { fill: rgba(var(--m-accent-rgb), .55); }
.app-lay path.app-e-pm.is-auto { fill: rgba(47, 191, 113, .5); cursor: default; }
.app-e-provmapm .bmap-pin { pointer-events: none; }
.bmap-pin.app-lay-city { fill: #9aa3ad; }
.app-e-provmapm .bmap-pin.app-lay-city, .app-e-provmapm .bmap-pin.app-lay-place, .app-e-provmapm .bmap-pin.app-lay-unesco, .app-e-provmapm .bmap-pin.app-lay-coll { transform-box: fill-box; transform-origin: center; transform: scale(.5); stroke: var(--m-card-solid); stroke-width: .5; }
.app-ac { position: fixed; z-index: 1000; list-style: none; margin: 0; padding: 4px; max-height: 280px; overflow: auto; background: var(--m-card-solid); color: var(--m-text); border: 1px solid var(--m-line-strong); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.app-ac li { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; white-space: nowrap; }
.app-ac li:hover { background: rgba(var(--m-accent-rgb), .18); }
.app-e-leghome { grid-column: 1 / -1; margin: 0; }
/* R123: one colour per collection on the maps (UNESCO stays green #2fbf71) */
.bmap-pin.app-lay-c-peaks, .app-coll-legi i.app-lay-c-peaks { fill: #8d6e63; background: #8d6e63; }
.bmap-pin.app-lay-c-trails, .app-coll-legi i.app-lay-c-trails { fill: #e5484d; background: #e5484d; }
.bmap-pin.app-lay-c-parks, .app-coll-legi i.app-lay-c-parks { fill: #3f9b52; background: #3f9b52; }
.bmap-pin.app-lay-c-monuments, .app-coll-legi i.app-lay-c-monuments { fill: #c99a2e; background: #c99a2e; }
.bmap-pin.app-lay-c-ski, .app-coll-legi i.app-lay-c-ski { fill: #4fc3f7; background: #4fc3f7; }
.bmap-pin.app-lay-c-nature, .app-coll-legi i.app-lay-c-nature { fill: #26a69a; background: #26a69a; }
.bmap-pin.app-lay-c-festivals, .app-coll-legi i.app-lay-c-festivals { fill: #ec407a; background: #ec407a; }
.bmap-pin.app-lay-c-leisure, .app-coll-legi i.app-lay-c-leisure { fill: #29b6f6; background: #29b6f6; }
.bmap-pin.app-lay-c-bridges, .app-coll-legi i.app-lay-c-bridges { fill: #78909c; background: #78909c; }
.bmap-pin.app-lay-c-venues, .app-coll-legi i.app-lay-c-venues { fill: #ab47bc; background: #ab47bc; }
.bmap-pin.app-lay-c-tracks, .app-coll-legi i.app-lay-c-tracks { fill: #ef6c00; background: #ef6c00; }
.bmap-pin.app-lay-c-fun, .app-coll-legi i.app-lay-c-fun { fill: #ffca28; background: #ffca28; }
.bmap-pin.app-lay-c-museums, .app-coll-legi i.app-lay-c-museums { fill: #7e57c2; background: #7e57c2; }
.bmap-pin.app-lay-c-food, .app-coll-legi i.app-lay-c-food { fill: #d4774a; background: #d4774a; }
.bmap-pin.app-lay-c-cities, .app-coll-legi i.app-lay-c-cities { fill: #9e9e9e; background: #9e9e9e; }
.bmap-pin.app-lay-c-airports, .app-coll-legi i.app-lay-c-airports { fill: #5c6bc0; background: #5c6bc0; }
.app-coll-leg { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 8px 0 0; color: var(--m-text-2); }
.app-coll-legi { display: inline-flex; align-items: center; gap: 6px; padding: 1px 4px; }   /* the same inset as the My places buttons */
.app-coll-legi i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
/* R120: a country seen only from its airport */
#app-map .bmap-c.app-airport { fill: rgba(var(--m-ink), .1); stroke: #8fb8ff; stroke-width: 1.2; stroke-dasharray: 3 2; vector-effect: non-scaling-stroke; }
.bmap-key--airport i { background: transparent; border: 1.5px dashed #8fb8ff; }
.app-sync { border: 0; font: inherit; cursor: pointer; }

/* R126, R133: buttons that took the browser's light default */
.app-sync { background: transparent; color: inherit; }
/* R128, R137: the collection colours on every map (seen: filled; not yet: an outline) */
.app-mk.app-lay-c-peaks circle { stroke: #8d6e63; stroke-width: 1.4; } .app-mk.app-lay-c-peaks.is-seen circle { fill: #8d6e63; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-trails circle { stroke: #e5484d; stroke-width: 1.4; } .app-mk.app-lay-c-trails.is-seen circle { fill: #e5484d; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-parks circle { stroke: #3f9b52; stroke-width: 1.4; } .app-mk.app-lay-c-parks.is-seen circle { fill: #3f9b52; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-monuments circle { stroke: #c99a2e; stroke-width: 1.4; } .app-mk.app-lay-c-monuments.is-seen circle { fill: #c99a2e; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-ski circle { stroke: #4fc3f7; stroke-width: 1.4; } .app-mk.app-lay-c-ski.is-seen circle { fill: #4fc3f7; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-nature circle { stroke: #26a69a; stroke-width: 1.4; } .app-mk.app-lay-c-nature.is-seen circle { fill: #26a69a; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-festivals circle { stroke: #ec407a; stroke-width: 1.4; } .app-mk.app-lay-c-festivals.is-seen circle { fill: #ec407a; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-leisure circle { stroke: #29b6f6; stroke-width: 1.4; } .app-mk.app-lay-c-leisure.is-seen circle { fill: #29b6f6; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-bridges circle { stroke: #78909c; stroke-width: 1.4; } .app-mk.app-lay-c-bridges.is-seen circle { fill: #78909c; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-venues circle { stroke: #ab47bc; stroke-width: 1.4; } .app-mk.app-lay-c-venues.is-seen circle { fill: #ab47bc; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-tracks circle { stroke: #ef6c00; stroke-width: 1.4; } .app-mk.app-lay-c-tracks.is-seen circle { fill: #ef6c00; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-fun circle { stroke: #ffca28; stroke-width: 1.4; } .app-mk.app-lay-c-fun.is-seen circle { fill: #ffca28; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-museums circle { stroke: #7e57c2; stroke-width: 1.4; } .app-mk.app-lay-c-museums.is-seen circle { fill: #7e57c2; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-food circle { stroke: #d4774a; stroke-width: 1.4; } .app-mk.app-lay-c-food.is-seen circle { fill: #d4774a; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-cities circle { stroke: #9e9e9e; stroke-width: 1.4; } .app-mk.app-lay-c-cities.is-seen circle { fill: #9e9e9e; stroke: var(--m-card-solid); }
.app-mk.app-lay-c-airports circle { stroke: #5c6bc0; stroke-width: 1.4; } .app-mk.app-lay-c-airports.is-seen circle { fill: #5c6bc0; stroke: var(--m-card-solid); }
.app-mk-line { fill: none; stroke: #e5484d; stroke-width: 2; opacity: .45; vector-effect: non-scaling-stroke; cursor: pointer; }
.app-mk-line.is-seen { opacity: 1; stroke-width: 2.6; }
/* R130: the large view of a collection: the list in columns on the left, the map on the right */
.app-ccd { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.app-ccd > .app-ccd-map { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 0; height: min(70vh, 560px); overflow: hidden; }
.app-ccd > p, .app-ccd > .app-ccd-list { grid-column: 1; }
.app-ccd-list { max-height: 64vh; columns: 2 240px; column-gap: 20px; }
.app-ccd-list li { break-inside: avoid; }
@media (max-width: 800px) { .app-ccd { grid-template-columns: minmax(0, 1fr); } .app-ccd > .app-ccd-map { grid-column: 1; grid-row: auto; position: relative; height: 300px; } }
/* next_steps 74: train, bus, ship legs and stays in the editor; their lines on the map */
.app-e-gleg { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr) 130px 110px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.app-e-stay { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 140px 150px 150px 32px; gap: 8px; align-items: center; margin-bottom: 12px; padding: 12px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-raise); }   /* C0283: each stay is a card */
.app-e-st-coord { grid-column: 1 / 3; } .app-e-st-url { grid-column: 3 / 6; } .app-e-st-addr { grid-column: 1 / 3; }
/* next_steps 160: price, currency, people */
.app-e-price { display: grid; grid-template-columns: minmax(0, 1fr) 70px 64px; gap: 6px; }
.app-e-stay > .app-e-price { grid-column: 3 / 6; }
.app-e-gleg > .app-e-price { grid-column: 2 / 4; }
.app-e-cost { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px 260px 32px; gap: 8px; align-items: center; margin-bottom: 8px; }
.app-e-c-url { grid-column: 2 / 5; }
.app-e-kmhint { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 6px 0 0; }
.app-e-overfly { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.app-e-overfly .app-flag { vertical-align: -3px; }
.app-e-gleg .app-e-hascoord { box-shadow: inset 3px 0 0 var(--m-accent); }   /* C0061: the end has a coordinate */
@media (max-width: 900px) { .app-e-gleg, .app-e-stay, .app-e-cost { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .app-e-st-coord, .app-e-st-url, .app-e-st-addr, .app-e-c-url, .app-e-stay > .app-e-price, .app-e-gleg > .app-e-price, .app-e-cost > .app-e-price { grid-column: 1 / -1; } }
.app-lay-ground { fill: none; stroke-width: 1.6; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; opacity: .85; cursor: pointer; }
.app-lay-ground.is-train { stroke: var(--app-mode-train); } .app-lay-ground.is-bus { stroke: var(--app-mode-bus); } .app-lay-ground.is-ship { stroke: var(--app-mode-ship); }
/* RT6, DRT5: the mode colours of routes (map layer, editor, later the animation); darker on the light theme */
:root { --app-mode-car: #f43f5e; --app-mode-bus: #facc15; --app-mode-train: #22c55e; --app-mode-bike: #fb8c3c; --app-mode-foot: #d9c7a3; --app-mode-ship: #67d3f5; }
:root[data-theme="light"], :root[data-theme="beige"] { --app-mode-car: #d11f43; --app-mode-bus: #b58900; --app-mode-train: #15803d; --app-mode-bike: #d45a07; --app-mode-foot: #94774a; --app-mode-ship: #1597c9; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --app-mode-car: #d11f43; --app-mode-bus: #b58900; --app-mode-train: #15803d; --app-mode-bike: #d45a07; --app-mode-foot: #94774a; --app-mode-ship: #1597c9; } }
.app-layer--ground i { background: #a855f7; }
.app-e-ccseg { margin: -4px 0 10px 40px; }
.app-e-ccseg summary { cursor: pointer; color: var(--m-text-2); }
.app-e-seggrp { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; margin: 6px 0; }
/* C0001: the home country in beige; C0002: folded filters on a phone */
.bmap-c.app-home-cc { fill: #d9c7a3; }
:root[data-theme="dark"] .bmap-c.app-home-cc { fill: #7d6d52; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) .bmap-c.app-home-cc { fill: #7d6d52; } }
.app-f-toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: default; }
.app-f-chev { display: none; }
.app-filters.is-folded .m-card-body > :not(.app-filters-h) { display: none; }
@media (max-width: 1099px) { .app-filters .app-filters-h { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 700; color: var(--m-text-2); flex-basis: 100%; } .app-f-toggle { cursor: pointer; } .app-f-chev { display: inline-block; transition: transform .2s; } .app-filters:not(.is-folded) .app-f-chev { transform: rotate(180deg); } }
/* the status bar on a phone: the long backup note gives way (…), the sync state and the version stay whole (C0003) */
.m-statusbar #app-status { min-width: 0; flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-statusbar .app-sync, .m-statusbar [data-app-version] { flex: none; white-space: nowrap; }

/* C0004: the provinces on the left, a half-width map on the right */
.bmap--armed { outline: 2px solid var(--m-accent, #3b82f6); outline-offset: -2px; border-radius: 8px; }

/* C0008: stays as almost black dots */
.bmap-pin.app-lay-stay { fill: #16181d; stroke: #fff; stroke-width: .6; }
.app-layer--stays i { width: 8px; height: 8px; border-radius: 50%; background: #16181d; box-shadow: 0 0 0 1px #fff; }
.app-km-noair { margin-top: 6px; }

/* C0014: provinces of several countries in columns */
.app-e-prov--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 8px 16px; align-items: start; }
.app-e-prov--cols > .m-field-hint { grid-column: 1 / -1; }
/* C0013: the trip's points on the province map can be clicked */
.app-e-rmdot { cursor: pointer; }
.app-e-rmask { margin-top: 8px; } .app-e-rmask .m-card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.app-e-pedit { color: inherit; font: inherit; }
/* C0044: the name in a tag is a button too, but not the 18 px round one of .m-tag */
.m-tag > .app-e-pedit { width: auto; height: auto; display: inline; border-radius: 0; white-space: nowrap; color: var(--m-text); }


/* C0021, C0022: a country's provinces ticked on a trip */
.app-cedit select { min-width: 220px; max-width: 100%; }
.app-cedit td { vertical-align: middle; }
.app-cedit-via.is-not { text-decoration: line-through; opacity: .6; }   /* 294 (C0199): struck out, the place does not count */
/* 235 (C0170, D279): the clickable province map above the table */
.app-cmap { position: relative; margin: 8px 0 12px; }
.app-cmap-svg { display: block; width: 100%; height: auto; max-height: 52vh; border-radius: 8px; background: var(--m-well); }
.app-cmap-p { fill: rgba(var(--m-ink), .1); stroke: var(--m-card-solid); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .15s; }
.app-cmap-p:hover, .app-cmap-p:focus-visible, .app-cmap-p.is-on { fill: rgba(var(--m-ink), .25); outline: none; }
.app-cmap-p.is-place { fill: color-mix(in oklab, var(--m-accent) 35%, transparent); }
.app-cmap-p.is-trip { fill: var(--m-accent); }
.app-cmap-p.is-trip:hover, .app-cmap-p.is-trip.is-on { fill: color-mix(in oklab, var(--m-accent) 80%, #fff); }
.app-cmap-p.is-on { stroke: var(--m-text); stroke-width: 2; }
.app-cmap-menu { position: absolute; z-index: 5; display: flex; flex-direction: column; align-items: stretch; gap: 2px; width: min(300px, calc(100% - 8px)); max-height: 260px; overflow-y: auto; padding: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); }
.app-cmap-menu .m-btn { justify-content: flex-start; text-align: left; white-space: normal; height: auto; min-height: 30px; }
.app-cmap-menu .m-btn.is-cur { color: var(--m-accent); }
.app-cmap-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 6px 0 0; }
.app-cmap-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: rgba(var(--m-ink), .1); margin-left: 8px; }
.app-cmap-key i:first-child { margin-left: 0; }
.app-cmap-key i.is-trip { background: var(--m-accent); }
.app-cmap-key i.is-place { background: color-mix(in oklab, var(--m-accent) 35%, transparent); }
.app-country > .m-card-head { flex-wrap: wrap; row-gap: 6px; }
.app-country > .m-card-head > .m-h3 { flex: 1 1 auto; min-width: 0; }
#app-country-edit { white-space: nowrap; }

/* a hidden tip takes no room: near the right edge it made the page scroll sideways on a phone (UNESCO page at 375 px) */
[data-tip]:not(:hover):not(:focus-visible)::after { max-width: 0; padding: 0; overflow: hidden; }

/* C0028–C0030: levels and ring in the head, frame legend, near and far goals */
.app-levels { display: grid; grid-template-columns: repeat(2, auto); gap: 2px 18px; margin: 0 0 0 auto; padding: 0; list-style: none; font-size: 12px; }
.app-levels li { display: flex; align-items: center; gap: 5px; opacity: .55; white-space: nowrap; }
.app-levels li .app-muted { margin-left: 4px; }
.app-levels li.is-done { opacity: .9; }
.app-levels li.is-now { opacity: 1; color: var(--app-game-text); font-weight: 700; }
.app-levels .m-i { width: 13px; height: 13px; color: var(--app-game); }
.app-lv-dot { width: 13px; height: 13px; display: inline-block; border-radius: 50%; border: 1.5px dashed currentColor; box-sizing: border-box; }
.app-lv-ring { position: relative; flex: none; width: 92px; height: 92px; }
.app-lv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.app-lv-ring circle { fill: none; stroke-width: 9; }
.app-lv-ring-bg { stroke: var(--app-game-soft); }
.app-lv-ring-fg { stroke: var(--app-game); stroke-linecap: round; }
.app-lv-ring-t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; text-align: center; }
.app-lv-ring-t b { font-size: 18px; color: var(--app-game-text); }
.app-lv-ring-t .m-small { font-size: 10px; max-width: 64px; }
.app-tier-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 4px 0 14px; }
.app-tier-chip { padding: 2px 9px; border-radius: 10px; border: 3px solid var(--mf, var(--app-game)); font-weight: 700; }
.app-tier-chip.is-t1 { --mf: var(--app-game); }
.app-tier-chip.is-t2 { --mf: #F2611D; }
.app-tier-chip.is-t3 { --mf: #DC2626; }
.app-tier-chip.is-t4 { --mf: #BE123C; }
.app-tier-chip.is-t5 { --mf: #7F1D1D; }
.app-tier-chip.is-none { border: 2px dashed rgba(127, 127, 127, .55); }
.app-medal.is-t4 { --mf: #BE123C; --mw: 11.5; }
.app-medal.is-t5 { --mf: #7F1D1D; --mw: 13; }
.app-bd-step.is-t4 { background: #BE123C; }
.app-bd-step.is-t5 { background: #7F1D1D; }
.app-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 0 0 6px; }
.app-goal-card { margin: 0; }
.app-goal-list { margin: 8px 0 0; padding: 0; list-style: none; }
.app-goal-list li { display: flex; align-items: center; gap: 12px; padding: 6px 2px; border-top: 1px solid var(--m-line); cursor: pointer; }
.app-goal-list li:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--app-game-soft); }
.app-goal-list .app-medal { width: 52px; height: 52px; }
.app-goal-list .app-medal > .m-i { width: 22px; height: 22px; }
.app-goal-list .app-medal.is-repeat > .m-i { margin-top: 10px; width: 20px; height: 20px; }
.app-goal-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.app-goal-what { font-weight: 700; color: var(--app-game-text); }
.app-goal-body .app-game-bar { width: 100%; max-width: 220px; }
@media (max-width: 760px) { .app-levels { margin-left: 0; } }
.m-card-body.app-bhead { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.app-bhead .app-game-head { margin: 0; flex-direction: column; }

/* own map layers (next_steps 82): the map's own colours; areas pale, lines thin, points like the collection items */
.app-lay-my-a { fill-opacity: .16; stroke-width: .6; stroke-opacity: .8; }
.app-lay-my-l { fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.app-lay-my-a:hover, .app-lay-my-l:hover { stroke-width: 2.2; opacity: 1; }
#app-map .bmap-pin.app-lay-my, #app-dlg .bmap-pin.app-lay-my, .app-mini-map .bmap-pin.app-lay-my { transform-box: fill-box; transform-origin: center; transform: scale(.35); stroke: var(--m-card-solid); stroke-width: .5; cursor: default; }
.app-mini-map .bmap-pin.app-lay-my { transform: scale(1); }
.app-lay-myi { display: none; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.app-lay-myi > circle { stroke-width: 1; }
.bmap--near .app-lay-myi { display: inline; }

.app-my-fold { font: inherit; color: inherit; background: none; border: 0; padding: 1px 4px; border-radius: 6px; cursor: pointer; }
.app-my-fold:hover { background: var(--m-well); }
.app-my-fold[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.app-my-key { font: inherit; color: inherit; background: none; border: 1px dashed var(--m-border); padding: 1px 8px; border-radius: 999px; cursor: pointer; }
.app-my-key:hover { background: var(--m-well); }
.app-mykey { display: grid; gap: 6px; margin-bottom: 12px; }
.app-mykey-row { display: grid; grid-template-columns: 22px 44px minmax(120px, 1fr) 34px minmax(0, 1.2fr); gap: 8px; align-items: center; }
.app-mykey-dot { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; }
.app-mykey-dot .m-i { width: 14px; height: 14px; color: #fff; }
.app-mykey-f { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .app-mykey-row { grid-template-columns: 22px 40px 1fr 30px; } .app-mykey-f { display: none; } }
.app-my-fold[aria-pressed="false"] i { background: transparent !important; box-shadow: inset 0 0 0 1.5px currentColor; }

/* D189: what each copy holds in the sync dialog */
.app-sync-counts { margin: 0 0 12px; padding-left: 18px; }
.app-sync-counts li { margin: 2px 0; }
/* UM Lite L8: the per-item choice when both devices changed the same field */
.app-merge-all { justify-content: flex-start; margin: 0 0 10px; }
.app-merge-list { list-style: none; margin: 0 0 12px; padding: 0; max-height: 50vh; overflow-y: auto; }
.app-merge-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--m-line); }
.app-merge-what { display: flex; flex-direction: column; min-width: 0; }
.app-merge-what b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-merge-what small { color: var(--m-text-3); }
@media (max-width: 560px) { .app-merge-row { flex-direction: column; align-items: stretch; } }

/* C0031: a stay's price, dates and nights stay apart from its name; on a phone on a line of their own */
.app-stay-meta { display: inline-flex; align-items: baseline; gap: 8px; margin-left: auto; white-space: nowrap; }
.app-stay-meta .app-ov-num { margin-left: 0; }
@media (max-width: 640px) { .app-stay-meta { flex-basis: 100%; margin-left: 26px; white-space: normal; flex-wrap: wrap; } }

/* C0038: badge steps already reached, and the next goal */
.app-badge-goal .is-got { color: var(--app-game); opacity: .6; font-weight: 700; }
.app-badge-goal .is-next { color: var(--m-text); font-weight: 700; }

/* next_steps 106: why a province is marked on a trip, and "I was not here" */
.app-e-why { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--m-raise); box-shadow: var(--m-raise-sh); display: grid; gap: 8px; }
.app-e-why .app-u-sites li { align-items: center; }
.app-h-cty.is-auto { cursor: pointer; }

/* next_steps 105: own collection items */
.app-c-ownb { margin: 0 0 12px; }
.app-own { display: grid; gap: 12px; }
.app-own-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
@media (max-width: 640px) { .app-own-grid { grid-template-columns: minmax(0, 1fr); } }
.app-own .app-u-sites li { align-items: center; }
.app-mark-del { margin-right: auto; }

/* C0032, C0033: the layers of the province map */
.app-pm-bar { gap: 6px; margin: 6px 0; }
.app-pm-l i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: #9aa3ad; }
.app-pm-l.is-places i { background: #f5a524; } .app-pm-l.is-stays i { background: #16181d; box-shadow: inset 0 0 0 1.5px #fff, 0 0 0 1px #16181d; }
.app-pm-l.is-coll i { background: #a970ff; } .app-pm-l.is-unesco i { background: #2fbf71; } .app-pm-l.is-others i { background: transparent; box-shadow: inset 0 0 0 1.5px #a970ff; }
.app-pm-l[aria-pressed="false"] { opacity: .5; text-decoration: line-through; }
.app-e-provmapm .bmap-pin.app-lay-stay { transform-box: fill-box; transform-origin: center; transform: scale(.55); }
.app-e-provmapm .bmap-pin.is-other { fill: transparent; stroke-width: .8; opacity: .7; }
.app-e-provmapm .bmap-pin.app-lay-coll.is-other { stroke: #a970ff; } .app-e-provmapm .bmap-pin.app-lay-unesco.is-other { stroke: #2fbf71; }

/* next_steps 387a: the left menu – a main row with a chevron, its sub-menu below (one open at a time) */
.app-nav { gap: 2px; }
.app-nav-item { position: relative; display: flex; flex-direction: column; }
.app-nav-item > .app-nav-main { padding-right: 34px; }
.app-nav-chev { position: absolute; top: 3px; right: 3px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--m-r); background: none; color: var(--m-text-3); cursor: pointer; }
.app-nav-chev:hover { color: var(--m-text); background: rgba(var(--m-ink), .06); }
.app-nav-chev:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--m-ring); }
.app-nav-chev .m-i { width: 14px; height: 14px; transition: transform .2s ease; }
.app-nav-item.is-open > .app-nav-chev .m-i { transform: rotate(180deg); }
.app-nav-sub { display: none; flex-direction: column; margin: 2px 0 6px 20px; padding-left: 8px; border-left: 1px solid var(--m-line); }
.app-nav-item.is-open > .app-nav-sub { display: flex; }
.app-nav-sub .m-row { min-height: 30px; font-size: 13px; }
.app-nav-grp { padding: 8px 8px 2px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--m-text-3); }
.app-nav-grp:first-child { padding-top: 2px; }
.app-nav-main[aria-current="true"] { color: var(--m-text); }
.app-nav-main[aria-current="true"] .m-ico { color: var(--m-accent); }
@media (max-width: 767px) {   /* touch: rows of at least 40 px */
  .app-nav .m-row, .app-nav-sub .m-row { min-height: 40px; }
  .app-nav-chev { top: 2px; width: 36px; height: 36px; }
  .app-nav-item > .app-nav-main { padding-right: 42px; }
}
@media (prefers-reduced-motion: reduce) { .app-nav-chev .m-i { transition: none; } }

/* next_steps 109: located bucket list items on the province map of the editor */
.app-e-provmapm .bmap-pin.app-lay-bucket { transform-box: fill-box; transform-origin: center; transform: scale(.5); stroke: var(--m-card-solid); stroke-width: .5; fill: #e5484d; }
.app-e-provmapm .bmap-pin.app-lay-bucket.is-other { fill: transparent; stroke: #e5484d; stroke-width: .8; opacity: .7; }
.app-pm-l.is-bucket i { background: #e5484d; }

/* packing lists (CL2) */
.app-sf-lists { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.app-sf-card { color: inherit; text-decoration: none; transition: box-shadow var(--m-t-fast) var(--m-ease); }
.app-sf-card:hover { box-shadow: var(--m-raise-hover-sh); }
.app-sf-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sf-card .m-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.app-sf-prog { display: grid; grid-template-columns: minmax(70px, auto) minmax(60px, 1fr) auto; align-items: center; gap: 10px; margin-top: 8px; }
.app-sf-top { display: flex; flex-direction: row; text-align: left; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.app-sf-sum { display: flex; flex-wrap: wrap; gap: 6px 24px; flex: 1 1 360px; min-width: 0; }
.app-sf-sum .app-sf-prog { flex: 1 1 150px; margin: 0; }
.app-sf .m-table-toolbar { flex-wrap: wrap; gap: 8px; }
.app-sf .m-table-toolbar .m-select { width: auto; }
/* C0067: a back button above the title, like a breadcrumb step */
.app-sf-back { margin-bottom: 4px; }
.app-sf-back .m-i { width: 18px; height: 18px; }
/* C0066: a past list's card – a small category pie with the item and bag count */
.app-sf-past { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.app-sf-past > div { display: flex; flex-direction: column; gap: 2px; }
.app-sf-past .m-h3 { margin: 0; }
.app-sf-pie { width: 56px; height: 56px; flex: none; border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 13px, #000 14px); mask: radial-gradient(circle, transparent 13px, #000 14px); }
#app-sf-cat .m-mi .m-i, #app-sf-catb .m-i { width: 18px; height: 18px; }
#app-sf-catb { display: inline-flex; align-items: center; gap: 6px; }
.app-sf-table th.app-sf-on, .app-sf-table td.app-sf-on { position: sticky; left: 0; z-index: 1; background: var(--m-card-solid); width: 52px; min-width: 52px; text-align: center; }
.app-sf-table th.app-sf-name, .app-sf-table td.app-sf-name { position: sticky; left: 52px; z-index: 1; background: var(--m-card-solid); min-width: 180px; }
.app-sf-table .app-sf-pc { text-align: center; width: 1%; }
/* the row switch is on almost everywhere: the same soft green as the ticks, not the loud accent */
/* C0143: the packing list's green – light and a little saturated, to go with the rest of the colours */
:root { --app-sf-good: #3FCF7A; --app-sf-good-ink: #053A1C; }
:root[data-theme="dark"] { --app-sf-good: #5BE38F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="beige"]) { --app-sf-good: #5BE38F; } }
.app-sf-on .m-switch input:checked + .m-switch-track { background: var(--app-sf-good); box-shadow: var(--m-well-sh), 0 0 8px color-mix(in oklab, var(--app-sf-good) 45%, transparent); }
.app-sf-on .m-switch input:checked + .m-switch-track::after { background: var(--m-knob); }
/* C0070, C0071: smaller, softer green ticks; an empty one is clearly a box to tick, in both themes */
.app-sf-tk { width: 26px; height: 26px; display: inline-grid; place-items: center; padding: 0; border: 1.5px solid var(--m-text-3); border-radius: var(--m-r-sm); background: var(--m-card-solid); color: var(--m-text-2); cursor: pointer; font-weight: 700; touch-action: manipulation; transition: background var(--m-t-fast) var(--m-ease), border-color var(--m-t-fast) var(--m-ease); }
.app-sf-tk:hover { border-color: var(--m-text-2); background: var(--m-well); }
.app-sf-tk:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sf-tk[data-st="done"] { background: var(--app-sf-good); border-color: var(--app-sf-good); color: var(--app-sf-good-ink); }
.app-sf-tk[data-st="none"] { opacity: .3; border-style: dotted; }
.app-sf-tk .m-i { width: 15px; height: 15px; stroke-width: 2.6; }
.app-sf-table tr.is-off td:not(.app-sf-on) { opacity: .45; }
.app-sf-table tr.is-off .app-sf-name .m-strong { text-decoration: line-through; }
.app-sf-table tr.is-done .app-sf-name .m-strong { color: var(--m-text-2); }
/* C0069: the category rows read as subheadings */
.app-sf-cat th { background: var(--m-accent-wash); text-align: left; position: sticky; left: 0; padding: 14px 12px 10px 20px; }
.app-sf-cat th > * { vertical-align: middle; }
.app-sf-cat .app-sf-catn { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35em; font-weight: 700; margin-right: 16px; letter-spacing: -.01em; min-width: min(11.5em, 52vw);
  padding: 2px 6px 2px 0; border: 0; background: none; color: inherit; font-family: inherit; cursor: pointer; border-radius: var(--m-r-sm); }
.app-sf-cat .app-sf-catn .m-i { width: 20px; height: 20px; }
.app-sf-cat .m-progress { display: inline-block; width: 120px; margin-right: 8px; }
.app-sf-catc { white-space: nowrap; }
.app-sf-catc .m-i { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--m-text-2); }
/* C0073: short place tags, the full path on hover */
.app-sf-place { margin: 2px 0; white-space: nowrap; max-width: 110px; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.app-sf-note { --max: 260px; color: var(--m-text-2); }
@media (max-width: 600px) {
  .app-sf-table th.app-sf-name, .app-sf-table td.app-sf-name { min-width: 130px; max-width: 160px; white-space: normal; }
  .app-sf-tk { width: 34px; height: 34px; }
  .app-sf .m-input-wrap { flex: 1 1 100%; }
  .app-sf .app-cols .m-menu { left: auto; right: 0; }
}
/* costs on the overview (next_steps 162) */
.app-ov-mh { margin-top: 24px; flex-wrap: wrap; }
.app-ov-mh .m-h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-ov-mnote { margin: -4px 0 16px; }
.app-ov-mrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-ov-mrow .app-rank { grid-template-columns: 22px minmax(110px, 2fr) minmax(24px, .5fr) auto 52px; }
/* C0108 (190): one grid for the whole list, so the bars, the sums and the item counts sit under each other whatever the name */
.app-ov-mrow .app-ranks { display: grid; grid-template-columns: 22px minmax(110px, 2fr) minmax(24px, .5fr) auto auto; column-gap: 10px; }
.app-ov-mrow .app-ranks > li:not([hidden]), .app-ov-mrow .app-ranks .app-rank { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.app-ov-mrow .app-ranks .app-ov-num { text-align: right; }
@media (max-width: 600px) { .app-ov-mrow .app-ranks { grid-template-columns: 22px minmax(0, 1fr) auto; } }
@media (max-width: 900px) { .app-ov-mrow { grid-template-columns: minmax(0, 1fr); } }
/* next_steps 168–170: the cost estimates, EUR / USD under a price, the price trends */
.app-ov-alt { display: block; font-size: 11px; font-weight: 400; color: var(--m-text-3); }
.app-ov-trend { margin-top: 16px; }
.app-ov-trend-h { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }

/* C0087: the suggested changes left of the trip's edit button */
.app-trip-acts { align-items: center; flex-wrap: wrap; }
.app-trip-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-right: auto; min-width: 0; flex: 1 1 300px; }
.app-trip-sug .m-btn { white-space: normal; text-align: left; height: auto; min-height: 28px; }

/* C0091: the suggestions' tips wrap and stay inside the dialog */
.app-trip-sug [data-tip]::after { white-space: normal; width: max-content; max-width: min(300px, 80vw); left: 0; text-align: left; transform: translateY(4px); }
.app-trip-sug [data-tip]:hover::after, .app-trip-sug [data-tip]:focus-visible::after { transform: none; }
/* C0095: the editor's place a suggestion led to */
.app-flash { animation: app-flash 2.5s ease-out; border-radius: 6px; }
@keyframes app-flash { 0%, 60% { outline: 3px solid var(--m-accent); outline-offset: 3px; } 100% { outline: 3px solid transparent; outline-offset: 3px; } }

/* C0090 (186): a badge year by year, on the right of its window */
.app-gdlg .m-modal-box:has(.app-bd-chart) { width: min(1000px, 100%); }
.app-bd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.app-bd-cols.is-one { display: block; }
.app-bd-chart { position: sticky; top: 0; }
.app-bd-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 180px; padding: 0 0 18px; margin: 8px 0; border-bottom: 1px solid var(--m-line); }
.app-bd-bar { position: relative; flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; }
.app-bd-bar i { display: block; width: 100%; height: var(--h); min-height: 2px; border-radius: 3px 3px 0 0; background: rgba(var(--m-accent-rgb), .35); }
.app-bd-bar.is-add i { background: var(--m-accent); }
.app-bd-bar em { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font: 10px/1 var(--m-font); font-style: normal; opacity: .7; white-space: nowrap; }
.app-bd-tier { position: absolute; left: 0; right: 0; bottom: calc(18px + (100% - 18px) * var(--h) / 100%); border-top: 1px dashed var(--app-game-text, var(--m-line)); pointer-events: none; }
.app-bd-tier i { position: absolute; left: 0; bottom: 2px; padding: 1px 4px; border-radius: 4px; background: var(--m-bg, #000); font: 10px/1.2 var(--m-font); font-style: normal; opacity: .9; }
@media (max-width: 720px) { .app-bd-cols { grid-template-columns: minmax(0, 1fr); } .app-bd-chart { position: static; } }
.app-bd-cols .app-bd-head { margin-bottom: 16px; }
.app-bd-head:focus { outline: 0; }   /* C0229: the window's first focus is the head, not the tag field (its list stayed open) */
.app-bd-cols .app-tagfield { margin-bottom: 18px; }   /* C0230: room above the "Steps" heading */

/* C0101 (189): the badge search */
.app-bsearch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 4px; }
.app-bsearch .m-input-wrap { flex: 0 1 360px; }
.app-bgrp[hidden], .app-badges li[hidden] { display: none; }

/* C0107: the year / day switch beside a collection's year chart */
.app-coll-yh { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 8px; }
.app-coll-yh .m-h3 { margin: 0; }
.app-coll-yh .m-seg { margin-left: auto; }


/* Settings › Motion and glass (191/1c) */
.app-mo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 14px; align-items: start; }
.app-mo-knobs { display: grid; gap: 10px; margin: 12px 0; max-width: 420px; }
.app-mo-knobs .m-slider-row { grid-template-columns: 110px minmax(0, 1fr) 56px; }
.app-mo-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.app-ycdef-sws { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 12px; }   /* 252 (D281) */
.app-mo-stat { margin: 8px 0; border-radius: 12px; background: var(--m-raise); }
.app-mo-dots { display: flex; gap: 10px; margin-top: 10px; }
.app-mo-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--m-accent); box-shadow: 0 0 0 3px rgba(var(--m-accent-rgb), .15); }
.app-mo-list { margin: 0; padding-left: 18px; }

/* trip planner (D200, 132.) */
.app-itin-row { display: block; margin-bottom: 10px; color: inherit; text-decoration: none; }
.app-itin-row:hover { box-shadow: var(--m-raise-hover-sh); }
.app-itin-row .m-card-body { display: grid; gap: 4px; }
.app-itin-row-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.app-itin-card { margin-bottom: 12px; }
.app-itin-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.app-itin-h .m-i { width: 18px; height: 18px; }
.app-itin-sub { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; }
.app-itin-sub:first-child { margin-top: 0; }
.app-itin-sub .m-i { width: 15px; height: 15px; color: var(--m-text-3); }
.app-itin-ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.app-itin-leg, .app-itin-item { display: flex; align-items: baseline; gap: 6px; overflow-wrap: anywhere; }
.app-itin-leg .m-i, .app-itin-item .m-i { flex: none; width: 15px; height: 15px; align-self: center; }
.app-itin-price { white-space: nowrap; font-size: 13px; color: var(--m-text-2); }
.app-itin-stars { color: var(--m-warn); letter-spacing: 1px; white-space: nowrap; }
/* 135b: the picture of a sight and its Wikipedia card */
.app-itin-thumbc { width: 48px; padding-right: 0 !important; }
.app-itin-thumb { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 32px; padding: 0; border: 1px solid var(--m-line); border-radius: 6px;
  background: var(--m-bg); color: var(--m-text-3); overflow: hidden; cursor: zoom-in; vertical-align: middle; }
.app-itin-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-itin-thumb svg { width: 16px; height: 16px; opacity: .6; }
.app-itin-thumb--none { cursor: default; opacity: .5; }
.app-itin-thumb:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.app-wikicard { position: absolute; z-index: 1200; width: min(360px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 12px 14px; background: var(--m-card-solid, var(--m-bg-solid));
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28); }
.app-wikicard--sheet { position: fixed; left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; max-height: 75vh; }
.app-wikicard-img { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 6px; margin: 4px 0 8px; }
.app-wikicard-x { float: right; margin: -4px -6px 0 6px; }
.app-wikicard .m-h4 { margin: 0 0 6px; }
.app-wikicard-text { margin: 0 0 8px; line-height: 1.45; }
.app-wikicard-src { margin: 6px 0 0; }
.app-itin-table td .m-i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.app-itin-total td { font-weight: 700; }
.app-itin-rate-auto { border-bottom: 1px dotted currentColor; cursor: help; }   /* 136.4: a calculated rate */
.app-itin-warn { display: flex; align-items: center; gap: 6px; color: var(--m-warn-text); }
.app-itin-note { display: flex; align-items: center; gap: 6px; margin: -6px 0 10px; }
.app-itin-pre { white-space: pre-line; }
.app-itin-map { height: 60vh; min-height: 320px; border-radius: 12px; overflow: hidden; }
.app-itin-map:not(.bmap--gl) { height: auto; min-height: 0; }   /* the SVG fallback keeps its own aspect */
.app-itin-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 10px; }
.app-itin-keyi { display: inline-flex; align-items: center; gap: 6px; }
.app-itin-lsw { flex: none; }
/* 134.3: the day panel – right of the map on a wide screen, under it on a phone */
.app-itin-mapgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 900px) { .app-itin-mapgrid { grid-template-columns: minmax(0, 1fr) 280px; } .app-itin-side { max-height: 60vh; overflow-y: auto; } }
.app-itin-side .app-itin-sub:first-of-type { margin-top: 10px; }
.app-itin-pbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.app-itin-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.app-itin-step { display: grid; grid-template-columns: 42px 18px minmax(0, 1fr); align-items: center; gap: 6px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; }
button.app-itin-step { cursor: pointer; }
button.app-itin-step:hover, .app-itin-step.is-on { background: var(--m-hover, var(--m-well)); }
.app-itin-step.is-none { opacity: .55; }
.app-itin-pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 12px; }
.app-itin-band { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; background: var(--m-line-strong); }
.app-itin-none { background: none; box-shadow: inset 0 0 0 1px var(--m-line-strong); }
.app-itin-c0 { background: var(--m-series-1); } .app-itin-c1 { background: var(--m-series-2); } .app-itin-c2 { background: var(--m-series-3); } .app-itin-c3 { background: var(--m-series-4); }
.app-itin-c4 { background: var(--m-series-5); } .app-itin-c5 { background: var(--m-series-6); } .app-itin-c6 { background: var(--m-series-7); } .app-itin-c7 { background: var(--m-series-8); }
.app-itin-st-booked { color: var(--m-good-text); }
.app-itin-st-done { color: var(--m-text-3); }
.app-itin-table .app-num { text-align: right; white-space: nowrap; }
/* trip planner editor (133.3) */
.app-ie-top { display: flex; justify-content: flex-end; gap: 8px; margin: -6px 0 8px; }
.app-ie-form { display: grid; gap: 10px; }
.app-ie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.app-ie-grid .m-field, .app-ie-form > .m-field { margin: 0; }
.app-ie-wide { grid-column: span 2; }
.app-ie-price { border: 1px solid var(--m-line); border-radius: var(--m-r-md, 8px); padding: 8px 10px 10px; margin: 0; display: grid; gap: 8px; }
.app-ie-price legend { padding: 0 4px; color: var(--m-text-2); }
.app-ie-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-ie-checks-col { flex-direction: column; max-height: 260px; overflow: auto; }
.app-ie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.app-ie-list { margin: 0 0 4px; padding: 0; list-style: none; display: grid; }
.app-ie-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--m-line); overflow-wrap: anywhere; }
.app-ie-row:last-child { border-bottom: 0; }
.app-ie-rowbtns { display: flex; flex: none; gap: 2px; }
.app-ie-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 10px; }
.app-ie-day { flex: none; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--m-line); color: var(--m-text); text-decoration: none; font-size: 13px; white-space: nowrap; background: var(--m-card); }
.app-ie-day.is-on { border-color: var(--m-accent); box-shadow: inset 0 0 0 1px var(--m-accent); font-weight: 600; }
.app-ie-warn { margin: 0 0 10px; padding: 0; list-style: none; color: var(--m-warn-text); display: grid; gap: 4px; }
.app-ie-warn li { display: flex; align-items: center; gap: 6px; }
.app-ie-warn .m-i { width: 14px; height: 14px; }
.app-ie-multi { min-height: 140px; }
@media (max-width: 560px) { .app-ie-wide { grid-column: 1 / -1; } .app-ie-grid { grid-template-columns: 1fr 1fr; } }
/* new packing list from a list (CL3a) */
.app-sf-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.app-sf-bar .app-sf-back { margin-bottom: 0; }
/* the packing board (CL9b): columns side by side, scrolled sideways on a narrow screen */
.app-sf-view { flex: none; }
.app-sb { display: flex; gap: 12px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.app-sb-col { flex: 0 0 260px; display: flex; flex-direction: column; max-height: calc(100vh - 180px); background: var(--m-well); border: 1px solid var(--m-line); border-radius: var(--m-r-sm); transition: box-shadow var(--m-t-fast) var(--m-ease), border-color var(--m-t-fast) var(--m-ease); }
.app-sb-col.is-shut { flex-basis: 44px; }
.app-sb-col.is-shut .app-sb-head > :not(.app-sb-fold) { display: none; }
.app-sb-col.is-shut .app-sb-head { padding: 6px 4px; justify-content: center; }
.app-sb-col.is-over { border-color: var(--m-accent); box-shadow: 0 0 0 2px var(--m-ring); }
.app-sb-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--m-line); }
.app-sb-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sb-w { font-weight: 600; white-space: nowrap; }
.app-sb-lim { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; color: var(--m-text-2); }
.app-sb-lim.is-bad { color: var(--m-warn-text); font-weight: 600; }
.app-sb-lim .m-i { width: 14px; height: 14px; }
.app-sb-card, .app-sb-dot { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.app-sb-ghost { position: fixed; z-index: 1000; pointer-events: none; width: 220px; opacity: .9; box-shadow: var(--m-pop-sh); transform: translate(-50%, -60%) rotate(-2deg); }
.app-sb-body { display: grid; gap: 6px; padding: 8px; overflow-y: auto; min-height: 64px; align-content: start; }
.app-sb-cat { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--m-text-2); }
.app-sb-cat:first-child { margin-top: 0; }
.app-sb-card { display: flex; align-items: center; gap: 6px; padding: 6px 4px 6px 8px; background: var(--m-card-solid); border: 1px solid var(--m-line); border-radius: var(--m-r-sm); cursor: grab; }
.app-sb-card:hover { border-color: var(--m-line-strong); }
.app-sb-card:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sb-card.is-drag { opacity: .5; }
.app-sb-card.is-sel { box-shadow: 0 0 0 2px var(--m-accent); background: var(--m-accent-wash); }
.app-sb-selbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; }
.app-sb-selbar [aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--m-accent); }
.app-sb-new { margin: 2px 0 6px; }
.app-ni-sim { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 0; }
.app-ni-row { display: flex; align-items: center; gap: 8px; }
.app-ni-row.is-same { font-weight: 600; }
.app-sb-ci { display: inline-flex; color: var(--m-text-3); }
.app-sb-name { min-width: 0; overflow-wrap: anywhere; }
.app-sb-cw { white-space: nowrap; color: var(--m-text-2); }
.app-sb-cw .app-est, .app-sb-w .app-est { font-size: 0; gap: 0; }        /* only the icon, as in the weight bar */
.app-sb-sh { display: inline-flex; color: var(--m-text-3); }
.app-sb-dot { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; cursor: grab; }
.app-sb-dot.is-2 { font-size: 9px; letter-spacing: -0.3px; }
.app-sf-mono { cursor: default; }
.app-sf-who { display: inline-flex; align-items: center; gap: 4px; color: var(--c); font-weight: 600; }
.app-sf-rename { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; border-radius: var(--m-r-sm); }
.app-sf-rename .m-i { opacity: .35; width: 18px; height: 18px; }
.app-sf-rename:hover .m-i, .app-sf-rename:focus-visible .m-i { opacity: .8; }
.app-sf-rename:focus-visible { outline: 2px solid var(--m-ring); outline-offset: 2px; }
.app-sb-catb { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 6px; width: 100%; padding: 2px 0; border-radius: var(--m-r-sm); }
.app-sb-catb:focus-visible { outline: 2px solid var(--m-ring); }
.app-sb-catb .m-i { flex: none; }
.app-sb-qty { all: unset; cursor: pointer; flex: none; padding: 0 4px; border-radius: var(--m-r-sm); color: var(--m-text-2); white-space: nowrap; }
.app-sb-qty.is-one { opacity: .45; }
.app-sb-qty:hover, .app-sb-qty:focus-visible { background: var(--m-hover, var(--m-line)); opacity: 1; }
.app-sq-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.app-sb-mv { flex: none; padding: 2px 4px; }
.app-sb-empty { margin: 8px 0; text-align: center; }
.app-sb-off:empty { display: none; }
.app-mv-to { margin: 12px 0 6px; }
.app-mv-list { display: grid; gap: 6px; }
.app-mv-t { justify-content: flex-start; }
/* CL9c: the suggestions on the board, the persons' own bags not on the list yet, the trip details */
.app-sb-card.is-sug { border-style: dashed; background: transparent; cursor: copy; }
.app-sb-card.is-sug > .m-i { width: 14px; height: 14px; color: var(--m-text-2); }
.app-sb-sugh { color: var(--m-accent); }
.app-sb-col.is-sug { border-style: dashed; background: transparent; }
.app-sf-tpc { display: inline-flex; align-items: center; gap: 4px; }
.app-sf-tpc > .m-i { width: 14px; height: 14px; color: var(--m-text-2); }
.app-sf-tps { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 12px; }
.app-sf-nrow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.app-sf-nps { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.app-sf-np { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.app-sf-it { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-sf-it:hover { text-decoration: underline; }
.app-sf-it:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--m-ring); border-radius: 4px; }
.app-sf-prio { height: 18px; padding: 0 7px; vertical-align: middle; }
.app-sf-prio--must { color: var(--m-accent); background: var(--m-accent-wash); }
.app-sf-tg { white-space: nowrap; }
.app-sf-qrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-sf-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.app-sf-catn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sf-cat .app-sf-catn > .m-i:first-child { width: 16px; height: 16px; color: var(--m-text-2); transition: transform var(--m-t-fast) var(--m-ease); }
.app-sf-cat.is-shut .app-sf-catn > .m-i:first-child { transform: rotate(-90deg); }
.app-sf-cat.is-shut th { padding-bottom: 14px; }
/* each category row stands out as its own raised strip, shut or open (C0127) */
.app-sf-cat th { border-top: 6px solid var(--m-card-solid); box-shadow: inset 0 1px 0 var(--m-line-strong), inset 0 -1px 0 var(--m-line-strong), inset 0 -6px 8px -6px rgba(0,0,0,.16); }
.app-sf-cat:first-child th { border-top-width: 0; }
.app-sf-cat.is-shut th { box-shadow: inset 0 1px 0 var(--m-line-strong), inset 0 -1px 0 var(--m-line-strong), inset 0 -8px 10px -8px rgba(0,0,0,.22); }
.app-sf-catk { margin-left: 12px; }
.app-sf-table thead th, .app-sf-table td { width: 1%; }
.app-sf-table.has-note .app-sf-notec { width: 100%; max-width: 0; min-width: 160px; }
.app-sf-table.has-note .app-sf-note { --max: 100%; }
.app-sf-table:not(.has-note) .app-sf-name { width: 100%; }
.app-sf-pl { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; min-width: 40px; min-height: 26px; padding: 0 4px; border: 0; border-radius: var(--m-r-sm); background: none; color: var(--m-text-3); font: inherit; cursor: pointer; }
.app-sf-pl:hover { background: var(--m-well); }
.app-sf-pl:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sf-pl > .m-i { width: 14px; height: 14px; opacity: .4; }
tr:hover .app-sf-pl > .m-i { opacity: 1; }
/* CL4a: weights – the row button like the place button, estimated ones in the estimate colour (DCL7) */
.app-sf-wtc { white-space: nowrap; width: 1%; }
.app-sf-wb { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 40px; min-height: 26px; padding: 0 4px; border: 0; border-radius: var(--m-r-sm); background: none; color: inherit; font: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.app-sf-wb:hover { background: var(--m-well); }
.app-sf-wb:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--m-ring); }
.app-sf-wb > .m-i { width: 14px; height: 14px; color: var(--m-text-3); }
.app-sf-wb .app-est, .app-sf-wsum .app-est { font-size: 0; gap: 0; }        /* only the icon, the word is in the tooltip */
.app-sf-wt.is-est { color: var(--m-warn); }
.app-sf-wsum { flex: 1 1 100%; display: grid; gap: 6px; }
.app-sf-wsum:empty { display: none; }
/* CL6: country-specific suggestions */
.app-sf-cc { margin-bottom: 12px; }
.app-sf-cc:empty { display: none; }
.app-sf-cch { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.app-sf-cch > .m-i { width: 18px; height: 18px; color: var(--m-text-2); }
.app-sf-ccs { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.app-sf-ccg { display: inline-flex; align-items: center; gap: 6px; }
.app-sf-ccd .app-chips { margin-bottom: 10px; }
/* CL5b: the climate bar */
.app-sf-clm { width: auto; }
.app-sf-clv { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 10px; }
.app-sf-clsrc { margin: 10px 0 0; }
.app-sf-cl--cold { color: var(--m-accent); }
.app-sf-cl--hot, .app-sf-cl--warm { color: var(--m-warn); }
.app-sf-wrow { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.app-sf-wrow > .m-i { width: 18px; height: 18px; color: var(--m-text-2); }
.app-pl-dims { display: flex; align-items: center; gap: 4px; }
.app-pl-dims .m-input { min-width: 0; flex: 1 1 0; }
.app-sf-wchip { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.app-sf-wchip > .m-i { width: 14px; height: 14px; color: var(--m-text-3); }
/* 234 (C0155): a bag's name opens its window – its pieces and weight large, its content by pouch */
.app-sf-placec[data-at] { cursor: pointer; }
button.app-sf-place { border: 0; font: inherit; cursor: pointer; }
button.app-sf-place:hover { background: var(--m-accent-wash); color: var(--m-accent); }
.app-sf-wchip .app-sf-bagl { padding: 0; border: 0; background: none; color: var(--m-accent); font: inherit; font-size: 13px; cursor: pointer; }
.app-sf-wchip .app-sf-bagl:hover { text-decoration: underline; }
.app-sf-pledit { margin-left: 4px; vertical-align: middle; }
.app-sf-bagnums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 12px; }
.app-sf-bagh { display: flex; align-items: center; gap: 6px; margin: 14px 0 6px; }
.app-sf-bagh .m-i { width: 16px; height: 16px; color: var(--m-text-3); }
.app-sf-bagt { table-layout: fixed; }
.app-sf-bagt th:nth-child(2) { width: 34%; }
.app-sf-bagt th:nth-child(3) { width: 64px; }
.app-sf-bagt th:nth-child(4) { width: 120px; }
.app-sf-bagc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-sf-bagc .m-i { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; color: var(--m-text-3); }
.app-sf-worn { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.app-sf-picks { display: grid; gap: 8px; margin-bottom: 8px; max-height: 45vh; overflow: auto; }
.app-sf-picks .app-sf-sub { padding-left: 28px; }
.app-sf-table td.app-sf-subc { padding-left: 36px; }

/* a Mortar chart outside an .m-chart box (the badges page) still gets the theme's text colour (C0124) */
.m-chart-plot svg text { font: 600 11px var(--m-font); fill: var(--m-text-3); font-variant-numeric: tabular-nums; }

/* C0156: a window's head stays, only its body scrolls – the scrollbar starts under the head and keeps clear of the
   rounded corner */
.m-modal-box { display: flex; flex-direction: column; overflow: hidden; }
.m-modal-box > .m-modal-head, .m-modal-box > .m-modal-foot { flex: none; }
.m-modal-box > .m-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
/* C0149: the collections of a country's visited items stand apart – bigger name and icon, a line between them */
.app-crec-h.app-ccoll-h { font-size: 15px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(var(--m-ink), .08); }
.app-crec-h.app-ccoll-h:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.app-crec-h.app-ccoll-h > .m-i { width: 20px; height: 20px; }

/* the year charts' own switches (231, D271): mode, monthly strips, gradient, full scale */
.app-yc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin: 0 0 10px; }
.app-yc-bar:empty { display: none; }
.app-yc-sw { height: 28px; }

/* admin mode (300): the admin-only functions are on – a red label and line in the footer, and the same red on the admin-only controls */
.m-statusbar.is-admin { box-shadow: inset 0 2px 0 var(--m-danger); }
.app-admin-badge { padding: 1px 8px; border-radius: 4px; background: #C8243C; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.app-admin-only { box-shadow: 0 0 0 1.5px var(--m-danger); }
.app-fresh summary { cursor: pointer; font-weight: 700; }
.app-fresh ul { list-style: none; margin: 6px 0 0; padding: 0; }
.app-fresh li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--m-line); }
.app-fresh li a { min-width: 0; overflow-wrap: anywhere; }
.app-fresh-day { flex: none; text-align: right; font-variant-numeric: tabular-nums; color: var(--m-text-2); }
.app-e-plact { display: inline-flex; align-items: center; gap: 4px; }
.app-e-plact .m-btn.is-on { background: color-mix(in srgb, var(--m-danger) 14%, transparent); }
.app-lay-grid { stroke: none; fill-opacity: .75; } .app-lay-grid.is-est { fill-opacity: .45; }   /* 364c: heat grid without WebGL */
.app-lay-road { fill: none; stroke-width: 2.6; vector-effect: non-scaling-stroke; cursor: pointer; stroke-linejoin: round; }
.app-lay-road.is-car { stroke: var(--app-mode-car); } .app-lay-road.is-bus { stroke: var(--app-mode-bus); } .app-lay-road.is-bike { stroke: var(--app-mode-bike); } .app-lay-road.is-foot { stroke: var(--app-mode-foot); }
.app-lay-road.is-train { stroke: var(--app-mode-train); } .app-lay-road.is-ship { stroke: var(--app-mode-ship); }
.app-lay-road.is-est { stroke-width: 2; stroke-dasharray: 7 3; opacity: .75; } .app-lay-road.is-arc { stroke-width: 2; stroke-dasharray: 6 5; opacity: .6; }
.app-lay-road.is-pending { stroke-dasharray: 1 4; stroke-linecap: round; opacity: .75; }
.app-lay-road.is-dim { opacity: .15; }
.bmap-pin.app-lay-stop { fill: #2563eb; stroke: #fff; stroke-width: .6; } .bmap-pin.app-lay-stop.is-dim { opacity: .25; }
.app-road-legi i { width: 16px; height: 0; border-radius: 0; border-top: 3px solid var(--c, currentColor); background: none; }
.app-road-legi.is-est i { border-top-style: dashed; opacity: .75; } .app-road-legi.is-arc i { border-top-style: dashed; opacity: .5; } .app-road-legi.is-pending i { border-top-style: dotted; }
.app-road-legi button, button.app-road-legi { cursor: pointer; }
button.app-road-legi[aria-pressed="true"] { background: var(--m-raise); font-weight: 700; }
.app-layer--roads i { background: #f43f5e; }
.app-road { margin: 8px 0; padding: 6px 10px; border-radius: 8px; }

/* 299 (C0212): on a wide screen the Map page's map fits under the tiles – its bottom (Europe, Africa …) no longer needs a scroll */
/* U2: --app-map-below keeps room under the map for the timeline slider planned there */
#app-map-card { --app-map-below: 56px; }
@media (min-width: 900px) { #app-map .bmap-svg, #app-map.bmap--gl { max-height: max(360px, calc(100vh - 300px - var(--app-map-below))); } }

/* 299 (C0214): on a phone the tabs of the Collections / Settings pages are one scrollable row – a wrapped bar took more than a screen */
@media (max-width: 640px) { .app-coll-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .app-coll-tabs::-webkit-scrollbar { display: none; } .app-coll-tab { flex: 0 0 auto; } }

/* 299 (C0209): the province map zooms and pans; a switchable layer of the trips' places and the main cities */
.app-cmap-svg { touch-action: none; cursor: grab; }
.app-cmap-tools { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.app-cmap-tools label { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.app-cmap-lay { display: none; pointer-events: none; }
.app-cmap-svg.has-lay .app-cmap-lay { display: block; }
.app-cmap-route { fill: none; stroke: var(--m-text); stroke-width: 1.2; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; opacity: .6; }
.app-cmap-pt { fill: var(--m-text); stroke: var(--m-card-solid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.app-cmap-city { fill: #d9a441; stroke: var(--m-card-solid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.app-cmap-lbl { fill: var(--m-text); paint-order: stroke; stroke: var(--m-card-solid); stroke-width: 3px; stroke-linejoin: round; font-weight: 600; vector-effect: non-scaling-stroke; }

/* Daily breakdown of a trip (next_steps 301) */
.app-td { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; align-items: start; }
.app-td-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.app-td-li { display: flex; gap: 8px; align-items: baseline; width: 100%; text-align: left; padding: 8px 10px; border: 1px solid var(--m-line-strong); border-radius: 8px; background: var(--m-card); color: var(--m-text); cursor: pointer; font: inherit; }
.app-td-li.is-cur { border-color: var(--m-accent); }
.app-td-li.is-calc { color: var(--m-text-3); font-style: italic; }
.app-td-li.is-empty { color: var(--m-text-3); opacity: .75; }
.app-td-n { font-weight: 600; min-width: 4.5em; }
.app-td-day { display: grid; gap: 12px; }
.app-td-nav { display: none; gap: 8px; align-items: center; justify-content: space-between; }
.app-td-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; align-items: end; }
.app-td-row + .app-td-row { margin-top: 8px; }
.app-td-wide { grid-column: span 2; }
.app-td-tray { margin-top: 12px; }
.app-td-calc { color: var(--m-text-3); font-style: italic; }
@media (max-width: 760px) {
  .app-td { grid-template-columns: 1fr; }
  .app-td .app-td-day { display: none; }
  .app-td.is-day .app-td-list-wrap { display: none; }
  .app-td.is-day .app-td-day { display: grid; }
  .app-td.is-day .app-td-nav { display: flex; }
  .app-td.is-day .app-td-h { display: none; }
}
/* 299 (C0217): "My latest badges" above the showcase; the new ones pop */
.app-lt-row { display: flex; gap: 14px 22px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.app-lt-row .app-sc-b { flex: 0 0 110px; }
.app-lt-row .app-sc-b.is-fresh .app-medal { animation: app-pop .9s cubic-bezier(.2, 1.4, .4, 1) both, app-lt-glow 1.6s ease-out .9s 2; }
@keyframes app-lt-glow { 0%, 100% { filter: none; } 50% { filter: drop-shadow(0 0 10px var(--app-game)); } }
@media (prefers-reduced-motion: reduce) { .app-lt-row .app-sc-b.is-fresh .app-medal { animation: none; } }
/* 299 (C0218): the zoom buttons sit on the province map like on the other maps (the SVG map's .bmap-ctl) */
.app-cmap-box { position: relative; }
.app-cmap-tools:empty { display: none; }

/* C0219: a badge's contribution rows line up in columns (date | trip | +points | awarded on), whatever the trip's name length */
.app-bd-list li { display: grid; grid-template-columns: 7em minmax(0, 1fr) 7.5em 12em; align-items: center; gap: 4px 10px; }
.app-bd-list li > .app-bd-inc, .app-bd-list li > .app-pts { justify-self: end; text-align: right; white-space: nowrap; }
.app-bd-list li > .app-bd-what { grid-column: 1 / -1; }
.app-bd-list li > .app-date { white-space: nowrap; }
@media (max-width: 720px) { .app-bd-list li { grid-template-columns: 7em minmax(0, 1fr) auto; } .app-bd-list li > .m-small.app-muted:not(.app-bd-what) { grid-column: 1 / -1; } }

/* C0220: the "back to the top" button at the bottom of every long window */
.m-modal-box { position: relative; }
.m-modal-box > .app-totop { position: absolute; right: 20px; bottom: 16px; z-index: 2; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }   /* C0238: only the window's button; the page's stays fixed */
.app-totop[hidden] { display: none; }

/* C0221: the basic data row – Days is only as wide as 3 digits, the freed space goes to the organiser combo */
.app-e-grid--basic { grid-template-columns: minmax(6.5em, 1fr) minmax(7.5em, 1.1fr) minmax(7.5em, 1.1fr) 4.5em minmax(13em, 2fr); }
.app-e-grid--basic .app-e-dom { grid-column: 1 / -1; }
.app-e-grid--basic .app-e-days .m-input { text-align: center; padding-left: 8px; padding-right: 8px; }
@media (max-width: 760px) { .app-e-grid--basic { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-e-grid--basic .m-field:has(#app-e-org) { grid-column: 1 / -1; } }
/* trip planner, the vertical page (137.1, D320) */
.app-ip-bar-top { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.app-ip { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.app-ip-hero { padding: 22px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--m-accent-wash), var(--m-well)); border: 1px solid var(--m-line); }
.app-ip-kicker { margin: 0 0 4px; color: var(--m-text-2); }
.app-ip-title { margin: 0 0 4px; overflow-wrap: anywhere; }
.app-ip-dates { margin: 0 0 4px; color: var(--m-text-2); }
.app-ip-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-top: 14px; }
.app-ip-tile { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--m-card-solid, var(--m-bg)); border: 1px solid var(--m-line); }
.app-ip-tile { min-width: 0; }
.app-ip-tile b { font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.app-ip-tile span { font-size: 12px; color: var(--m-text-3); }
.app-ip-sec { padding: 16px; border-radius: 14px; background: var(--m-card-solid, var(--m-bg)); border: 1px solid var(--m-line); min-width: 0; }
.app-ip-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.app-ip-h .m-i { width: 18px; height: 18px; color: var(--m-accent); }
.app-ip-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; }
.app-ip-chips .m-btn { flex: none; }
.app-ip-map { height: 46vh; min-height: 260px; }
/* 138: the share panel above the shared preview, and the stored snapshot page (only the rules it uses are copied into it) */
.app-ish { max-width: 820px; margin: 0 auto 14px; }
.app-ish-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.app-ish-h .m-i { width: 18px; height: 18px; color: var(--m-accent); }
.app-ish-link { display: flex; gap: 6px; margin: 8px 0 4px; }
.app-ish-link .m-input { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: 13px; }
.app-ish-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.app-ip-snapmap { border-radius: 10px; background: var(--m-well); border: 1px solid var(--m-line); }
.app-ip-snapmap svg { display: block; width: 100%; height: auto; }
.app-share { margin: 0; background: var(--m-bg); color: var(--m-text); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.app-share-main { padding: 16px; }
.app-share-foot { max-width: 820px; margin: 0 auto; padding: 4px 16px 24px; text-align: center; }
.app-ip-day { padding: 10px 0; border-top: 1px solid var(--m-line); }
.app-ip-day:first-of-type { border-top: 0; padding-top: 0; }
.app-ip-dh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.app-ip-n { display: inline-block; min-width: 34px; padding: 1px 6px; border-radius: 6px; background: var(--m-accent); color: var(--m-on-accent, #fff); font-size: 12px; font-weight: 700; text-align: center; }
.app-ip-tl { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 4px; }
.app-ip-e { display: grid; grid-template-columns: 78px 22px minmax(0, 1fr); align-items: baseline; gap: 6px; position: relative; }
.app-ip-time { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--m-text-3); white-space: nowrap; }
.app-ip-dot .m-i { width: 15px; height: 15px; vertical-align: -2px; color: var(--m-text-2); }
.app-ip-txt { overflow-wrap: anywhere; }
.app-ip-e.is-opt .app-ip-txt { color: var(--m-text-2); }
.app-ip-e.is-stay .app-ip-txt { font-weight: 600; }
.app-ip-tip { display: flex; gap: 6px; align-items: center; margin: 6px 0 0 110px; color: var(--m-text-2); }
.app-ip-tip .m-i { width: 14px; height: 14px; flex: none; }
.app-ip-meals, .app-ip-books { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-ip-cost { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.app-ip-cost li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.app-ip-bar { height: 10px; border-radius: 5px; background: var(--m-well); overflow: hidden; }
.app-ip-bar i { display: block; height: 100%; border-radius: 5px; background: var(--m-series-1); }
.app-ip-sum { padding-top: 6px; border-top: 1px solid var(--m-line); font-weight: 700; }
.app-ip-books li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.app-ip-bi { display: inline-flex; align-items: center; }
.app-ip-bi .m-i { width: 15px; height: 15px; }
/* 139.1: cover pictures (Wikimedia Commons, with the credit under them) */
.app-ip-imgbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.app-ip-imgbar > .m-i { width: 16px; height: 16px; }
.app-ip-imgbar .m-btn { margin-left: auto; }
.app-ip-fig { margin: 0; }
.app-ip-fig img { display: block; width: 100%; object-fit: cover; border-radius: 12px; background: var(--m-well); }
.app-ip-credit { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: 11px; line-height: 1.35; color: var(--m-text-3); }
.app-ip-credit a { color: inherit; }
.app-ip-figpick { margin-left: auto; }
.app-ip-cover { margin-bottom: 12px; }
.app-ip-cover img { aspect-ratio: 21 / 8; border-radius: 16px; }
.app-ip-fignone { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.app-ip-dfig { float: right; width: min(40%, 280px); margin: 0 0 8px 14px; }
.app-ip-dfig img { aspect-ratio: 4 / 3; }
.app-ip-day::after { content: ""; display: block; clear: both; }
.app-ip-picker { margin: 0 0 12px; padding: 10px; border-radius: 12px; border: 1px solid var(--m-line); background: var(--m-well); }
.app-ip-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.app-ip-picks button { display: grid; gap: 4px; padding: 4px; text-align: left; border-radius: 8px; border: 1px solid var(--m-line); background: var(--m-card-solid, var(--m-bg)); color: var(--m-text); cursor: pointer; font: inherit; font-size: 12px; }
.app-ip-picks button:hover, .app-ip-picks button:focus-visible { border-color: var(--m-accent); }
.app-ip-picks img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.app-ip-picks small { color: var(--m-text-3); font-size: 10.5px; }
.app-ip-away { color: var(--m-warn, var(--m-text-3)); font-style: italic; }   /* 139.2 */
@media (max-width: 560px) {
  .app-ip-dfig { float: none; width: auto; margin: 0 0 8px; }
  .app-ip-hero { padding: 16px 14px; }
  .app-ip-sec { padding: 12px; }
  .app-ip-e { grid-template-columns: 62px 20px minmax(0, 1fr); }
  .app-ip-tip { margin-left: 0; }
  .app-ip-cost li { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .app-ip-books li { grid-template-columns: 36px minmax(0, 1fr); }
  .app-ip-books li > :last-child { grid-column: 2; justify-self: start; }
}
@media print { .app-ip-bar-top, .app-ip-chips, .app-ip-map { display: none; } .app-ip-sec, .app-ip-hero { break-inside: avoid-page; } }

/* trip planner, the landscape print pages (137.2, D206 (1)): A4, one day per page; on screen scaled to the width */
.app-pp-deck { display: grid; gap: 18px; justify-content: start; page: itin-land; }
.app-pp { position: relative; box-sizing: border-box; width: 277mm; height: 190mm; padding: 9mm 11mm 13mm; overflow: hidden; display: flex; flex-direction: column; gap: 5mm;
  background: var(--m-card-solid, var(--m-bg)); border: 1px solid var(--m-line); border-radius: 6px; box-shadow: 0 4px 18px rgba(0, 0, 0, .12); font-size: 10.5pt; line-height: 1.45; }
.app-pp-foot { position: absolute; left: 11mm; right: 11mm; bottom: 5mm; display: flex; justify-content: space-between; font-size: 8pt; color: var(--m-text-3); border-top: 1px solid var(--m-line); padding-top: 2mm; }
.app-pp-cover { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10mm; align-items: center; min-height: 0;
  margin: -9mm -11mm 0; padding: 9mm 11mm; background: linear-gradient(135deg, var(--m-accent-wash), var(--m-well)); }
.app-pp-title { margin: 0 0 3mm; font-size: 30pt; line-height: 1.1; overflow-wrap: anywhere; }
.app-pp-cover .app-ip-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-pp-map { min-height: 0; display: flex; justify-content: center; align-items: center; border-radius: 6px; background: var(--m-well); border: 1px solid var(--m-line); }
.app-pp-cover .app-pp-map { height: 100%; max-height: 150mm; }
.app-pp-sketch { width: 100%; height: 100%; max-height: 100%; }
.app-pp-it { fill: var(--m-text-2); }
.app-pp-st { stroke: var(--m-card-solid, #fff); stroke-width: 2; }
.app-pp-lb { font-size: 11px; font-weight: 700; fill: var(--m-text); paint-order: stroke; stroke: var(--m-card-solid, #fff); stroke-width: 3px; }
.app-pp-h { display: flex; align-items: center; gap: 2mm; margin: 0 0 2mm; font-size: 15pt; }
.app-pp-h .m-i { width: 18px; height: 18px; color: var(--m-accent); }
.app-pp-ov { width: 100%; border-collapse: collapse; font-size: 10pt; }
.app-pp-ov th { text-align: left; font-size: 8.5pt; color: var(--m-text-3); border-bottom: 1px solid var(--m-line); padding: 1mm 2mm; }
.app-pp-ov td { padding: 1.4mm 2mm; border-bottom: 1px solid var(--m-line); }
.app-pp-nw { white-space: nowrap; }
.app-pp-dh { display: flex; align-items: center; gap: 4mm; padding-bottom: 3mm; border-bottom: 2px solid var(--m-accent); font-size: 13pt; line-height: 1.25; }
.app-pp-n { font-size: 24pt; font-weight: 800; color: var(--m-accent); font-variant-numeric: tabular-nums; }
.app-pp-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 7mm; }
.app-pp-cols.app-pp-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.app-pp-main { min-width: 0; overflow: hidden; }
.app-pp-main .app-ip-e { grid-template-columns: 24mm 6mm minmax(0, 1fr); }
.app-pp-main .app-ip-time { font-size: 9.5pt; }
.app-pp-main .app-ip-tip { margin-left: 30mm; }
.app-pp-food { display: flex; gap: 2mm; align-items: center; margin: 3mm 0 0 30mm; color: var(--m-text-2); }
.app-pp-food .m-i { width: 14px; height: 14px; flex: none; }
.app-pp-side { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 4mm; }
.app-pp-side.has-fig { grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) auto; }
.app-pp-side.has-fig > :nth-child(2):not(.app-pp-map) { grid-row: 3; }
.app-pp-fig { min-height: 0; display: flex; flex-direction: column; margin: 0; }
.app-pp-fig img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 6px; }
.app-pp-fig .app-ip-credit { font-size: 7pt; margin-top: 1mm; }
.app-pp-cside { height: 100%; max-height: 150mm; display: grid; grid-template-rows: minmax(0, 1fr); gap: 4mm; min-height: 0; }
.app-pp-cside.has-fig { grid-template-rows: minmax(0, 1.2fr) minmax(0, 1fr); }
.app-pp-cside .app-pp-map { height: auto; max-height: none; }
.app-pp-stay { padding: 3mm 4mm; border-radius: 6px; border: 1px solid var(--m-line); background: var(--m-well); }
.app-pp-stay .m-i { width: 15px; height: 15px; vertical-align: -2px; margin-right: 1.5mm; }
.app-pp .app-ip-books li { grid-template-columns: 30px minmax(0, 1fr) auto; }
@page itin-land { size: A4 landscape; margin: 10mm; }
@media print {
  body:has(.app-pp-deck) .m-topbar, body:has(.app-pp-deck) .m-sidenav, body:has(.app-pp-deck) .m-statusbar,
  body:has(.app-ip) .m-topbar, body:has(.app-ip) .m-sidenav, body:has(.app-ip) .m-statusbar, .app-itin-note { display: none !important; }
  body:has(.app-pp-deck) .m-shell, body:has(.app-ip) .m-shell { display: block; height: auto; }
  body:has(.app-pp-deck) .m-main, body:has(.app-ip) .m-main { overflow: visible; padding: 0; }
  body:has(.app-pp-deck) { background: #fff; }
  .app-pp-deck { display: block; zoom: 1 !important; }
  .app-pp { border: 0; border-radius: 0; box-shadow: none; break-after: page; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .app-pp:last-child { break-after: auto; }
}

/* CL7a: the trip of a packing list */
.app-sf-trip { display: flex; align-items: center; gap: .35rem; margin: .75rem 0; }
.app-sf-trsel { width: 100%; height: auto; min-height: 12rem; margin-top: .5rem; }

/* CL7b: after the trip, per row */
.app-sf-aft { min-height: 0; padding: 1px 8px; font-size: .75rem; }   /* C0272: the app's small button, a size smaller in the row */
.app-sf-aft--on { border-color: var(--m-warn); color: var(--m-warn-text); }
.app-sf-aft--missed { border-color: var(--m-danger); color: var(--m-danger); }
.app-sf-was { font-style: italic; }

/* CL7c: the print view of a packing list – on screen it is never seen; while printing only it shows */
.app-print { display: none; }
@media print {
  body.is-printing > :not(.app-print) { display: none !important; }
  body.is-printing { background: #fff; color: #000; }
  body.is-printing .app-print { display: block; font: 10pt/1.35 system-ui, sans-serif; color: #000; }
  .app-print h1 { font-size: 16pt; margin: 0 0 2pt; }
  .app-print > p { margin: 0 0 8pt; color: #444; }
  .app-print h2 { font-size: 11pt; margin: 10pt 0 3pt; break-after: avoid; }
  .app-pr-t { width: 100%; border-collapse: collapse; }
  .app-pr-t th, .app-pr-t td { border-bottom: 0.5pt solid #bbb; padding: 2pt 4pt; text-align: left; }
  .app-pr-t th { font-size: 8pt; font-weight: 600; color: #444; }
  .app-pr-t tr { break-inside: avoid; }
  .app-pr-bx { width: 1%; white-space: nowrap; text-align: center !important; }
  .app-pr-n { width: 1%; white-space: nowrap; }
  .app-pr-box { display: inline-block; width: 9pt; height: 9pt; border: 0.8pt solid #000; border-radius: 1.5pt; }
}

/* 355u: the printed comparison (A4 portrait, light): no controls, rows are not cut in two */
@media print {
  html:has(body.is-printing), body.is-printing { height: auto; overflow: visible; background: #fff; }
  body.is-printing .app-print--cd { color: var(--m-text); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .app-print--cd h1 { margin-bottom: 8pt; }
  .app-print--cd :is(.app-cd-pick, .app-cd-pair, .app-cv-bar, .app-cv-chev, .app-cv-peek, .app-cv-more, .app-cv-scorebox, .app-cv-score--tie) { display: none; }
  .app-print--cd .app-cv-card { break-inside: auto; }
  .app-print--cd :is(.app-cv-top, .app-cv-cols) { break-after: avoid; }
  .app-print--cd :is(.app-cv-top, .app-cv-row, .app-cd-charts) { break-inside: avoid; }
  .app-print--cd :is(.app-cv-mode, .app-cv-gridsw, .app-cv-pop) { display: none; }
  .app-print--cd svg text { font: 600 11px var(--m-font); fill: var(--m-text-3); }
  .app-print--cd svg text.m-t-strong { fill: var(--m-text); font-weight: 800; }
  .app-print--cd a { color: inherit; }
  .app-print--cd .app-cd-scroll { overflow: visible; }
  .app-print--cd .app-cd-tbl table { width: 100%; font-size: 7.5pt; }
  .app-print--cd .app-cd-tbl :is(th, td) { padding: 1pt 2pt; }
  .app-print--cd .app-cd-tbl th[scope="row"] { white-space: normal; }
  .app-print--cd :is(.app-cd-row, .app-cd-tbl tr) { break-inside: avoid; }
}

.app-tcc-scroll { max-height: 50vh; overflow: auto; margin-top: 8px; }
.app-tagres { display: grid; gap: 2px; max-height: 50vh; overflow: auto; margin: 6px 0 10px; }
.app-tagres-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-tagres-i:hover, .app-tagres-i:focus-visible { background: rgba(var(--m-ink), .07); }
:root[data-tags="off"] .app-tag-col { display: none; }   /* the trips table column; the chips are in devkit tags.css (MA15) */
.app-tag-lk { margin: 10px 0 3px; }
#app-tag-look-reset { margin: 12px 0 4px; }
.app-tag-prev { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.app-tag-prev li { display: grid; grid-template-columns: minmax(120px, 220px) 90px 1fr; gap: 4px 12px; align-items: center; }
@media (max-width: 599px) { .app-tag-prev li { grid-template-columns: 1fr auto; } .app-tag-prev .app-tags { grid-column: 1 / -1; } }
.app-tagfield .app-tagbox { margin: 2px 0 0; }
/* a long list (a collection, the bucket list) shows the button only on the row in use */
.app-u-sites .app-tagslot .app-tagpop-btn { opacity: 0; }
.app-u-sites li:hover .app-tagpop-btn, .app-u-sites li:focus-within .app-tagpop-btn, .app-u-sites .app-tagpop-btn:focus-visible { opacity: 1; }
.app-trip-place { white-space: nowrap; }
.app-trip-place .app-tagslot { margin-left: 3px; }
.app-trips .m-btn.is-on { background: rgba(var(--m-ink), .08); }
.app-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--m-line); background: rgba(var(--m-ink), .03); }
.app-bulk .m-input { width: 200px; max-width: 100%; height: 30px; }
.app-t-pick { width: 32px; text-align: center; }
.app-trips-table tr.is-picked td { background: rgba(var(--app-tag-1), .08); }
.app-tag-col .app-tag { cursor: pointer; }
.app-tm-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 8px 0 10px; }
.app-tm-new { display: flex; gap: 6px; }
.app-tm-new .m-input { width: 170px; }
.app-tm-table .app-tm-in { height: 30px; min-width: 72px; padding-top: 0; padding-bottom: 0; font-size: 13px; }
.app-tm-table select.app-tm-in { max-width: 150px; text-overflow: ellipsis; }   /* C0279: no scrollbar under the table */
/* C0281: the icon picker window */
.app-icp { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin: 12px 0; max-height: 52vh; overflow: auto; }
.app-icp-b { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; font: inherit; font-size: 11px; color: inherit; cursor: pointer; background: transparent; border: 1px solid rgba(var(--m-ink), .14); border-radius: 8px; }
.app-icp-b:hover, .app-icp-b:focus-visible { background: rgba(var(--m-ink), .06); }
.app-icp-b.is-on { border-color: rgb(var(--m-accent, var(--m-ink))); box-shadow: inset 0 0 0 1px rgb(var(--m-accent, var(--m-ink))); }
.app-icp-b .m-i { width: 22px; height: 22px; }
.app-icp-b span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-icp-b[hidden] { display: none; }
.app-tpal { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.app-tpal-i { display: inline-flex; align-items: center; gap: 6px; }
.app-tpal-c { width: 30px; height: 26px; padding: 0; border: 1px solid rgba(var(--m-ink), .2); border-radius: 6px; background: none; cursor: pointer; }
.app-tm-sw { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: middle; border-radius: 50%; background: rgb(var(--c)); box-shadow: inset 0 0 0 1px rgba(var(--m-ink), .2); }
.app-tm-en { white-space: nowrap; }
.app-tm-ai { color: var(--m-text-3); margin-left: 4px; }
/* 293: the parts of a query as chips under a list's search field, the smart tag, the tag statistics */
.app-qchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px 8px; border-bottom: 1px solid var(--m-line); }
.app-qchips[hidden] { display: none; }
/* C0307-C0309, C0315: help line, clear button and the name combo of a search field */
.app-qhelp { margin: 0; padding: 4px 12px 6px; line-height: 1.4; }
.app-pal-help { padding: 0 14px 8px; font-size: 11px; line-height: 1.4; color: var(--m-text-3); }
.app-qwrap { position: relative; }
.app-qwrap > .m-input, .app-qwrap > .app-pal-q { padding-right: 30px; }
.app-qclear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--m-text-3); cursor: pointer; padding: 0; }
.app-qclear:hover { background: var(--m-hover, rgba(127, 127, 127, .18)); color: var(--m-text); }
.app-qclear[hidden] { display: none; }
.app-qclear .m-i { width: 14px; height: 14px; }
.app-pal-bar.app-qwrap > .app-qclear { right: 44px; }
.app-qsug { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; max-height: 260px; overflow: auto; background: var(--m-surface, var(--m-bg)); border: 1px solid var(--m-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); padding: 4px; }
.app-qsug[hidden] { display: none; }
.app-qsug-i { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.app-qsug-i small { margin-left: auto; color: var(--m-text-3); }
.app-qsug-i.is-active, .app-qsug-i:hover { background: var(--m-hover, rgba(127, 127, 127, .18)); }
.app-qchip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 2px 0 9px; border-radius: 999px; border: 1px solid var(--m-line-strong, var(--m-line)); background: var(--m-card-solid); font: 600 12px/1 var(--m-font); color: var(--m-text); }
.app-qchip .app-flag, .app-qchip .m-flag { height: 12px; }
.app-qchip.is-nat { border-style: dashed; }
.app-qchip.is-neg .app-qchip-t { text-decoration: line-through; text-decoration-thickness: 1px; }
.app-qchip.is-miss { border-color: var(--m-warn, #b45309); color: var(--m-warn, #b45309); }
.app-qchip-t { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: default; }
button.app-qchip-t { cursor: pointer; }
button.app-qchip-t:hover, button.app-qchip-t:focus-visible { color: var(--m-accent); }
.app-qchip-x { display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--m-text-3); cursor: pointer; }
.app-qchip-x:hover, .app-qchip-x:focus-visible { background: rgba(var(--m-ink), .1); color: var(--m-text); }
.app-qchip-x .m-i { width: 12px; height: 12px; }
.app-qsave { margin-left: auto; }
.app-qmiss { display: inline-flex; align-items: center; gap: 6px; color: var(--m-text-2); }   /* 0.116.3 */
.app-tm-smart { display: block; font-family: var(--m-font-mono); margin-top: 2px; }
.app-smart-q { display: block; padding: 6px 8px; border-radius: 6px; background: rgba(var(--m-ink), .06); font-size: 12px; overflow-wrap: anywhere; }
.app-tcloud { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; margin: 8px 0 18px; padding: 14px 8px; min-height: 220px; }
.app-tcloud .app-tcloud-t { padding: 0; border: 0; background: none; font-family: Georgia, 'Times New Roman', serif; font-weight: 800; line-height: 1.15; cursor: pointer; color: color-mix(in srgb, rgb(var(--c)) 62%, var(--app-tag-ink)); }
.app-tcloud-t:hover, .app-tcloud-t:focus-visible { text-decoration: underline; }
.app-tyears { display: flex; align-items: flex-end; gap: 4px; min-height: 132px; padding: 8px 0 2px; overflow-x: auto; }
.app-tyear { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; flex: 0 0 22px; }
.app-tyear-bar { display: flex; flex-direction: column-reverse; width: 16px; border-radius: 3px 3px 0 0; overflow: hidden; }
.app-tyear-bar i { display: block; min-height: 2px; background: rgb(var(--c)); }
.app-tyear b { font: 600 10px/1 var(--m-font); color: var(--m-text-3); }
.app-tyear-leg { margin: 8px 0 14px; flex-wrap: wrap; }
.app-tpairs { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.app-tpairs li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.app-tpairs b { margin-left: auto; }
.app-tm-act { white-space: nowrap; }
.app-tm-act .app-tm-in { width: 74px; min-width: 0; }
.app-tm-color .app-tm-in { width: 84px; min-width: 0; }
.app-tm-color { white-space: nowrap; }
.app-tm-table td, .app-tm-table th { padding-left: 6px; padding-right: 6px; }

/* 290: the inbox of the AI tag suggestions */
.app-ib-grp { margin: 10px 0 14px; }
.app-ib-grp > header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 4px; }
.app-ib-all { margin-left: auto; display: inline-flex; gap: 6px; }
.app-ib-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }   /* C0275: several columns on a wide screen */
.app-ib-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--m-line); }
.app-ib-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ib-act { display: inline-flex; gap: 2px; }

/* 292: the command palette (Ctrl+F or "/") and the "everywhere" button in the lists' search fields */
.app-find { display: inline-flex; align-items: center; gap: 8px; flex: 0 1 380px; min-width: 0; height: 30px; padding: 0 8px 0 12px; border: 1px solid var(--m-line); border-radius: 999px;
  background: rgba(var(--m-ink), .04); color: var(--m-text-3); font: inherit; font-size: 13px; cursor: pointer; }
.app-find:hover, .app-find:focus-visible { color: var(--m-text); border-color: var(--m-accent); }
.app-find .m-i { width: 15px; height: 15px; flex: none; }
.app-find-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.app-find-key { flex: none; padding: 1px 6px; border: 1px solid var(--m-line); border-radius: 5px; font: inherit; font-size: 11px; color: var(--m-text-3); }
@media (max-width: 900px) {
  .app-find { flex: none; width: 32px; height: 32px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .app-find-txt, .app-find-key { display: none; }
}
.app-pal { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 12px 0; background: rgba(var(--m-ink), .35); }
.app-pal-box { width: min(660px, 100%); max-height: 76vh; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--m-line); border-radius: 14px;
  background: var(--m-card-solid); box-shadow: var(--m-pop-sh); }
.app-pal-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--m-line); }
.app-pal-bar > .m-i { width: 18px; height: 18px; flex: none; color: var(--m-text-3); }
.app-pal-q { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--m-text); font: inherit; font-size: 16px; }
.app-pal-only { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 10px; border: 1px solid var(--m-accent); border-radius: 999px; background: none; color: var(--m-accent); font: inherit; font-size: 12px; cursor: pointer; }
.app-pal-only .m-i { width: 12px; height: 12px; }
.app-pal-list { flex: 1; overflow: auto; padding: 4px 6px 8px; }
.app-pal-g { margin: 10px 8px 2px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--m-text-3); }
.app-pal-i { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.app-pal-i.is-active { background: rgba(var(--m-ink), .08); }
.app-pal-i .m-i { width: 16px; height: 16px; flex: none; color: var(--m-text-3); }
.app-pal-i .app-flag { flex: none; }
.app-pal-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-pal-l mark { background: color-mix(in srgb, var(--m-accent) 28%, transparent); color: inherit; border-radius: 3px; }
.app-pal-s { flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--m-text-3); }
.app-pal-more { margin: 2px 8px 4px; }
.app-pal-empty { padding: 22px 12px; text-align: center; color: var(--m-text-3); }
.app-pal-hint { padding: 6px 14px; border-top: 1px solid var(--m-line); font-size: 11px; color: var(--m-text-3); }
@media (max-width: 640px) {
  .app-pal { padding: 0; }
  .app-pal-box { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .app-pal-hint { display: none; }
}
.app-find-all { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 22px; padding: 0 8px; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-card-solid);
  color: var(--m-text-3); font: inherit; font-size: 11px; cursor: pointer; }
.app-find-all:hover, .app-find-all:focus-visible { color: var(--m-accent); border-color: var(--m-accent); }
.m-input-wrap:has(> .app-find-all) > .m-input { padding-right: 84px; }
.m-input-wrap > .app-qclear--list { right: 84px; }
.m-input-wrap:has(> .app-qclear--list:not([hidden])) > .m-input { padding-right: 110px; }
/* 303: country comparison */
.app-cmp { padding: 8px 16px 0; }
.app-cmp-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.app-cmp-q { max-width: 240px; }
.app-cmp-sug { position: absolute; top: 100%; left: 0; z-index: 5; margin: 2px 0 0; padding: 4px; list-style: none; min-width: 220px; background: var(--m-card-solid); border: 1px solid var(--m-line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.app-cmp-sug button { display: block; width: 100%; text-align: left; padding: 6px 8px; background: none; border: 0; border-radius: 6px; color: inherit; cursor: pointer; }
.app-cmp-sug button:hover, .app-cmp-sug button:focus-visible { background: rgba(var(--m-ink), .08); }
.app-cmp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.app-cmp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px 2px 8px; border: 1px solid var(--m-line); border-radius: 999px; }
.app-cmp-chip i { width: 10px; height: 10px; border-radius: 50%; }
.app-cmp-x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 4px; }

/* CL4c: the airline's baggage rule, the verify mark (like the estimated one, another colour and icon) and the bag warnings */
.app-sf-bgr { border-top: 1px solid var(--m-line); padding-top: 10px; }
.app-sf-bgr .m-i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.app-sf-bgr .app-sf-tpc.app-muted { opacity: .5; }
.app-sf-bgw { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.app-sf-bgw li { color: var(--m-danger); }
.app-bg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-bottom: 10px; }
.app-bg-row > b { flex-basis: 100%; }
.app-bg-g { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.app-bg-in { width: 56px; }
/* C0287, C0289: city rows in fixed columns - the population lines up, many trip years wrap in their own column */
.app-u-cols li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 8.5em minmax(0, 6.5em); align-items: baseline; gap: 2px 12px; }
.app-u-cols li > .m-grow { grid-column: 2; min-width: 0; }
.app-u-pop { display: flex; flex-direction: column; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-u-yrs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 8px; font-weight: 700; }
.app-u-yrs:empty { display: none; }
.app-u-sort { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }   /* C0298: on its own row, under the card title */
.app-u-sort .m-seg { max-width: 100%; }
.app-u-sort .m-seg button { white-space: nowrap; padding-inline: 8px; font-size: 12px; }   /* C0320: inner margin, gap between the buttons */
.app-u-sort .m-seg { gap: 3px; }
.app-u-sites li[hidden] { display: none; }   /* C0322 */
.app-u-more { margin-top: 8px; }
.app-u-cols li > .m-grow > .app-muted { display: block; overflow: hidden; text-overflow: ellipsis; }   /* C0323: the city name keeps its line, the kind label goes under it */
.app-u-cols li > .m-grow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }   /* the city name never wraps */
@media (max-width: 560px) {
  .app-u-cols li { grid-template-columns: 18px minmax(0, 1fr); }
  .app-u-cols .app-u-pop, .app-u-cols .app-u-yrs { grid-column: 2; align-items: flex-start; text-align: left; justify-content: flex-start; flex-direction: row; gap: 2px 10px; }
}

/* C0234: a pie opens its detail on a click */
[data-pie] .m-mark, .app-sf-pie[data-pie] { cursor: pointer; }
.app-pie-dlg { min-width: min(420px, 80vw); }

/* C0251: own suggestion list under an input (ownCombo), in the theme's colours */
.app-combo { position: relative; display: block; min-width: 0; }
.app-combo > .m-input { width: 100%; }
.app-combo-list li[aria-selected="true"] { font-weight: 600; }
.app-combo .app-combo-list.is-up { top: auto; bottom: calc(100% + 2px); }   /* C0345 */
.app-combo .app-combo-list.is-flow { position: static; margin-top: 2px; }
.app-combo .app-combo-list[hidden] { display: none; }
.app-combo-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 2px); max-height: 260px; overflow: auto; margin: 0; padding: 4px; list-style: none;
  border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-card-solid); color: var(--m-text); box-shadow: var(--m-pop-sh); }
.app-combo-list li { padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.app-combo-list li.is-active, .app-combo-list li:hover { background: rgba(var(--m-ink), .07); }
.app-sf-wtot { margin: -4px 0 12px; color: var(--m-text-2); }
/* C0254: a capacity worked out from the size, and the size search next to the capacity field */
.app-calc { font-style: italic; text-decoration: underline dotted; text-underline-offset: 3px; }
.app-pl-srch { align-self: end; }
/* C0253: a verify mark opens a Google AI search */
.app-aichk { text-decoration: none; cursor: pointer; }
.app-aichk:hover, .app-aichk:focus-visible { text-decoration: underline; }
/* C0269: the missing-item picker – search, category chips, the catalogue by category as toggles */
.app-ms-cats { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.app-ms-cat[aria-pressed="true"] { background: var(--m-accent-wash); color: var(--m-accent, var(--m-text)); font-weight: 700; }
.app-ms-list { max-height: min(52vh, 460px); overflow: auto; border: 1px solid var(--m-line); border-radius: 10px; padding: 8px 10px; }
.app-ms-g + .app-ms-g { margin-top: 10px; }
.app-ms-gh { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.app-ms-its { display: flex; flex-wrap: wrap; gap: 4px; }
.app-ms-it.is-on { border-color: var(--m-accent, currentColor); font-weight: 700; }
.app-ms-it[disabled] { opacity: .5; text-decoration: line-through; }
.app-ms-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--m-accent, currentColor); margin-left: 4px; }
.app-ms-new { margin-bottom: 8px; }
.app-ms-sel { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 8px; min-height: 26px; }
/* C0271, C0273: the missing and unused lists side by side on a wide screen */
.app-sf-afts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

/* UM Lite L12: Settings > Account / Users, the sign-out dialog */
.app-um-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.app-um-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 16px 0; }
.app-um-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 16px 0; }
.app-um-tile { padding: 12px; border: 1px solid var(--m-line); border-radius: 8px; background: var(--m-card-solid); }
.app-um-tile b { display: block; font-size: 1.6rem; }
.app-um-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.app-um-list li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.app-um-dlg { position: fixed; inset: auto 16px 16px; max-width: 460px; margin-inline: auto; padding: 16px; z-index: 2200; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-card-solid); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); }
/* BB3: Budapest 3D (#home/bp) */
.app-bp3d-open, .app-bp3d-back { margin: 0 0 12px; }
.app-h-3drow { display: flex; flex-wrap: wrap; column-gap: 8px; }
.app-h-3drow > div { display: contents; }
/* C0341, C0344: the 3D cities of the country window side by side, the open one under them with its full-screen button */
.app-cc3d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; align-items: start; }
.app-cc3d-city .app-ov-card { margin-bottom: 0; }
.app-cc3d-view { position: relative; margin-top: 12px; }
.app-cc3d-view[hidden] { display: none; }
.app-cc3d-full { position: absolute; top: 10px; right: 10px; z-index: 5; }
.app-cc3d-view.is-full { position: fixed; inset: 0; z-index: 1000; margin: 0; background: var(--m-bg-solid); }
.app-cc3d-view.is-full .app-bp3d { height: 100%; border: 0; border-radius: 0; }
.app-bp3d-back { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.app-bp3d-cities { display: flex; flex-wrap: wrap; gap: 4px; }
.app-bp3d { position: relative; height: max(420px, calc(100dvh - 220px)); border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; background: var(--m-bg-solid); }
.app-bp3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.app-bp3d-canvas:active { cursor: grabbing; }
.app-bp3d-legend { position: absolute; left: 10px; top: 10px; width: min(300px, calc(100% - 20px)); max-height: calc(100% - 52px); overflow-y: auto; overscroll-behavior: contain; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 6px; }
.app-bp3d-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-bp3d-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--m-series-1); }
/* BB5: unvisited buildings are grey, the visited ones have the colour of their activity group (both themes) */
:root { --app-bpg-home: #eb6834; --app-bpg-family: #7864dc; --app-bpg-friend: #0096aa; --app-bpg-pal: #d55181; --app-bpg-mate: #b33fc4; --app-bpg-work: #1f6fe0; --app-bpg-eat: #eda100; --app-bpg-fun: #1baf7a; --app-bpg-errand: #8d5a3c; --app-bpg-none: #78901e; }
/* BB22: the playgrounds, pitches and parks of the 3D viewer (patch, icon, legend) */
:root { --app-play-playground: #f08c00; --app-play-pitch: #0ca678; --app-play-skate: #ae3ec9; --app-play-fitness: #e8590c; --app-play-track: #c2255c; --app-play-park: #5c940d; }
.app-bp3d-play .app-bp3d-chips { margin: 6px 0; }
.app-bp3d-play .app-bp3d-tag .app-bp3d-sw { margin-right: 4px; }
.app-bp3d-sw--rec { background: color-mix(in srgb, var(--m-text) 36%, var(--m-panel)); }
.app-bp3d-sw--est { background: color-mix(in srgb, var(--m-text) 17%, var(--m-panel)); }
.app-bp3d-sw--sel { background: var(--m-danger); }
.app-bp3d-sw--unsure { background: repeating-linear-gradient(45deg, var(--m-series-1) 0 2px, color-mix(in srgb, var(--m-series-1) 35%, #fff) 2px 4px); }
.app-bp3d-help { margin: 0; color: var(--m-text-3); }
.app-bp3d-legend .m-input, .app-bp3d-legend .m-select { width: 100%; min-width: 0; }
.app-bp3d-fold summary { cursor: pointer; font-weight: 650; padding: 2px 0; }
.app-bp3d-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 4px 0 8px; }
.app-bp3d-filters:empty { display: none; }
.app-bp3d-yrow { display: flex; align-items: center; gap: 8px; }
.app-bp3d-range { flex: 1 1 auto; min-width: 0; accent-color: var(--m-series-1); }
.app-bp3d-year { min-width: 4ch; font-variant-numeric: tabular-nums; }
.app-bp3d-yl { min-width: 4.5em; color: var(--m-text-3); }
.app-bp3d-row { display: flex; align-items: center; gap: 6px; }
.app-bp3d-row > .m-select { flex: 1 1 auto; }
.app-bp3d-legend .app-bp3d-row > .m-btn { flex: 0 0 auto; }
.app-bp3d-cross { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.app-bp3d-cross .app-bp3d-dot { fill: currentColor; stroke: none; }
.app-bp3d-phead { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: -10px; z-index: 2; margin: -10px -10px 0; padding: 8px 10px 4px; background: var(--m-card-solid, var(--m-bg-solid)); cursor: move; touch-action: none; user-select: none; }
.app-bp3d-grip { color: var(--m-text-3); font-size: 18px; line-height: 1; }
.app-bp3d-phead .m-i { width: 16px; height: 16px; }
.app-bp3d-legend { transition: opacity var(--app-dur-2) var(--app-ease-out); }
.app-bp3d-legend.is-dragging { opacity: .55; }
.app-bp3d-fhead { position: relative; min-width: 0; }
.app-bp3d-fhead > .app-bp3d-fold > summary { padding-right: 34px; }
.app-bp3d-legend .app-bp3d-clear { position: absolute; right: 0; top: 0; height: 26px; min-height: 0; width: 26px; padding: 0; }
.app-bp3d-legend .app-bp3d-clear[hidden] { display: none; }
.app-bp3d-actfilter { margin-top: 0; }
.app-set-bphome { max-width: 420px; }
.app-set-bphome .m-input { width: 100%; }
.app-bp3d-combo { position: relative; min-width: 0; }
.app-bp3d-combo .app-bp3d-hits { max-height: 180px; border: 1px solid var(--m-line); border-radius: 6px; margin-top: 2px; }
.app-bp3d-combo .app-bp3d-hits:empty { border: 0; margin: 0; }
.app-bp3d-win { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.app-bp3d-winbar { display: flex; flex-wrap: wrap; gap: 8px; }
.app-bp3d-winbar .m-input { flex: 1 1 200px; min-width: 0; }
.app-bp3d-winbar .m-select { flex: 0 1 auto; width: auto; }
.app-bp3d-win .app-bp3d-hits { max-height: none; overflow: visible; }
@media (max-width: 640px) { .app-dlg-full { padding: 0; } .app-dlg-full .m-modal-box { transform: none !important; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; } }
.app-bp3d-hits { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.app-bp3d-hits:empty { display: none; }
.app-bp3d-hit { display: block; width: 100%; padding: 4px 6px; border: 0; border-radius: 6px; background: none; color: var(--m-text); font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.app-bp3d-hit > span { display: block; }
.app-bp3d-hit:hover, .app-bp3d-hit:focus-visible { background: color-mix(in srgb, var(--m-text) 10%, transparent); }
.app-bp3d-sub { color: var(--m-text-3); }
.app-bph-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; padding: 0; }
.app-bph-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--m-line); border-radius: 999px; color: var(--m-text); text-decoration: none; font-size: 13px; }
.app-bph-chip .app-bp3d-sw { margin: 0; }
a.app-bph-chip:hover, a.app-bph-chip:focus-visible { border-color: var(--m-series-1); }
.app-bp3d-legend .m-btn { justify-self: start; }
.app-bp3d-card { position: absolute; right: 10px; top: 10px; width: min(400px, calc(100% - 20px)); max-height: calc(100% - 40px); overflow-y: auto; overscroll-behavior: contain; }
.app-bp3d-card[hidden] { display: none; }
.app-bp3d-card { transition: opacity var(--app-dur-2) var(--app-ease-out); }
.app-bp3d-card.is-dragging { opacity: .55; }
.app-bp3d-cbody { display: grid; gap: 6px; padding: 12px; }
.app-bp3d-chead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 1; margin: -12px -12px 0; padding: 10px 12px 6px; background: var(--m-card-solid, var(--m-bg-solid)); cursor: move; touch-action: none; user-select: none; }
.app-bp3d-dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; }
.app-bp3d-dl dt { color: var(--m-text-3); }
.app-bp3d-dl dd { margin: 0; overflow-wrap: anywhere; }
.app-bp3d-est { color: var(--m-warn-text); }
.app-bp3d-est .m-i { width: 12px; height: 12px; vertical-align: -1px; }
.app-bp3d-src { margin: 0; color: var(--m-text-3); }
.app-bp3d-height { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; min-width: 0; }
.app-bp3d-height > .m-btn { max-width: 100%; height: auto; white-space: normal; text-align: left; }
.app-bp3d-height > .app-bp3d-form { justify-self: stretch; }
/* BB4: "I was here" */
.app-bp3d-visits, .app-bp3d-form { display: grid; gap: 8px; min-width: 0; }
.app-bp3d-visits { border-top: 1px solid var(--m-line); padding-top: 8px; }
.app-bp3d-vh { margin: 0; font-size: 1em; }
.app-bp3d-vlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-wrap: anywhere; }
.app-bp3d-vtop, .app-bp3d-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-bp3d-actions { justify-content: flex-start; flex-wrap: wrap; }
.app-bp3d-visits > .m-btn { justify-self: start; }
.app-bp3d-form .m-field { margin: 0; min-width: 0; }
.app-bp3d-form .m-input, .app-bp3d-form .m-select { width: 100%; min-width: 0; }
.app-bp3d-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: end; }
.app-bp3d-hint { margin: 0; }
.app-bp3d-check { display: flex; align-items: center; gap: 6px; }
.app-bp3d-unsure { display: grid; gap: 4px; margin-top: 4px; }
.app-bp3d-move-here { display: grid; gap: 6px; padding: 8px; border: 1px dashed var(--m-series-1); border-radius: 6px; }
.app-bp3d-move { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 20px); padding: 8px 12px; }
.app-bp3d-move[hidden] { display: none; }
.app-bp3d-acts { border: 0; margin: 0; padding: 0; min-width: 0; }
.app-bp3d-acts legend { padding: 0 0 4px; }
.app-bp3d-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.app-bp3d-chips:empty { display: none; }
/* chips in the look of the tags (.app-tag): pale until chosen */
.app-bp3d-tag { --c: var(--app-tag-10); display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 9px; box-sizing: border-box; border-radius: 999px; font: 650 12px/1.2 var(--m-font);
  color: color-mix(in srgb, rgb(var(--c)) 62%, var(--app-tag-ink)); background: rgba(var(--c), .15); border: 1px solid rgba(var(--c), .28); }
.app-bp3d-tag .m-i { width: 13px; height: 13px; flex: none; }
button.app-bp3d-tag { cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
button.app-bp3d-tag[aria-pressed="false"] { color: var(--m-text-2); background: transparent; border-color: var(--m-line); }
button.app-bp3d-tag[aria-pressed="false"] .m-i { color: rgb(var(--c)); }
button.app-bp3d-tag[aria-pressed="false"]:hover { background: rgba(var(--c), .1); border-color: rgba(var(--c), .5); }
button.app-bp3d-tag[aria-pressed="true"] { background: rgba(var(--c), .24); border-color: rgb(var(--c)); }
button.app-bp3d-tag:active { transform: scale(.96); }
.app-bp3d-others { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.app-bp3d-others .app-bp3d-combo { flex: 1 1 160px; }
.app-bp3d-newp { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px dashed var(--m-line); background: transparent; color: var(--m-text-2);
  font: 650 12px/1 var(--m-font); cursor: pointer; transition: color .2s, background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.app-bp3d-newp .m-i { width: 14px; height: 14px; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.app-bp3d-newp:hover, .app-bp3d-newp:focus-visible { color: var(--m-text); border-style: solid; border-color: var(--m-series-1); background: rgba(var(--app-tag-1), .1); transform: translateY(-1px); box-shadow: 0 3px 10px rgba(var(--app-tag-1), .25); }
.app-bp3d-newp:hover .m-i, .app-bp3d-newp:focus-visible .m-i { transform: rotate(90deg) scale(1.2); }
.app-bp3d-newp:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .app-bp3d-newp, .app-bp3d-newp .m-i, button.app-bp3d-tag { transition: none; } .app-bp3d-newp:hover, .app-bp3d-newp:hover .m-i { transform: none; } }
.app-bp3d-attr { position: absolute; right: 8px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: var(--m-bg-solid); color: var(--m-text-3); }
.app-bp3d-attr a { color: inherit; }
.app-bp3d-status { position: absolute; left: 10px; bottom: 32px; max-width: calc(100% - 20px); padding: 2px 8px; border-radius: 4px; background: var(--m-bg-solid); color: var(--m-text-2); }
.app-bp3d-status:empty { display: none; }
/* BB5n: the width handle on the edge of the panel and of the card */
/* each window stacks on its own, so the sticky head of the panel stays under the card */
.app-bp3d-legend, .app-bp3d-card, .app-bp3d-size { z-index: 1; }
.app-bp3d-size { position: absolute; width: 12px; cursor: ew-resize; touch-action: none; }
.app-bp3d-size[hidden] { display: none; }
.app-bp3d-size::after { content: ''; position: absolute; left: 4px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px; background: var(--m-line-strong); }
.app-bp3d-size:hover::after, .app-bp3d-size:focus-visible::after, .app-bp3d-size.is-active::after { background: var(--m-series-1); }
.app-bp3d-card.is-wide .app-bp3d-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.app-bp3d-card.is-wide .app-bp3d-form > :is(.app-bp3d-check, .app-bp3d-acts, .m-field-error, .app-bp3d-actions, [hidden] + .m-field) { grid-column: 1 / -1; }
.app-bp3d-card.is-wide .app-bp3d-form > .app-bp3d-hint { padding-bottom: 8px; }
/* BB8: the Street View link at the clicked point */
.app-bp3d-sv { position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; white-space: nowrap; }
.app-bp3d-sv[hidden] { display: none; }
.app-bp3d-sv a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 640px) {
  .app-bp3d-help { display: none; }
  .app-bp3d-card { top: auto; bottom: 30px; max-height: 55%; }
  .app-bp3d-chead, .app-bp3d-phead { cursor: auto; touch-action: auto; }
  .app-bp3d-grip { visibility: hidden; }
}


/* 348a: the flight player of the detailed world map (glmap.js), bottom left over the map */
.bmap--gl .app-player { display: flex; align-items: center; gap: 8px; padding: 4px 8px; margin: 0 0 8px 8px; background: var(--m-card-solid); color: var(--m-text); border: 1px solid var(--m-line-strong); border-radius: 8px; font-size: 12px; pointer-events: auto; }
.bmap--gl .app-player[hidden] { display: none; }
.app-player button { font: inherit; color: inherit; background: transparent; border: 0; cursor: pointer; border-radius: 4px; }
.app-player button:hover { background: rgba(var(--m-ink), .08); }
.app-player button:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 1px; }
.app-player-play { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; }
.app-player-speed { display: inline-flex; border: 1px solid var(--m-line); border-radius: 6px; overflow: hidden; }
.app-player-speed button { padding: 2px 7px; border-radius: 0; color: var(--m-text-2); }
.app-player-speed button[aria-pressed="true"] { background: rgba(var(--m-ink), .14); color: var(--m-text); font-weight: 600; }
.app-player-follow { display: inline-flex; align-items: center; gap: 4px; color: var(--m-text-2); cursor: pointer; white-space: nowrap; }
.app-player-year { min-width: 2.6em; font-variant-numeric: tabular-nums; font-weight: 600; }
.app-player-bar { width: 56px; height: 3px; background: rgba(var(--m-ink), .12); border-radius: 2px; overflow: hidden; }
.app-player-bar > i { display: block; height: 100%; width: 0; background: #3d8bfd; }
@media (max-width: 560px) { .app-player-bar { display: none; } .bmap--gl .app-player { gap: 5px; padding: 3px 6px; } }
/* 350d: the offline download of the home map */
.app-h-off { margin-top: 10px; }
.app-h-offrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-h-off p { margin: 6px 0 0; }

/* C0318: the city map of a country */
.app-cities > summary { cursor: pointer; user-select: none; }
.app-cities > summary > .app-country-sec { display: inline-flex; margin: 0; }
.app-cities-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 8px 0; }
.app-cities-canvas { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; }
.app-cities-big .app-cities-canvas { aspect-ratio: auto; height: min(60vh, 620px); }
.app-cities-canvas .bmap-svg { width: 100%; height: 100%; }
.app-cities-info:not(:empty) { margin-top: 8px; padding: 8px 12px; border: 1px solid var(--m-line); border-radius: 10px; }
.app-cities-info p { margin: 2px 0; }
.app-cities-info .app-rank-go { margin-left: 8px; }
.app-cities-list { max-height: 30vh; overflow: auto; columns: 3 220px; column-gap: 20px; }
.app-cities-list li { break-inside: avoid; }
.app-cities-key i, .app-city-row i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(var(--m-ink), .45); margin: 0 5px 0 8px; }
.app-city-row i { margin-left: 0; }
.app-cities-key i.is-seen, .app-city-row i.is-seen { background: #2fbf71; border-color: #2fbf71; }
.app-cities-key i.is-cap, .app-city-row i.is-cap { border: 2px solid #c99a2e; }
.app-cities-key i.is-own, .app-city-row i.is-own { width: 7px; height: 7px; background: var(--m-accent); border-color: var(--m-accent); }
.app-mk.app-mk-cap circle { stroke: #c99a2e; stroke-width: 2.4; }
.app-mk.app-mk-own use { display: none; }
.app-mk.app-mk-own circle { fill: var(--m-accent); stroke: var(--m-card-solid); r: 5px; }
.app-gl-mk.app-mk-own circle { r: 5px; }
.app-mk.app-mk-own.is-hot circle { stroke: #fff; stroke-width: 2.4; }
.app-cities .app-mk.is-seen circle { fill: #2fbf71; stroke: var(--m-card-solid); }
.app-cities .app-mk.app-mk-cap circle { stroke: #c99a2e; stroke-width: 2.4; }
.app-cities .app-mk.app-mk-own circle { fill: var(--m-accent); stroke: var(--m-card-solid); stroke-width: 1; }
.app-cities .app-mk.is-hot circle { fill: var(--m-accent); stroke: #fff; stroke-width: 2.4; }
.app-city-row { background: none; border: 0; padding: 1px 0; font: inherit; cursor: pointer; text-align: left; }

/* 356c: the flight window – a boarding card (aircraft, route, date / distance / CO2) and its sections */
.app-fv { display: grid; gap: 16px; }
.app-fv > *, .app-fv-pass > *, .app-fv-sec > *, .app-fv-art { min-width: 0; }
.app-fv-pass { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 0.9fr); gap: 18px; align-items: center;
  padding: 16px 18px; border-radius: 16px; background: var(--m-well); border: 1px dashed var(--m-line-strong); }
.app-fv-airline .app-fv-pass { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.app-fv-art .app-plane-art { display: block; width: 100%; height: auto; max-height: 150px; }
.app-fv-air { margin: 6px 0 0; font-size: 17px; font-weight: 800; color: var(--m-text); }
.app-fv-air button { background: none; border: 0; padding: 0; font: inherit; color: var(--m-accent); cursor: pointer; text-align: left; }
.app-fv-air button:hover { text-decoration: underline; }
.app-fv-type { margin: 2px 0 0; color: var(--m-text-2); }
.app-fv-guess { margin: 4px 0 0; color: var(--m-text-2); }
.app-fv-codes { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; color: var(--m-text-2); }
.app-fv-codes span { display: inline-flex; align-items: center; gap: 4px; }
.app-fv-reg { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0.04em; }
.app-fv-mid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.app-fv-end { display: grid; gap: 2px; min-width: 0; }
.app-fv-to { text-align: right; justify-items: end; }
.app-fv-iata { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; color: var(--m-text); }
.app-fv-city { font-weight: 700; color: var(--m-text); overflow-wrap: anywhere; }
.app-fv-cc { display: inline-flex; align-items: center; gap: 4px; color: var(--m-text-2); }
.app-fv-line { position: relative; display: flex; align-items: center; gap: 4px; color: var(--m-accent); min-width: 90px; padding-bottom: 18px; }
.app-fv-dash { flex: 1; border-top: 2px dotted currentColor; opacity: 0.6; min-width: 16px; }
.app-fv-dur { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; color: var(--m-text-2); white-space: nowrap; }
.app-fv-r .app-fv-kv { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.app-fv-sec { display: grid; gap: 10px; }
.app-fv-sm { overflow-x: auto; }   /* 356e: the seat map */
.app-fv-seatmap { display: block; width: 100%; min-width: 320px; height: auto; max-height: 150px; }
.app-fv-sm-body { fill: var(--m-well); stroke: var(--m-line-strong); stroke-width: 0.8; }
.app-fv-sm-wing { fill: var(--m-accent); opacity: 0.12; }
.app-fv-sm-seat { fill: var(--m-card-solid); stroke: var(--m-text-3); stroke-width: 0.5; }
.app-fv-sm-seat.is-me { fill: var(--m-accent); stroke: var(--m-accent); }
.app-fv-sm-num { font-size: 5px; fill: var(--m-text-3); }
.app-fv-sm-num.is-me { fill: var(--m-accent); font-weight: 700; }
.app-fv-h { display: flex; align-items: center; gap: 8px; margin: 0; }
.app-fv-sub { margin: 4px 0 0; color: var(--m-text-2); font-weight: 700; }
.app-fv-top .app-plane-art { display: block; width: 100%; height: auto; max-height: 200px; margin: 4px auto 0; }
.app-fv-plane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 20px; align-items: start; }   /* 356j: top view + data sheet */
.app-fv-plane.has-both { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.app-fv-plane.has-both .app-fv-top .app-plane-art { max-height: 420px; }
.app-fv-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px 18px; align-content: start; }
.app-fv-shg dl { margin: 4px 0 0; }
.app-fv-shg dl > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--m-line); font-size: 13px; }
.app-fv-shg dt { color: var(--m-text-2); }
.app-fv-shg dd { margin: 0; text-align: right; color: var(--m-text); font-weight: 600; overflow-wrap: anywhere; }
.app-fv-shg dd .app-muted { font-weight: 400; }
.app-fv-src { margin-left: 3px; font-size: 9px; font-weight: 700; color: var(--m-text-3); cursor: help; }
.app-fv-shnote { grid-column: 1 / -1; margin: 0; }
.app-fv-over { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.app-fv-over span { display: inline-flex; align-items: center; gap: 4px; }
.app-fv-gone { color: var(--m-danger); }
/* 356h: a link-styled button never shows the browser's grey button face (zero specificity: app classes still win) */
:where(button.m-link) { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--m-accent); cursor: pointer; }
.app-fv-go { text-align: left; }
.app-fv-airline .app-fv-go { display: flex; width: 100%; align-items: center; gap: 10px; padding: 4px 8px; border-radius: 8px; color: var(--m-text); }
.app-fv-airline .app-fv-go:hover { background: var(--m-accent-wash); text-decoration: none; }
.app-fv-airline .app-fv-go:hover .m-grow { color: var(--m-accent); }
/* the small side view of the leg's aircraft in the leg rows (356h) */
.app-fv-mini { flex: none; display: inline-flex; align-self: center; width: 54px; }
.app-fv-mini svg { display: block; width: 100%; height: auto; }
/* 356k: airlines and aircraft on the Overview */
.app-fl-gallery { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.app-fl-tile { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--m-line); border-radius: 10px; background: rgba(var(--m-ink), .02); min-width: 0; }
.app-fl-tile.is-est .app-fl-art { opacity: .7; }
.app-fl-art svg { display: block; width: 100%; height: auto; }
.app-fl-name { font-size: 13px; font-weight: 600; color: var(--m-text); overflow: hidden; text-overflow: ellipsis; }
.app-fl-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 24px; }
.app-fl-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; align-items: start; margin-top: 8px; }
.app-fl-earthbox { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 180px; }
.app-fl-earth { width: 140px; height: 140px; }
.app-fl-globe { fill: rgba(var(--m-ink), .05); stroke: var(--m-text-3); stroke-width: 1; }
.app-fl-mer { fill: none; stroke: var(--m-line); stroke-width: 1; }
.app-fl-lap { fill: none; stroke: var(--m-accent); stroke-width: 2; opacity: .55; }
.app-fl-rest { fill: none; stroke: var(--m-accent); stroke-width: 3; stroke-linecap: round; }
.app-fl-big { margin: 0; font-size: 22px; font-weight: 700; color: var(--m-text); }
@media (max-width: 560px) { .app-fl-facts { grid-template-columns: 1fr; } .app-fl-earthbox { max-width: none; } .app-fl-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.app-fv-map .app-mini-map { height: 260px; }
@media (max-width: 760px) {
  .app-fv-pass, .app-fv-airline .app-fv-pass { grid-template-columns: minmax(0, 1fr); }
  .app-fv-r .app-fv-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .app-fv-plane.has-both { grid-template-columns: minmax(0, 1fr); }
  .app-fv-iata { font-size: 28px; }
}
/* 355y: the weather card of two capitals (weather-card.js); .app-cd-h / .app-cd-t give the sides' colours */
.app-wx { margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--m-line); border-radius: var(--m-radius, 10px); background: var(--m-card-solid, var(--m-card)); }
.app-wx-title { margin: 0 0 8px; }
.app-wx-sides { display: grid; gap: 12px; }
.app-wx-sides--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-wx-side { border-left: 4px solid var(--c, var(--m-line)); padding-left: 10px; min-width: 0; }
.app-wx-side--stale { opacity: .55; }
.app-wx-city { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.app-wx-city .app-flag { width: 18px; height: 18px; }
.app-wx-now { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.app-wx-ico { width: 34px; height: 34px; color: var(--c, var(--m-text)); flex: none; }
.app-wx-temp { font-size: 1.6em; font-weight: 600; font-variant-numeric: tabular-nums; }
.app-wx-mm { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-variant-numeric: tabular-nums; }
.app-wx-d { display: inline-block; padding: 0 6px; border-radius: 999px; font-size: .8em; font-weight: 600; color: var(--m-text);
  background: color-mix(in srgb, var(--c, var(--m-line)) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--m-line)) 60%, transparent); }
.app-wx-time, .app-wx-stale, .app-wx-src { margin: 4px 0 0; }
.app-wx--off .app-wx-sides { opacity: .7; }
.app-wx-sides--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-wx-side.app-cd-u { --c: var(--m-series-3); }
@media (max-width: 700px) { .app-wx-sides--three { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .app-wx-sides--two { grid-template-columns: 1fr; } }
@media print { .app-wx { break-inside: avoid; } }

/* RT2: the map editor of a route plan – a window over the whole screen, the point list beside the map (a sheet under it on a phone) */
body.app-re-open { overflow: hidden; }
.app-re { position: fixed; inset: 0; z-index: 1200; display: flex; flex-direction: column; background: var(--m-card-solid); color: var(--m-text); }
.app-re-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--m-line); }
.app-re-head h2 { margin: 0; flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-re-note { margin: 0; padding: 4px 12px; border-bottom: 1px solid var(--m-line); }
.app-re-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; grid-template-rows: minmax(0, 1fr); }
.app-re-mapwrap { position: relative; min-width: 0; min-height: 0; }
.app-re .app-re-map { position: absolute; inset: 0; height: 100%; width: 100%; max-height: none; aspect-ratio: auto; }
.app-re-nomap { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 2; padding: 6px 8px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 8px; }
.app-re-add { position: absolute; left: 8px; right: 8px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; max-width: 460px; margin: 0 auto; padding: 8px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.app-re-add[hidden] { display: none; }
.app-re-draw { position: absolute; left: 8px; right: 52px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 520px; margin: 0 auto; padding: 8px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); }
.app-re-draw[hidden] { display: none; }
.app-re-draw .m-select { flex: 1 1 180px; min-width: 0; }
.app-re-draw p { flex-basis: 100%; margin: 0; }
.app-re-days { position: absolute; left: 8px; right: 52px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 560px; margin: 0 auto; padding: 8px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.app-re-days[hidden] { display: none; }
.app-re-days .m-select { flex: 1 1 140px; min-width: 0; }
.app-re-dayn { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.app-re-dayn .m-input { width: 68px; }
.app-re-daydate { width: auto; flex: 0 1 150px; min-width: 0; }
.m-date:has(> .m-date-src.app-re-daydate) { flex: 0 1 150px; min-width: 0; }   /* VT2: the my-gui date field wraps the input */
.app-re-days p { flex-basis: 100%; margin: 0; }
.app-re-head [data-re="days"] .m-i { width: 16px; height: 16px; margin-right: 4px; }
.app-re-dayh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 6px; padding: 6px 8px; border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-radius: 4px; }
.app-re-pt.is-pick { box-shadow: inset 4px 0 0 var(--m-accent); background: color-mix(in srgb, var(--m-accent) 12%, transparent); }
.app-re .app-re-mk.is-pick { outline: 3px dashed var(--m-accent); outline-offset: 2px; }
.app-re-exc { position: absolute; left: 8px; right: 52px; top: 8px; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; max-width: 560px; margin: 0 auto; padding: 8px; background: var(--m-card-solid); border: 1px solid #d97706; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.app-re-exc[hidden] { display: none; }
.app-re-exct { flex-basis: 100%; }
.app-re-exc .m-select { width: auto; flex: 0 1 130px; }
.app-re-exc p { flex-basis: 100%; margin: 0; }
.app-re-exc .m-btn .m-i { width: 15px; height: 15px; margin-right: 4px; }
.app-re-leg .m-select { width: auto; flex: 0 1 140px; min-width: 0; }
.app-re-leg .m-btn .m-i { width: 14px; height: 14px; margin-right: 2px; }
.app-re-temp { font-style: normal; font-size: 11px; background: color-mix(in srgb, #d97706 22%, transparent); }
.app-re-temp[hidden] { display: none; }
.app-re-sideh { display: flex; align-items: center; gap: 4px 8px; margin: 4px 0 0 18px; padding: 4px 6px; border-left: 4px solid #d97706; border-radius: 4px; background: color-mix(in srgb, #d97706 12%, transparent); }
.app-re-sideh > span { flex: 1; min-width: 0; }
.app-re-sideh.is-sel { box-shadow: 0 0 0 2px #d97706; }
.app-re-pt.is-side { margin-left: 18px; }
.app-re-pt.is-side.is-stop .app-re-n, .app-re-pt.is-side .app-re-n { width: 22px; background: none; color: #d97706; font-size: 14px; }
.app-re .app-re-mk.is-side.is-stop { width: 20px; height: 20px; background: #d97706; box-shadow: 0 0 0 3px rgba(217, 119, 6, .3); }
.app-re.is-drawing .app-re-mk { pointer-events: none; opacity: .75; }
.app-re.is-drawing .app-re-list { pointer-events: none; opacity: .55; }
.app-re.is-drawing .app-re-map canvas { touch-action: none; }
.app-re-head [data-re="draw"] .m-i { width: 16px; height: 16px; margin-right: 4px; }
.app-re-add .m-input { flex: 1 1 160px; min-width: 0; }
.app-re-side { display: flex; flex-direction: column; min-height: 0; min-width: 0; border-left: 1px solid var(--m-line); }
.app-re-side p { margin: 6px 10px 0; }
.app-re-grab { display: none; }
.app-re-list { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 6px 0 0; padding: 0 8px 12px; }
.app-re-pt { display: grid; grid-template-columns: auto 22px minmax(0, 1fr); align-items: center; gap: 4px 6px; padding: 6px 4px; border-bottom: 1px solid var(--m-line); }
.app-re-pt.is-sel { background: color-mix(in srgb, var(--m-accent) 12%, transparent); }
.app-re-pt.is-over { box-shadow: inset 0 2px 0 var(--m-accent); }
.app-re-pt.is-via .app-re-name { color: var(--m-text-2); }
.app-re-grip { cursor: grab; color: var(--m-text-3); }
.app-re-n { font-weight: 800; text-align: center; }
.app-re-pt.is-stop .app-re-n { width: 22px; height: 22px; line-height: 22px; border-radius: 50%; background: #2563eb; color: #ffffff; font-size: 11px; }
.app-re-kind .m-i { width: 15px; height: 15px; margin-right: 4px; }
.app-re-auto { margin: 0; white-space: nowrap; }
.app-re-row { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.app-re-row .app-re-date { width: auto; flex: 1 1 120px; min-width: 0; }
.app-re-row .m-date:has(> .m-date-src.app-re-date) { flex: 1 1 120px; min-width: 0; }
.app-re-kind { min-width: 0; padding-left: 8px; padding-right: 8px; }
.app-re .app-re-mk { width: 30px; height: 30px; padding: 0; border: 3px solid #ffffff; border-radius: 50%; background: #2563eb; color: #ffffff; font: 800 12px var(--m-font); cursor: pointer; box-shadow: 0 0 0 4px rgba(37, 99, 235, .35), 0 2px 8px rgba(0, 0, 0, .5); }
.app-re .app-re-mk.is-via { width: 12px; height: 12px; border: 2px solid #16181d; background: #ffffff; box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.app-re .app-re-mk.is-sel { outline: 3px solid var(--m-accent); }
@media (max-width: 760px) {
  .app-re-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .app-re-side { border-left: 0; border-top: 1px solid var(--m-line); height: 46vh; height: 46dvh; }
  .app-re-grab { display: block; flex: none; width: 100%; padding: 10px; border: 0; background: none; color: var(--m-text); font: 700 13px var(--m-font); cursor: pointer; }
  .app-re.is-shut .app-re-side { height: auto; }
  .app-re.is-shut .app-re-side > :not(.app-re-grab) { display: none; }
  .app-re-help { display: none; }
}
/* RT7: the route overview of the ground trips */
.app-rb { padding: 6px; border-radius: 8px; }
.app-rb-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 6px; }
.app-rb-prog { flex: 1 1 140px; max-width: 320px; }
.app-rb-prog[hidden] { display: none; }
.app-rb-scroll { max-height: 55vh; overflow: auto; margin-top: 8px; }
.app-rb-scroll tbody tr[data-rbtrip] { cursor: pointer; }
.app-rb-st.is-none { opacity: .65; } .app-rb-st.is-machine { border: 1px dashed currentColor; } .app-rb-st.is-manual { border: 1px solid currentColor; } .app-rb-st.is-recorded { border: 2px solid currentColor; font-weight: 700; }
@media (max-width: 600px) { .app-rb-scroll th:nth-child(3), .app-rb-scroll td:nth-child(3) { display: none; } }
/* 360a: the map mode panel, left of its button in the map controls */
.app-mode-ctl { position: relative; }
.bmap--gl .app-mode-ctl > .maplibregl-ctrl-group { margin: 0; float: none; }
.app-mode-panel { position: absolute; right: calc(100% + 8px); top: 0; z-index: 5; width: max-content; max-width: min(260px, 60vw); overflow: auto; padding: 10px 12px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 8px; color: var(--m-text); font-size: 13px; }
.app-mode-panel[hidden] { display: none; }
.app-mode-action { display: block; width: 100%; margin-top: 8px; }
.app-mode-set { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.app-mode-set + .app-mode-set { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--m-line); }
.app-mode-set legend { padding: 0 0 4px; float: left; width: 100%; color: var(--m-text-2); font-size: 12px; }
.app-map-stage:has(.app-mode-panel:not([hidden])) .app-map-key { visibility: hidden; }   /* on a phone the legend button would cover the panel */
/* 361: the open day-colour key would cover the mode legend, so that one moves aside, left of the map controls */
.app-map-stage:has(.app-map-key-btn[aria-expanded="true"]) .app-mode-legend { left: auto; right: 56px; }
@media (max-width: 840px) { .app-map-stage:has(.app-map-key-btn[aria-expanded="true"]) .app-mode-legend { visibility: hidden; } }   /* no room for the two side by side */
/* 360b: the legend of the map modes, bottom left of the map (the credits are on the right) */
.app-mode-legend { position: absolute; left: 8px; bottom: 26px; z-index: 2; width: min(220px, calc(100% - 64px)); max-height: calc(100% - 80px); overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 10px; background: color-mix(in srgb, var(--m-card-solid) 94%, transparent); border: 1px solid var(--m-line-strong); border-radius: 8px; color: var(--m-text); font-size: 12px; text-align: left; }
.app-leg { display: flex; flex-direction: column; gap: 4px; }
/* 360g: on a small map only the button shows until it is pressed */
.app-mode-legend-btn { display: none; align-self: flex-start; flex: none; padding: 4px 10px; background: var(--m-card-solid); border: 1px solid var(--m-line-strong); border-radius: 6px; color: var(--m-text); font: inherit; font-weight: 700; cursor: pointer; }
.app-mode-legend.is-small .app-mode-legend-btn { display: block; }
.app-mode-legend.is-small:not(.is-open) { width: auto; padding: 0; background: none; border: 0; overflow: visible; }
.app-mode-legend.is-small:not(.is-open) .app-leg { display: none; }
.app-mode-legend.app-mode-legend.is-small.is-open { max-height: calc(100% - 60px); }
.app-leg-title { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.app-leg-unit { font-weight: 400; color: var(--m-text-2); }
.app-leg-bar { height: 10px; border-radius: 3px; }
.app-leg-ticks { position: relative; height: 15px; color: var(--m-text-2); font-size: 11px; }
.app-leg-ticks span { position: absolute; top: 0; white-space: nowrap; }
.app-leg-bands { display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.app-leg-bands--2 { display: block; columns: 2; column-gap: 10px; }
.app-leg-bands .app-leg-key { white-space: normal; }
.app-leg-bands--2 .app-leg-key { display: flex; break-inside: avoid; margin-bottom: 3px; white-space: nowrap; }
.app-leg-key { display: inline-flex; align-items: center; gap: 6px; color: var(--m-text-2); white-space: nowrap; }
.app-leg-key i { width: 12px; height: 12px; border-radius: 2px; flex: none; box-shadow: inset 0 0 0 1px rgba(var(--m-ink), .25); }
.app-leg-est i { background: repeating-linear-gradient(45deg, var(--m-text-2) 0 1.5px, transparent 1.5px 4px); border: 1px dashed var(--m-text-2); }
.app-leg-est b { font-weight: 700; }
.app-leg-source { color: var(--m-text-2); font-size: 10px; line-height: 1.3; }
.bmap--gl:has(.app-player:not([hidden])) .app-mode-legend { bottom: 72px; }
.app-leg-range { display: flex; flex-direction: column; gap: 2px; }
.app-leg-range output { font-weight: 700; }
.app-leg-range input { width: 100%; margin: 0; accent-color: var(--m-accent); }
.app-leg-presets, .app-relief3d-presets { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.app-leg-hint { margin: 4px 0 0; font-size: 0.85em; color: var(--m-text-2); }
.app-leg-more summary { cursor: pointer; }
.app-leg-pick { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }   /* 386n: a searchable list in the legend */
.app-leg-pick .app-combo { display: block; min-width: 0; }
.app-leg-pick .m-input, .app-leg-pick .m-select { width: 100%; min-width: 0; font-size: inherit; }
.app-leg-pick .app-combo-list { position: static; max-height: 160px; margin-top: 2px; }   /* the legend box would clip a floating list */
.app-leg-pick .app-combo-list[hidden] { display: none; }
.app-mode-legend.is-small .app-leg-pick .app-combo-list { max-height: 104px; }
.app-mode-legend:focus-within { z-index: 30; }   /* the open list stands above the map menu */
.app-leg-checks { display: flex; flex-direction: column; gap: 4px; }   /* 364j: the sources of the combined heat map */
.app-leg-check { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.app-leg-more ul { margin: 4px 0 0; padding-left: 14px; }
@media (max-width: 640px) { .app-mode-legend { width: min(190px, calc(100% - 64px)); max-height: 42%; padding: 6px 8px; gap: 6px; font-size: 11px; } }

/* U4: long pages - the section bar stays on top, blocks fold at their heading */
.app-toc { position: sticky; top: -20px; z-index: 6; display: flex; gap: 6px; overflow-x: auto; margin: 0 0 12px; padding: 8px 0; background: var(--m-card-solid); border-bottom: 1px solid var(--m-line); scrollbar-width: thin; }
.app-toc-b { flex: none; min-height: 32px; padding: 4px 12px; font: inherit; font-size: 13px; color: var(--m-text); background: none; border: 1px solid var(--m-line-strong); border-radius: 16px; cursor: pointer; }
.app-toc-b:hover { background: rgba(var(--m-ink), .08); }
.app-toc-target { scroll-margin-top: 56px; }
.m-modal .app-toc { top: -16px; }
.app-fold-h { cursor: pointer; }
.app-fold-btn { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; margin: 0 4px 0 -4px; padding: 0; color: var(--m-text-2); background: none; border: 0; border-radius: 6px; cursor: pointer; vertical-align: middle; }
.app-fold-btn .m-i { transition: transform .2s var(--m-ease); }
.app-fold.is-folded .app-fold-btn .m-i { transform: rotate(-90deg); }
.app-fold.is-folded > :not(.app-fold-keep), .app-fold.is-folded .app-fold-keep:not(.app-fold-h) > :not(.app-fold-keep) { display: none !important; }
.app-fold.is-folded .app-fold-h { margin-bottom: 0; }
details.app-fold-card > summary { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 8px; cursor: pointer; list-style: none; margin: 0; min-height: 44px; text-align: left; }
details.app-fold-card > summary::-webkit-details-marker { display: none; }
details.app-fold-card > summary::before { content: '\25B8'; flex: none; color: var(--m-text-2); }
details.app-fold-card[open] > summary::before { content: '\25BE'; }
details.app-fold-card > summary > .app-trip-ccb, details.app-fold-card > summary > .app-u-n { margin: 0; }
details.app-fold-card > summary > .app-u-n { margin-left: auto; }
details.app-fold-card > summary + .m-card-body { padding-top: 0; }
.app-fold-all { display: flex; justify-content: flex-end; gap: 6px; margin-top: 12px; }
.app-fold-all + .app-u-list { margin-top: 8px; }
.app-b-more { list-style: none; padding: 8px 0 0; text-align: center; }
@media (max-width: 640px) {
  .app-toc { top: -16px; }
  /* larger touch targets on the long lists */
  .app-u-sites li, .app-h-cty, .app-b-list li { min-height: 36px; }
  .app-u-sites .m-check, .app-u-sites .app-rank-go, .app-b-list .app-rank-go { min-height: 32px; display: inline-flex; align-items: center; }
}
/* 365c: the quakes of the trips on the "Living Earth" map */
.app-earth-list { position: absolute; left: 8px; top: 48px; z-index: 3; width: max-content; max-width: min(300px, calc(100% - 64px)); background: color-mix(in srgb, var(--m-card-solid) 94%, transparent); border: 1px solid var(--m-line-strong); border-radius: 8px; color: var(--m-text); font-size: 12px; text-align: left; }
.app-earth-list > summary { cursor: pointer; padding: 6px 10px; font-weight: 600; }
.app-earth-body { max-height: 220px; overflow: auto; padding: 0 6px 6px; }
.app-earth-item { display: flex; flex-direction: column; width: 100%; padding: 4px; background: none; border: 0; border-top: 1px solid var(--m-line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-earth-item:hover, .app-earth-item:focus-visible { background: color-mix(in srgb, var(--m-text) 8%, transparent); }
.app-earth-body p { margin: 6px 4px 0; max-width: 270px; }
@media (max-width: 640px) { .app-earth-body { max-height: 140px; } }
/* XM2-XM5: the panel of the astronomy modes (astromode.js) */
.app-astro-box { position: absolute; left: 8px; top: 48px; z-index: 3; display: flex; flex-direction: column; gap: 6px; width: 290px; max-width: calc(100% - 64px); max-height: calc(100% - 120px); overflow: auto; padding: 8px 10px; background: color-mix(in srgb, var(--m-card-solid) 94%, transparent); border: 1px solid var(--m-line-strong); border-radius: 8px; color: var(--m-text); font-size: 12px; text-align: left; }
.app-astro-title { font-size: 13px; }
.app-astro-select { display: flex; flex-direction: column; gap: 2px; }
.app-astro-select .m-select { width: 100%; }
.app-astro-presets { display: flex; flex-wrap: wrap; gap: 4px; }
.app-astro-info { margin: 0; white-space: pre-line; }
.app-astro-note, .app-astro-sub { margin: 0; color: var(--m-text-muted, inherit); opacity: 0.85; }
.app-astro-sub { font-weight: 600; opacity: 1; }
.app-astro-list { display: flex; flex-direction: column; max-height: 180px; overflow: auto; }
.app-astro-row { margin: 0; padding: 2px 0; border-top: 1px solid var(--m-line); }
.app-astro-pass { display: flex; flex-direction: column; width: 100%; padding: 4px 2px; background: none; border: 0; border-top: 1px solid var(--m-line); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.app-astro-pass:hover, .app-astro-pass:focus-visible { background: color-mix(in srgb, var(--m-text) 8%, transparent); }
@media (max-width: 640px) { .app-astro-box { width: 240px; max-height: 45%; } }
/* 360f: the shared 3D country stage (stage3d.js) */
.app-stage3d { position: relative; overflow: hidden; }
.app-stage3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.app-stage3d-canvas:active { cursor: grabbing; }
.app-stage3d-overlay { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* 361 TR4: the country relief map (relief3d.js) in the country window; full window on request */
.app-relief3d-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.app-relief3d-host[hidden] { display: none; }
.app-relief3d { height: min(640px, max(420px, calc(100dvh - 260px))); margin-top: 8px; border: 1px solid var(--m-line); border-radius: 10px; background: var(--m-bg-solid); }
.app-relief3d.is-full { position: fixed; inset: 0; z-index: 1000; height: auto; margin: 0; border: 0; border-radius: 0; }
body.app-relief3d-open { overflow: hidden; }
.app-relief3d-panel { position: absolute; left: 10px; top: 10px; z-index: 1; width: min(310px, calc(100% - 20px)); max-height: calc(100% - 52px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 10px; display: grid; gap: 6px; }
.app-relief3d-tools { display: flex; flex-wrap: wrap; gap: 4px; }
.app-relief3d-sum { cursor: pointer; font-weight: 600; color: var(--m-text-2); }
.app-relief3d-body { display: grid; gap: 4px; margin-top: 6px; }
.app-relief3d-row { display: flex; gap: 4px; align-items: center; }
.app-relief3d-row > .m-select, .app-relief3d-row > .m-input { flex: 1; min-width: 0; }
.app-relief3d-seg[hidden] { display: none; }
.app-relief3d-check { display: flex; align-items: center; gap: 6px; }
.app-relief3d-check[hidden], .app-relief3d-field[hidden] { display: none; }
.app-relief3d-field { display: flex; align-items: center; gap: 6px; }
.app-relief3d-field > span { flex: 0 0 96px; color: var(--m-text-2); }
.app-relief3d-field > input[type=range], .app-relief3d-field > .m-select { flex: 1; min-width: 0; }
.app-relief3d-out { flex: 0 0 34px; text-align: right; font-variant-numeric: tabular-nums; }
.app-relief3d-info { margin: 4px 0 0; }
.app-relief3d-legend { position: absolute; right: 10px; top: 10px; z-index: 1; padding: 8px 10px; min-width: 150px; }
.app-relief3d-legend[hidden] { display: none; }
.app-relief3d-grad { height: 10px; border-radius: 3px; }
.app-relief3d-ends { display: flex; justify-content: space-between; color: var(--m-text-2); margin-top: 2px; }
.app-relief3d-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-relief3d-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.app-relief3d-status { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); padding: 2px 8px; border-radius: 4px; background: var(--m-bg-solid); color: var(--m-text-2); }
.app-relief3d-status:empty { display: none; }
.app-relief3d-attr { position: absolute; right: 8px; bottom: 6px; max-width: calc(100% - 16px); padding: 1px 6px; border-radius: 4px; background: var(--m-bg-solid); color: var(--m-text-3); }
/* the labels sit on the relief's paper, light in both themes would glare: they take the panel's colours */
.app-relief3d-peak { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 11px; line-height: 1.2; color: var(--m-text); background: color-mix(in srgb, var(--m-bg-solid) 90%, transparent); border-radius: 4px; padding: 2px 6px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); }
.app-relief3d-peak[hidden] { display: none; }
.app-relief3d-peak b { font-weight: 600; }
.app-relief3d-peak small { display: block; font-size: 10px; color: var(--m-text-2); }
.app-relief3d-peak.is-minor { font-size: 10px; padding: 1px 4px; background: color-mix(in srgb, var(--m-bg-solid) 75%, transparent); }
.app-relief3d-peak.is-minor b { font-weight: 500; }
.app-relief3d-peak.is-trip { color: var(--m-series-1); }
.app-relief3d-leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* 361 TR6: the relief globe, a full window over the page (globemode.js, globe3d.js) */
.app-globe3d-host { position: fixed; inset: 0; z-index: 1000; background: var(--m-bg-solid); }
.app-relief3d.app-globe3d { position: absolute; inset: 0; height: auto; margin: 0; border: 0; border-radius: 0; }
.app-globe3d-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.app-globe3d-head > b { font-size: 14px; }
.app-globe3d-err { position: absolute; left: 50%; top: 40%; transform: translateX(-50%); max-width: 90%; color: var(--m-text-2); cursor: pointer; }
/* 361 TR10b: the continental drift globe's time bar (drift3d.js) */
.app-drift-bar { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 1; width: min(720px, calc(100% - 20px)); padding: 8px 10px; display: flex; align-items: center; gap: 8px; }
.app-drift-play { min-width: 92px; }
.app-drift-track { flex: 1; min-width: 0; display: grid; gap: 2px; }
.app-drift-range { width: 100%; }
.app-drift-ends { display: flex; justify-content: space-between; font-size: 11px; }
.app-drift-read { min-width: 150px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
/* TR10c: the era band and the event ticks over the slider (the thumb is 16 px wide, the ticks keep to its travel) */
.app-drift-scale { position: relative; height: 22px; margin: 0 8px; }
.app-drift-era { position: absolute; top: 0; height: 12px; box-sizing: border-box; border-left: 1px solid var(--m-border, #8886); display: flex; align-items: flex-end; overflow: hidden; }
.app-drift-era > span { font-size: 10px; line-height: 1; padding-left: 3px; white-space: nowrap; color: var(--m-text-muted, #777); }
.app-drift-ev { position: absolute; bottom: 0; width: 12px; height: 12px; margin-left: -6px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.app-drift-ev::after { content: ''; position: absolute; left: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--m-accent, #e8590c); }
.app-drift-ev:hover::after, .app-drift-ev:focus-visible::after { transform: scale(1.5); }
.app-drift-ev[aria-current="true"]::after { outline: 2px solid var(--m-text, #222); outline-offset: 1px; }
.app-drift-evline { min-height: 1.3em; font-size: 12px; text-align: center; }
.app-drift-sources { margin-top: 6px; font-size: 12px; }
.app-drift-sources summary { cursor: pointer; }
.app-drift-sources ul { margin: 4px 0 0; padding-left: 16px; }
.app-relief3d-leaders line { stroke: color-mix(in srgb, var(--m-text) 60%, transparent); stroke-width: 1; }
.app-relief3d-leaders line.is-trip { stroke: color-mix(in srgb, var(--m-series-1) 60%, transparent); }
@media (max-width: 640px) {
  .app-relief3d-panel { width: calc(100% - 20px); max-height: 55%; }
  .app-relief3d-legend { top: auto; bottom: 30px; right: 10px; }
  .app-drift-bar { flex-wrap: wrap; bottom: 30px; }
  .app-drift-track { order: 5; flex-basis: 100%; }
  .app-drift-read { flex: 1; min-width: 0; }
  .app-drift3d .app-relief3d-panel { max-height: 40%; }
}

/* 361 TR9: the planet-interior cutaway (interior3d.js) */
.app-interior-card { position: absolute; left: 10px; bottom: 30px; z-index: 1; max-width: min(420px, calc(100% - 20px)); padding: 8px 10px; display: grid; gap: 4px; background: var(--m-bg-solid); max-height: 45%; overflow-y: auto; }
.app-interior-card p { margin: 0; }
.app-interior-keys { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-interior-label { position: absolute; left: 0; top: 0; pointer-events: none; display: grid; gap: 1px; margin: -6px 0 0 14px; padding: 3px 6px; max-width: 190px; font-size: 11px; line-height: 1.25; border-radius: 6px; background: color-mix(in srgb, var(--m-bg-solid) 82%, transparent); color: var(--m-text); border: 1px solid var(--m-border, rgba(128, 128, 128, .35)); }
.app-interior-label::before { content: ''; position: absolute; left: -17px; top: 3px; width: 8px; height: 8px; border-radius: 50%; background: var(--m-text); border: 2px solid var(--m-bg-solid); }
.app-interior-label.is-left { margin: -6px 14px 0 -14px; text-align: right; }
.app-interior-label.is-left::before { left: auto; right: -17px; }
.app-interior-label[hidden] { display: none; }
.app-interior-label b { font-size: 12px; }
.app-interior-label i { color: var(--m-text-2); }
@media (max-width: 700px) { .app-interior-label i { display: none; } .app-interior-card { bottom: 56px; max-width: calc(100% - 20px); } }
/* C0333: the button of a file input looks like a my-gui button */
.m-input[type="file"] { padding: 0 11px 0 0; cursor: pointer; }
.m-input[type="file"]::file-selector-button {
  height: 100%; margin: 0 10px 0 0; padding: 0 12px; border: 0; border-radius: var(--m-r) 0 0 var(--m-r);
  font: inherit; font-size: 12.5px; font-weight: 600; letter-spacing: .012em;
  color: var(--m-text); background: var(--m-raise); box-shadow: var(--m-raise-sh); cursor: pointer;
}
.m-input[type="file"]::file-selector-button:hover { background: linear-gradient(180deg, rgba(var(--m-ink), .1), rgba(var(--m-ink), .04)); box-shadow: var(--m-raise-hover-sh); }
/* Map toolbars (366a, D540). LAYOUT only below (docks, wrapping, menu placement): the buttons and the menu are my-gui (m-btn, m-dd / m-menu / m-mi),
   their look follows the kit. The one piece of look of our own is the bar's surface: it is kept in the block marked "look" so the GUI work (370+)
   can move it into my-gui as a toolbar component; it uses kit tokens only. */
.app-tb-dock, .app-tb-float { position: absolute; z-index: 5; pointer-events: none; display: flex; gap: 6px; padding: 6px; }
.app-tb-dock[hidden] { display: none; }
.app-tb-dock--top { top: 0; left: 0; right: 0; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.app-tb-dock--bottom { bottom: 0; left: 0; right: 0; flex-wrap: wrap; justify-content: center; align-items: flex-end; }
.app-tb-dock--left { top: 0; bottom: 0; left: 0; flex-direction: column; justify-content: center; align-items: flex-start; }
.app-tb-dock--right { top: 0; bottom: 0; right: 0; flex-direction: column; justify-content: center; align-items: flex-end; }
.app-tb-float { inset: 0; padding: 0; }
.app-tb { position: relative; pointer-events: auto; display: flex; align-items: center; gap: 2px; padding: 3px; max-width: 100%; }
.app-tb--v { flex-direction: column; align-items: stretch; }
.app-tb-float .app-tb { position: absolute; }
.app-tb-grip { cursor: grab; touch-action: none; }
.app-tb.is-dragging { cursor: grabbing; }
.app-tb-btn { display: inline-flex; align-items: center; }
.app-tb-icon { display: inline-flex; width: 16px; height: 16px; }
.app-tb-icon svg { width: 100%; height: 100%; }
/* the menu: a zero-size anchor next to the bar; the kit's .m-menu inside it */
.app-tb-menu { position: absolute; top: 100%; left: 0; width: 0; height: 0; }
.app-tb-menu > .m-menu { top: 6px; left: 0; opacity: 1; visibility: visible; transform: none; }   /* the bar creates and removes the menu itself: always shown */
.app-tb--v .app-tb-menu { top: 0; left: 100%; }
.app-tb--v .app-tb-menu > .m-menu { top: 0; left: 6px; }
.app-tb-dock--right .app-tb--v .app-tb-menu { left: auto; right: 100%; }
.app-tb-dock--right .app-tb--v .app-tb-menu > .m-menu { left: auto; right: 6px; }
.app-tb-dock--bottom .app-tb-menu { top: auto; bottom: 100%; }
.app-tb-dock--bottom .app-tb-menu > .m-menu { top: auto; bottom: 6px; }
.app-tb-menu-item[aria-checked="true"]::before { content: "✓ "; }
.app-tb-menu-item:disabled { opacity: .45; }
/* look (candidate for my-gui): the surface of a bar */
.app-tb { background: var(--m-glass-strong); border: 1px solid var(--m-glass-edge); border-radius: var(--m-r-md); box-shadow: var(--m-pop-sh); color: var(--m-text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.app-tb-sep { background: var(--m-line-strong); }
.app-tb-sep { align-self: stretch; width: 1px; margin: 3px 4px; }
.app-tb--v .app-tb-sep { width: auto; height: 1px; margin: 4px 3px; }
.app-tb-dock--top .app-tb, .app-tb-dock--bottom .app-tb { flex-wrap: wrap; }
/* 366c: while the map carries the View and Tools toolbars, the page's own switches are hidden (the toolbars click them); hiding a toolbar brings them back */
#app-map-card:has([data-toolbar="menu"]) :is(#app-mview, #app-mcont, #app-cmp-btn, #app-save) { display: none; }
/* the top and bottom docks leave room for a toolbar docked at the side */
.bmap:has(> .app-tb-dock--right:not([hidden])) > .app-tb-dock--top, .bmap:has(> .app-tb-dock--right:not([hidden])) > .app-tb-dock--bottom { right: 52px; }
.bmap:has(> .app-tb-dock--left:not([hidden])) > .app-tb-dock--top, .bmap:has(> .app-tb-dock--left:not([hidden])) > .app-tb-dock--bottom { left: 52px; }
/* 366d: the layers and the legend are on the map as a toolbar and a foldable panel; the page's own copies are hidden meanwhile */
#app-map-card:has([data-toolbar="menu"]) :is(.app-layers-main, .app-map-key) { display: none; }
.app-tb--panel { flex-wrap: wrap; max-width: min(360px, 80%); }
.app-tb-body { flex-basis: 100%; max-height: 40vh; overflow: auto; padding: 4px 8px 6px; font-size: 12px; }
.app-tb-body .app-legend { flex-direction: column; align-items: flex-start; gap: 4px; }
/* 366e2: the timeline slider docked on the map */
.app-tb--adopt { flex-wrap: nowrap; align-items: flex-start; width: min(760px, calc(100% - 16px)); }
.app-tb--adopt > .app-tl { flex: 1; min-width: 0; border-top: 0; padding: 4px 10px 2px 4px; }
.app-tb-status { padding: 0 8px; font-variant-numeric: tabular-nums; color: var(--m-text-2); }

/* 366h: the one map menu - a button that unfolds submenus; inside them one row under the other, each with the kit's sliding switch */
.app-tb--menu { flex-wrap: wrap; max-width: min(320px, calc(100% - 16px)); }
.app-tbm-list { flex-basis: 100%; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; overscroll-behavior: contain; min-width: 240px; }
.app-tbm-group { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: flex-start; flex: none; font-weight: 700; }
.app-tbm-group > .app-tbm-name { margin-right: auto; }
.app-tbm-rows { display: flex; flex-direction: column; gap: 1px; padding: 0 0 4px 10px; border-left: 2px solid var(--m-line); margin-left: 8px; flex: none; }
.app-tbm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; padding: 2px 8px; font-size: 13px; cursor: pointer; border-radius: 6px; text-align: left; flex: none; }
label.app-tbm-row:hover { background: var(--m-well); }
.app-tbm-row .m-switch { flex: none; }
.app-tbm-action { justify-content: flex-start; }
.app-tbm-list .app-tb-body { max-height: none; flex: none; }
.app-tb-dock .app-tb.app-tb-mbar--menu { align-self: flex-start; }
.app-tb-mbar--menu .app-tb-more { margin-left: 0; position: static; box-shadow: none; background: none; }
.app-tb-sheet .app-tbm-list { max-height: none; min-width: 0; overflow: visible; }
.app-tb-dock--mobile .app-tbm-row, .app-tb-dock--mobile .app-tbm-group { min-height: 40px; }

/* 366g: on a phone (max 640px) no docking or floating: the modes are one scrolling bar at the bottom, the other toolbars a sheet pulled up above it */
.app-tb-dock--mobile { padding: 0; }
.app-tb-m { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 6px; box-sizing: border-box; pointer-events: none; }
.app-tb-dock .app-tb.app-tb-mbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.app-tb-mbar::-webkit-scrollbar { display: none; }
.app-tb-mbar > .app-tb-btn, .app-tb-mbar > .app-tb-sep { flex: none; }
.app-tb-more { flex: none; margin-left: auto; position: sticky; right: 0; background: var(--m-glass-strong); box-shadow: -8px 0 8px -2px var(--m-glass-strong); }
.app-tb-dock--mobile .app-tb-btn { min-height: 40px; }
.app-tb-sheet { pointer-events: auto; display: flex; flex-direction: column; gap: 8px; max-height: 50%; overflow-y: auto; padding: 8px; background: var(--m-glass-strong); border: 1px solid var(--m-glass-edge); border-radius: var(--m-r-md); box-shadow: var(--m-pop-sh); color: var(--m-text); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.app-tb-sheet[hidden] { display: none; }
.app-tb-sheet .app-tb { flex-wrap: wrap; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.app-tb-title { flex-basis: 100%; color: var(--m-text-2); font-weight: 600; }
.app-tb-sheet .app-tb-body { max-height: none; padding: 0; }

/* 362 PM2: the 3D population map page (popmap3d.js on the shared stage; the panel and overlays are the relief's) */
.app-popmap-bar { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.app-popmap-pick { display: flex; align-items: center; gap: 8px; }
.app-popmap-pick > .m-select { min-width: 220px; }
.app-relief3d.app-popmap3d { height: max(420px, calc(100dvh - 210px)); margin-top: 0; }
/* 381b: the timeline slider under the world map */
#app-tl-host:empty { display: none; }
.app-tl { padding: 8px 16px 6px; border-top: 1px solid var(--m-line); }
.app-tl.is-empty { opacity: .6; }
.app-tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.app-tl-title { font-weight: 700; }
.app-tl-date { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 7ch; }
.app-tl-est { cursor: help; color: var(--m-warn, currentColor); }
.app-tl-count { margin-right: auto; }
.app-tl-track { position: relative; padding-top: 10px; }
.app-tl-range { width: 100%; display: block; position: relative; z-index: 1; margin: 0; }
.app-tl-marks { position: absolute; left: 0; right: 0; top: 0; height: 8px; pointer-events: none; }
.app-tl-mark { position: absolute; top: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--m-accent); }
.app-tl-mark.is-est { background: transparent; box-shadow: inset 0 0 0 1px var(--m-accent); }
.app-tl-ticks { position: relative; height: 16px; margin-top: 2px; font-size: 11px; color: var(--m-text-2); pointer-events: none; }
.app-tl-tick { position: absolute; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.app-tl-tick:first-child { transform: none; }
@media (max-width: 600px) { .app-tl { padding: 8px 12px 6px; } .app-tl-title { display: none; } }

/* 381c: play button and the speed knob */
.app-tl-play { min-width: 104px; }
.app-tl-knob { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none; cursor: grab; touch-action: none;
  background: var(--m-well); box-shadow: var(--m-well-sh), inset 0 0 0 1px var(--m-line); }
.app-tl-knob:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }
.app-tl-knob-dial { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; transition: transform .08s linear; }
.app-tl-knob-dial::after { content: ''; position: absolute; left: 50%; top: 3px; width: 3px; height: 10px; margin-left: -1.5px; border-radius: 2px; background: var(--m-accent); }
.app-tl-speed { min-width: 4ch; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .app-tl-knob-dial { transition: none; } }

/* 381f: follow, screensaver and the slider over the full-screen map */
.app-tl-follow { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.app-tl.is-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; border-top: 0; padding-top: 24px;
  background: linear-gradient(to top, var(--m-card-solid, var(--m-bg, #000)) 55%, transparent); transition: opacity .4s; }
.app-tl.is-saver.is-idle { opacity: 0; pointer-events: none; }
.app-tl.is-saver.is-idle * { cursor: none; }
@media (prefers-reduced-motion: reduce) { .app-tl.is-over { transition: none; } }

/* C0350: the 3D cities page – the map, then the cities' buttons by country */
.app-c3d-map { height: clamp(260px, 52vh, 520px); }
.app-c3d-map .app-mk { cursor: pointer; }
.app-c3d-list { display: grid; gap: 12px; margin-top: 12px; }
.app-c3d-cty .m-h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; }
.app-c3d-btns { display: flex; flex-wrap: wrap; gap: 6px; }
