#btnThenThere[hidden], #mobileAppShell [data-app-target="btnThenThere"][hidden] { display: none !important; }
body.then-there-open #viewDivRight {
  display: block !important;
  width: 50% !important;
  flex: 0 0 50%;
  min-width: 0;
  background: var(--ui-recess);
  pointer-events: auto !important;
}
body.then-there-open #viewDivRight > :not(.tt-panel) { display: none !important; }
body.then-there-open #viewDiv { min-width: 0; }
body.then-there-open :is(.navbar, #mapSearch, #nearbyPointsButton, #btnWorkspace, #btnAccount, #btnHistoricalAssistant) {
  display: none !important;
}
body.then-there-open #toolbarContainer { right: calc(50% + 14px); }
body.then-there-open #toolbarContainer :is(#btnDistance, #btnArea, #btnElevation, #btnFlightSimulator) { display: none; }
body.then-there-open:has(#thenTherePanel .tt-close[hidden]) #btnStreetView { display: none; }
body.then-there-open #viewDiv .esri-view-surface { cursor: crosshair; }

.tt-panel {
  --tt-sign-frame: #242725;
  --tt-sign-face: #fbfaf3;
  --tt-answer: #16865e;
  --tt-pane-gutter: clamp(8px, 1.15vw, 16px);
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--ui-recess);
  color: var(--ui-text);
  border-inline-start: 1px solid var(--ui-border);
  font-family: var(--ui-map-font, system-ui, sans-serif);
  font-size: 14px;
  line-height: 1.45;
}
.tt-panel[hidden], .tt-panel [hidden] { display: none; }
.tt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(14px, 3vw, 30px);
  background: var(--ui-surface);
  border-bottom: 1px solid var(--ui-border);
}
.tt-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.tt-header-actions { display: flex; align-items: center; flex-shrink: 0; gap: 8px; }
.tt-back-menu { white-space: nowrap; }
.tt-brand-icon { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 11px; background: var(--ui-selected); color: var(--ui-link); }
.tt-header h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.18; }
.tt-panel p, .tt-panel h3 { margin: 0; }
.tt-panel h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.tt-subtitle { color: var(--ui-muted); font-size: 12px; }
.tt-content {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px clamp(14px, 3vw, 30px) 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  scrollbar-gutter: stable;
}
.tt-panel[data-screen="home"] .tt-content {
  flex: 1;
  gap: 18px;
  padding: 0 0 22px;
  scrollbar-gutter: auto;
}
.tt-content > * { flex-shrink: 0; width: 100%; max-width: 640px; box-sizing: border-box; }
.tt-panel[data-screen="home"] .tt-content > :not(.tt-menu-masthead) {
  width: calc(100% - 2 * var(--tt-pane-gutter));
  max-width: none;
}
.tt-panel[data-screen="playing"] .tt-content {
  flex: 1;
  min-height: 0;
  gap: 8px;
  padding-top: 10px;
}
.tt-panel:is([data-screen="playing"], [data-screen="result"]) .tt-content {
  padding-inline: var(--tt-pane-gutter);
  scrollbar-gutter: auto;
}
.tt-panel:is([data-screen="playing"], [data-screen="result"]) .tt-content > * { max-width: none; }
.tt-panel:is([data-screen="playing"], [data-screen="result"], [data-screen="finished"]) .tt-content {
  padding-bottom: clamp(24px, 4dvh, 40px);
}
.tt-panel button, .tt-panel select, .tt-panel input:not([type="checkbox"]) {
  min-height: 38px;
  padding: 6px 12px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  color: var(--ui-text);
  background: var(--ui-surface);
  font: inherit;
}
.tt-panel button { cursor: pointer; font-weight: 600; }
.tt-panel button:hover:not(:disabled) { background: var(--ui-hover); }
.tt-panel button[aria-pressed="true"] { background: var(--ui-selected); color: var(--ui-link); border-color: var(--ui-link); }
.tt-panel button:focus-visible, .tt-panel input:focus-visible, .tt-panel select:focus-visible {
  outline: 2px solid var(--ui-link);
  outline-offset: 2px;
}
.tt-panel button:disabled { cursor: default; opacity: .54; }
.tt-panel button.tt-primary { background: var(--ui-accent); color: var(--ui-accent-ink); border-color: var(--ui-accent); }
.tt-panel button.tt-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--ui-accent) 90%, var(--ui-text)); }
.tt-panel button.tt-close { width: 38px; flex: 0 0 38px; padding: 0; border-radius: 50%; font-size: 23px; font-weight: 400; line-height: 1; }
.tt-menu-masthead {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: end;
  max-width: none;
  min-height: clamp(165px, 30dvh, 290px);
  overflow: hidden;
  padding: 64px var(--tt-pane-gutter) clamp(18px, 4vw, 34px);
  background: #213744 url("../assets/then-there-tram.webp") center 86% / cover;
  color: #fff;
}
.tt-menu-masthead::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg,#101a2280,#101a221a 28%,#101a22d9 76%,#101a22f2); }
.tt-panel .tt-menu-close {
  position: absolute;
  top: 12px;
  right: var(--tt-pane-gutter);
  color: #fff;
  background: #15202bd9;
  border-color: #ffffff8c;
}
.tt-panel .tt-menu-close:hover:not(:disabled) { background: #101a22; }
.tt-panel .tt-menu-close:focus-visible { outline-color: #fff; }
.tt-menu-heading { min-width: 0; }
.tt-menu-title { margin: 0; font: 700 clamp(34px, 5vw, 66px)/1 Georgia, serif; letter-spacing: -.045em; }
.tt-panel .tt-menu-subtitle { margin-top: 7px; color: #e3edf2; font-size: clamp(13px, 1.5vw, 18px); font-weight: 500; }
.tt-kicker { font-weight: 700; }
.tt-menu-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.tt-panel .tt-menu-actions button { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 81px; padding: 11px; text-align: start; }
.tt-mode-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--ui-selected); color: var(--ui-link); }
.tt-mode-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.tt-menu-actions strong { display: block; font-size: 17px; }
.tt-menu-actions small { display: block; margin-top: 2px; color: var(--ui-muted); font-weight: 400; }
.tt-menu-arrow { color: var(--ui-link); font-size: 18px; }
.tt-game-instructions { border-block: 1px solid var(--ui-border); }
.tt-game-instructions h3 { padding: 9px 1px 0; font-weight: 650; }
.tt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-home-section { display: grid; gap: 8px; }
.tt-manage-link { color: var(--ui-link); }
.tt-home-guide { padding-block: 2px 8px; container-type: inline-size; }
.tt-home-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 0; list-style: none; }
.tt-home-steps li { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--ui-border); border-radius: 9px; overflow: hidden; background: var(--ui-surface); }
.tt-guide-caption { display: flex; align-items: center; gap: 6px; padding: 8px; }
.tt-home-steps .tt-rank { min-width: 24px; height: 24px; font-size: 12px; }
.tt-home-steps strong { font-weight: 600; }
.tt-guide-visual { position: relative; aspect-ratio: 16 / 9; }
.tt-guide-picture { background: #24313b url('../assets/then-there-tram.webp') center 67% / cover; }
.tt-guide-map, .tt-guide-result { background: #eaf5f8 url("../assets/then-there-cover.webp") center 59% / cover; }
.tt-guide-pin {
  position: absolute;
  top: 66%;
  width: clamp(18px, 15%, 34px);
  aspect-ratio: 34 / 42;
  transform: translate(-50%, -100%);
  background: center / contain no-repeat;
}
.tt-guide-guess { left: 25%; background-image: url("../assets/then-there-guess-pin.svg"); }
.tt-guide-answer { left: 75%; background-image: url("../assets/then-there-photo-pin.svg"); }
.tt-guide-line { position: absolute; top: 66%; inset-inline: 25%; border-top: 2px dashed #283c4b; }
.tt-guide-distance {
  position: absolute;
  top: 66%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 2px 5px;
  border-radius: 5px;
  background: #283c4b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
@container (max-width: 410px) {
  .tt-home-steps { grid-template-columns: minmax(0, 1fr); }
  .tt-home-steps li { grid-template: auto / minmax(96px, 32%) minmax(0, 1fr); }
}
.tt-settings, .tt-join, .tt-guess { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.tt-guess .tt-primary { flex: 1; }
.tt-field { display: grid; gap: 4px; min-width: 0; flex: 1; color: var(--ui-muted); font-weight: 600; }
.tt-field :is(select, input) { box-sizing: border-box; min-width: 0; width: 100%; }
.tt-year-field { flex: 1 1 105px; }
.tt-check { display: flex; align-items: center; gap: 8px; }
.tt-check input { accent-color: var(--ui-accent); }
.tt-solo-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 10px;
}
.tt-solo-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  background: var(--ui-surface);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
}
.tt-solo-card h3 { font-size: 16px; }
.tt-solo-card .tt-settings { display: grid; }
.tt-solo-options .tt-check {
  min-height: 42px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  cursor: pointer;
}
.tt-solo-options .tt-check:has(input:checked) { background: var(--ui-selected); }
.tt-solo-launch { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tt-solo-launch .tt-primary { flex: 0 1 12rem; }
.tt-muted, .tt-credit { color: var(--ui-muted); }
.tt-photo-link { display: block; border-radius: inherit; }
.tt-partner-photo { display: flex; flex-direction: column; }
.tt-partner-photo .tt-photo-link { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.tt-photo-link:focus-visible { outline: 3px solid var(--ui-accent); outline-offset: 3px; }
.tt-panel .tt-photo .tt-partner-credit { flex: none; margin: 0; padding: 10px 12px; background: var(--ui-surface); color: var(--ui-muted); font-size: 12px; line-height: 1.5; }
.tt-versus-banner {
  display: grid;
  justify-items: start;
  gap: 7px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  background: linear-gradient(100deg, var(--ui-selected) 40%, color-mix(in srgb, var(--ui-selected) 87%, transparent)),
    url("../assets/then-there-cover.webp") center 45% / cover;
}
.tt-panel .tt-versus-banner h3 { font-size: clamp(25px, 3vw, 32px); line-height: 1.1; }
.tt-versus-kicker { color: var(--ui-link); font-size: 11px; letter-spacing: .1em; font-weight: 700; }
.tt-room-size { margin-top: 4px; padding: 3px 8px; border: 1px solid var(--ui-border); border-radius: 14px; background: var(--ui-surface); font-size: 12px; }
.tt-room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr)); gap: 10px; align-items: start; }
.tt-room-panel { display: grid; gap: 9px; padding: 14px; border: 1px solid var(--ui-border); border-radius: 11px; background: var(--ui-surface); }
.tt-invite-panel { background: var(--ui-selected); }
.tt-room-panel :is(.tt-settings, .tt-join) { display: grid; align-items: stretch; margin-top: 3px; }
.tt-join input { text-transform: uppercase; font-variant-numeric: tabular-nums; letter-spacing: .11em; }
.tt-versus-auth .account-dialog { width: 100%; max-height: none; margin: 0; padding: 16px; border-radius: 11px; box-shadow: none; overflow: visible; }
.tt-panel .tt-versus-auth .account-primary { background: var(--ui-accent); color: var(--ui-accent-ink); border-color: var(--ui-accent); }
.tt-panel .tt-versus-auth .account-link { background: transparent; border: 0; padding-inline: 0; color: var(--ui-link); }
.tt-round, .tt-code { font-variant-numeric: tabular-nums; }
.tt-code { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.tt-code span { grid-column: 1 / -1; letter-spacing: .09em; font-size: 11px; }
.tt-code strong { font-size: 27px; letter-spacing: .1em; }
.tt-board { display: grid; gap: 7px; padding: 0; margin: 0; list-style: none; }
.tt-board li { border: 1px solid var(--ui-border); border-radius: 8px; background: var(--ui-surface); padding: 8px 10px; overflow-wrap: anywhere; }
.tt-board li.tt-self { background: var(--ui-selected); }
.tt-rank { min-width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; color: var(--ui-link); background: var(--ui-selected); }
.tt-self .tt-rank { background: var(--ui-surface); }
.tt-player { flex: 1; font-weight: 600; }
.tt-round { padding: 8px 11px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--ui-surface); font-weight: 600; flex-wrap: wrap; }
.tt-round .tt-header-actions { margin-inline-start: auto; }
.tt-round-steps { display: flex; align-items: center; gap: 4px; }
.tt-round-steps i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ui-muted); }
.tt-round-steps .tt-done { background: var(--ui-selected); }
.tt-round-steps .tt-current { background: var(--ui-link); border-color: var(--ui-link); }
.tt-timer { padding: 2px 8px; border-radius: 12px; color: var(--ui-link); background: var(--ui-selected); font-size: 15px; }
.tt-photo {
  overflow: hidden;
  height: clamp(120px, 45dvh, 620px);
  border: 1px solid var(--ui-border);
  border-radius: 11px;
  background: #24272a;
}
.tt-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tt-photo-viewer {
  box-sizing: border-box;
  width: min(96vw, 1800px);
  height: 94dvh;
  max-width: 96vw;
  max-height: 94dvh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #68717b;
  border-radius: 12px;
  background: #20262c;
  color: #f5f7fa;
  font: 14px/1.45 var(--ui-map-font, system-ui, sans-serif);
}
.tt-photo-viewer[open] { display: flex; flex-direction: column; }
.tt-photo-viewer::backdrop { background: #091016d9; }
.tt-photo-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.tt-photo-viewer-header h2 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.tt-photo-viewer-close { flex: none; min-height: 44px; padding: 8px 16px; border: 1px solid #68717b; border-radius: 8px; background: #303942; color: inherit; font: inherit; cursor: pointer; }
.tt-photo-viewer-close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tt-photo-viewer-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #10171d; }
.tt-photo-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: zoom-in; }
.tt-photo-viewport.is-pannable { cursor: grab; }
.tt-photo-viewport.is-panning { cursor: grabbing; }
.tt-photo-viewport:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.tt-photo-viewer-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transform-origin: center; will-change: transform; pointer-events: none; user-select: none; }
.tt-photo-viewer-controls { position: absolute; z-index: 1; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 5px; max-width: calc(100% - 24px); padding: 6px; border: 1px solid #68717b; border-radius: 10px; background: #20262cee; }
.tt-photo-viewer-control { flex: none; min-width: 44px; min-height: 44px; padding: 6px 10px; border: 1px solid #68717b; border-radius: 6px; background: #303942; color: #fff; font: inherit; cursor: pointer; }
.tt-photo-viewer-control:disabled { opacity: .45; cursor: default; }
.tt-photo-viewer-control:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.tt-photo-viewer-zoom-level { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; }
.tt-photo-viewer-details { flex: none; max-height: 20dvh; overflow: auto; padding: 10px 16px; }
.tt-photo-viewer-details p { margin: 0; }
.tt-photo-viewer-details p + p { margin-top: 6px; }
.tt-photo-viewer-details :is(.tt-credit, .tt-photo-address) { color: #c1c9d1; }
.tt-panel[data-screen="playing"] .tt-photo {
  position: relative;
  flex: 1 0 0;
  height: auto;
  min-height: clamp(112px, 24dvh, 180px);
}
.tt-panel[data-screen="playing"] .tt-photo img { position: absolute; inset: 0; }
.tt-photo img[data-reveal="zoom"] { animation: tt-zoom ease-out both; }
.tt-photo img[data-reveal="blur"] { animation: tt-blur linear both; }
@keyframes tt-zoom { from { transform: scale(2.8); } to { transform: scale(1); } }
@keyframes tt-blur { from { filter: blur(18px); } to { filter: blur(0); } }
@media (prefers-reduced-motion: reduce) {
  .tt-photo img:is([data-reveal="zoom"], [data-reveal="blur"]) { animation-timing-function: steps(4, end); }
}
.tt-hints { color: var(--ui-muted); }
.tt-hints:empty { display: none; }
.tt-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tt-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tt-legend span::before { content: ''; width: 17px; height: 21px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.tt-pin::before { background-image: url("../assets/then-there-guess-pin.svg"); }
.tt-answer::before { background-image: url("../assets/then-there-photo-pin.svg"); }
.tt-map-labels { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.tt-map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 4px 9px;
  color: #fff;
  background: #193549;
  box-shadow: 0 2px 8px #10243855;
  font: 700 16px/1.25 var(--ui-map-font, system-ui, sans-serif);
  white-space: nowrap;
}
.tt-map-label[hidden] { display: none; }
.tt-map-label[data-kind="guess"] { background: #a44919; }
.tt-map-label[data-kind="photo"] { background: #12684e; }
.tt-map-label[data-kind="distance"] { border-radius: 20px; font-variant-numeric: tabular-nums; }
.tt-sign {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 12px clamp(23px, 4vw, 36px);
  text-align: center;
  background: var(--tt-sign-frame);
  border: 3px solid var(--tt-sign-frame);
  border-radius: 8px;
  isolation: isolate;
  color: var(--tt-sign-frame);
}
.tt-sign::before { content: ''; position: absolute; inset: 0; background: var(--tt-sign-face); clip-path: polygon(6% 0, 94% 0, 100% 50%, 94% 100%, 6% 100%, 0 50%); z-index: -1; }
.tt-sign strong { font-size: clamp(22px, 3vw, 36px); font-weight: 700; line-height: 1.16; text-wrap: balance; overflow-wrap: anywhere; }
.tt-sign span { font-size: 11px; font-weight: 600; letter-spacing: .05em; }
.tt-score { display: grid; gap: 8px; }
.tt-score-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; border: 1px solid var(--ui-border); border-radius: 8px; overflow: hidden; background: var(--ui-surface); animation: tt-score-in 240ms ease-out var(--reveal-delay) both; }
.tt-score-row > * { padding: 9px; }
.tt-score-row strong { display: flex; gap: 5px; align-items: center; }
.tt-score-row strong::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--tt-answer); }
.tt-score-row[data-kind="year"] strong::before { background: #a44919; }
.tt-score-row[data-kind="time"] strong::before { background: var(--ui-link); }
.tt-score-row span { color: var(--ui-muted); }
.tt-score-row b { color: var(--ui-text); background: var(--ui-selected); font-variant-numeric: tabular-nums; white-space: nowrap; }
@keyframes tt-score-in { from { transform: translateX(-9px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.tt-fact, .tt-standings { display: grid; gap: 10px; border: 1px solid var(--ui-border); border-radius: 12px; background: var(--ui-surface); padding: 12px; }
.tt-aerial { padding: 8px 11px; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: 10px; }
.tt-aerial-status { display: block; color: var(--ui-muted); }
.tt-photo-map-overlay .ws-photo-map-marker { --ws-photo-size: 45px; --ws-photo-radius: 6px; }
.tt-photo-map-overlay .ws-photo-map-marker[hidden] { display: none; }
.tt-photo-map-overlay .ws-photo-map-marker[aria-pressed="true"] { border-color: var(--ui-link); z-index: 1; }
.tt-photo-map-overlay .ws-photo-map-marker img { object-fit: cover; }
.tt-photo-description { white-space: pre-line; overflow-wrap: anywhere; }
.tt-photo-address { color: var(--ui-muted); font-size: 12px; overflow-wrap: anywhere; }
.tt-credit { font-size: 12px; overflow-wrap: anywhere; }
.tt-panel .tt-notice { margin: 8px 14px 0; border-inline-start: 3px solid var(--palette-danger); padding: 4px 9px; }

html[data-app-layout="tablet"] body.then-there-open #mapApplication #mapWrapper { flex-direction: row !important; }
html:is([data-app-layout="phone"], [data-app-layout="tablet"]) body.then-there-open
  :is(.app-header, .app-navigation, .app-map-logo, .app-centre-cross, .app-primary-bank, .cursor-status-bar) { display: none !important; }
html:is([data-app-layout="phone"], [data-app-layout="tablet"]) .tt-panel :is(button, select, input:not([type="checkbox"])) { min-height: 44px; }
html:is([data-app-layout="phone"], [data-app-layout="tablet"]) .tt-panel button.tt-close { width: 44px; flex-basis: 44px; }
@media (max-width: 768px) {
  html:not([data-app-layout="tablet"]) body.then-there-open #mapWrapper { flex-direction: column !important; }
  html:not([data-app-layout="tablet"]) body.then-there-open :is(#viewDiv, #viewDivRight) {
    width: 100% !important;
    max-width: 100% !important;
    height: 50% !important;
    min-height: 0;
    flex: 0 0 50% !important;
  }
  body.then-there-open #toolbarContainer { right: 8px; bottom: calc(50% + 4px); }
  .tt-photo { height: clamp(100px, 24dvh, 240px); }
  .tt-header { padding-block: 8px; }
  .tt-content { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-score-row { animation: none; }
}
@media (max-width: 380px) {
  .tt-header { gap: 8px; }
  .tt-brand-icon { display: none; }
  .tt-panel button.tt-back-menu { padding-inline: 8px; }
}
