:root {
  --rail-w: 72px;
  --rail-bg: #f0f4f9;
  --surface: #fff;
  --ink: #1f1f1f;
  --ink-2: #444746;
  --ink-3: #5e5e5e;
  --rule: #d3dbe5;
  --blue: #0b57d0;
  --teal: #087480;
  --land: #d1f8e1;
  --shadow-chip: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-box: 0 1px 2px rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
  --shadow-ctl: 0 1px 4px -1px rgba(0, 0, 0, 0.3);
  --sans: 'Google Sans', Roboto, Arial, sans-serif;
  --text: Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--land);
}

body {
  font-family: var(--text);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ---- map ------------------------------------------------------------------ */

#map {
  position: fixed;
  inset: 0 0 0 var(--rail-w);
  background: var(--land);
}

.maplibregl-canvas {
  outline: none;
}

.you,
.saved {
  cursor: pointer;
}

/* blue dot */
.you {
  width: 14px;
  height: 14px;
  cursor: pointer;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.you i {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #4285f4;
}

.you::before {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.16);
}

/* heart pin */
.saved {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #e8517a;
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.saved .icon {
  width: 12px;
  height: 12px;
}

/* ---- left rail ------------------------------------------------------------ */

.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--rail-w);
  padding-top: 17px;
  background: var(--rail-bg);
  color: var(--ink-2);
}

.rail-label {
  display: block;
  max-width: 58px;
  overflow: hidden;
  font: 500 12px/16px var(--sans);
  letter-spacing: 0.1px;
  text-align: center;
  text-overflow: ellipsis;
}

.rail-menu {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: background-color 0.15s;
}

.rail-menu:hover {
  background: rgba(31, 31, 31, 0.08);
}

.rail-ask,
.rail-item,
.recent {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.rail-ask {
  margin-top: 15px;
}

.rail-ask-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
  border: 2px solid #5c8ee0;
  border-radius: 15px;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 0 0 3px rgba(92, 142, 224, 0.14);
  transition: box-shadow 0.2s, background-color 0.2s;
}

.rail-ask:hover .rail-ask-btn {
  background: #f5f9ff;
  box-shadow: 0 0 0 4px rgba(92, 142, 224, 0.24);
}

.rail-item {
  margin-top: 28px;
}

.rail-ask + .rail-item {
  margin-top: 29px;
}

.rail-pill {
  display: grid;
  place-items: center;
  width: 56px;
  height: 32px;
  margin-bottom: 4px;
  border-radius: 16px;
  transition: background-color 0.15s;
}

.rail-item:hover .rail-pill {
  background: rgba(31, 31, 31, 0.08);
}

.rail-rule {
  flex: none;
  width: 48px;
  height: 1px;
  margin: 28px 0 0;
  border: 0;
  background: var(--rule);
}

.rail-recents {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 0;
  margin-top: 20px;
  overflow: hidden;
}

.recent {
  margin-bottom: 18px;
}

.recent-thumb,
.recent-more {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 6px;
  border-radius: 8px;
  transition: transform 0.15s, filter 0.15s;
}

.recent-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.recent:hover .recent-thumb {
  filter: brightness(1.06);
  transform: scale(1.04);
}

/* a saved list: stacked card and item count */
.recent--list .recent-thumb {
  margin-bottom: 10px;
}

.recent--list .recent-thumb::after {
  content: '';
  position: absolute;
  inset: 3px -3px -3px 3px;
  border-radius: inherit;
  background: #2b3a55;
}

.recent--list .recent-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent 70%);
}

.recent-thumb b {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  z-index: 3;
  color: #fff;
  font: 500 11px/14px var(--sans);
  text-align: center;
}

.recent-more {
  background: #dde6f0;
  color: var(--ink);
  transition: background-color 0.15s;
}

.recent-more .icon {
  width: 20px;
  height: 20px;
}

.recent:hover .recent-more {
  background: #d0dbe8;
}

.rail-foot {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 11px;
  background: var(--rail-bg);
}

.rail-foot .rail-rule {
  margin-top: 0;
}

.rail-foot .rail-item {
  margin-top: 15px;
}

/* ---- search box ----------------------------------------------------------- */

.omnibox {
  position: fixed;
  top: 20px;
  left: calc(var(--rail-w) + 16px);
  z-index: 4;
  display: flex;
  align-items: center;
  width: 392px;
  height: 48px;
  padding: 0 12px 0 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-box);
  transition: box-shadow 0.2s;
}

.omnibox:focus-within {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 4px 12px 3px rgba(60, 64, 67, 0.16);
}

.omnibox input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 400 15px/24px var(--text);
}

.omnibox input::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.omnibox-btn {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color 0.15s;
}

.omnibox-btn:hover {
  background: rgba(31, 31, 31, 0.08);
}

.omnibox-directions {
  margin-left: 12px;
  color: var(--teal);
}

/* ---- category chips ------------------------------------------------------- */

.chips {
  position: fixed;
  top: 19px;
  right: 230px;
  left: calc(var(--rail-w) + 444px);
  z-index: 3;
  height: 44px;
  pointer-events: none;
}

.chips-scroll {
  display: flex;
  gap: 8px;
  height: 100%;
  padding: 6px 6px;
  overflow-x: auto;
  scrollbar-width: none;
  pointer-events: auto;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

a.chip {
  text-decoration: none;
}

.chip {
  display: flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  color: var(--ink);
  font: 500 14px/20px var(--sans);
  white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.chip .icon {
  width: 18px;
  height: 18px;
}

.chip:hover {
  background: #f2f5f9;
  box-shadow: var(--shadow-box);
}

.chip:active {
  background: #e7ecf2;
}

.chip.is-on,
.chip.is-on:hover,
.chip.is-on:active {
  background: #d3e3fd;
  color: #041e49;
  box-shadow: none;
}

.chips-arrow {
  position: absolute;
  top: 6px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-chip);
  color: var(--ink-2);
  pointer-events: auto;
  transition: background-color 0.15s;
}

.chips-arrow:hover {
  background: #f2f5f9;
}

.chips-arrow .icon {
  width: 20px;
  height: 20px;
}

.chips-prev {
  left: 0;
}

.chips-next {
  right: 0;
}

/* ---- account -------------------------------------------------------------- */

.account {
  position: fixed;
  top: 16px;
  right: 8px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 216px;
}

.account-avatar {
  display: block;
  width: 100%;
  height: 216px;
  padding: 0;
  overflow: hidden;
  border-radius: 44px;
  background: #d5dde8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: box-shadow 0.15s;
}

.account-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.account-avatar:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.34);
}

.account-quote {
  margin: 0;
  padding: 12px 14px 10px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-box);
  color: var(--ink);
  animation: account-quote-in 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.account-quote blockquote,
.account-quote p {
  margin: 0;
}

.account-quote p {
  font: 400 14px/20px var(--sans);
}

.account-quote figcaption {
  margin-top: 8px;
  color: var(--ink-3);
  font: 400 12px/16px var(--text);
}

@keyframes account-quote-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-quote {
    animation: none;
  }
}

/* ---- layers --------------------------------------------------------------- */

.layers {
  position: fixed;
  bottom: 16px;
  left: calc(var(--rail-w) + 22px);
  z-index: 3;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #24331f;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: box-shadow 0.15s;
}

.layers:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.layers img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.layers:hover img {
  transform: scale(1.06);
}

.layers span {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 18px 6px 5px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62), transparent);
  font: 500 12px/16px var(--sans);
}

.layers .icon {
  width: 16px;
  height: 16px;
}

/* ---- zoom, locate, imagery ------------------------------------------------ */

.controls {
  position: fixed;
  right: 10px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  pointer-events: none;
}

.ctl {
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-ctl);
  color: #555;
  pointer-events: auto;
}

.ctl button,
button.ctl {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  transition: color 0.15s, background-color 0.15s;
}

.ctl button:hover,
button.ctl:hover {
  color: #111;
}

.ctl button:disabled {
  color: #c4c7c5;
  cursor: default;
}

.ctl .icon {
  width: 18px;
  height: 18px;
}

.ctl-zoom button:first-child {
  position: relative;
}

.ctl-zoom button:first-child::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 0;
  left: 5px;
  height: 1px;
  background: #e6e6e6;
}

.ctl-zoom .icon {
  width: 20px;
  height: 20px;
}

.ctl-views {
  display: flex;
  align-items: center;
  height: 30px;
}

.ctl-views .views-pegman {
  width: 32px;
  height: 30px;
  border-right: 1px solid #e6e6e6;
}

.views-pegman .icon {
  width: 22px;
  height: 22px;
}

.views-thumbs {
  display: flex;
  gap: 2px;
  padding: 0 4px 0 9px;
}

.views-thumbs img {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 2px;
  object-fit: cover;
}

.ctl-views .views-more {
  width: 38px;
  height: 30px;
}

/* ---- wordmark and footer -------------------------------------------------- */

.wordmark {
  position: fixed;
  bottom: 15px;
  left: calc(var(--rail-w) + (100% - var(--rail-w)) / 2);
  z-index: 2;
  color: rgba(95, 99, 104, 0.82);
  font: 500 17px/20px var(--sans);
  letter-spacing: -0.2px;
  white-space: nowrap;
  text-shadow:
    0 0 1px #fff,
    1px 0 0 #fff,
    -1px 0 0 #fff,
    0 1px 0 #fff,
    0 -1px 0 #fff;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
}

.foot {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 14px;
  padding: 0 6px 0 7px;
  background: rgba(255, 255, 255, 0.7);
  color: rgba(0, 0, 0, 0.87);
  font: 400 10px/14px var(--text);
  white-space: nowrap;
}

.foot a {
  color: inherit;
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.scale {
  display: flex;
  align-items: center;
  gap: 4px;
}

#scale-bar {
  height: 5px;
  margin-top: 3px;
  border: solid rgba(0, 0, 0, 0.72);
  border-width: 0 1px 1px;
  transition: width 0.15s;
}

/* ---- small screens -------------------------------------------------------- */

/* ---- story pins and the place card --------------------------------------- */

.pin {
  --pin: #1a73e8;
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: auto;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #202124;
  box-shadow: none;
  opacity: 0;
}

.pin-mark {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pin);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.pin-name {
  padding: 3px 8px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-chip);
  color: #202124;
  font: 500 13px/16px var(--sans);
  white-space: nowrap;
}

.pin.shown {
  opacity: 1;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pin svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.pin:hover .pin-mark {
  transform: scale(1.12);
}

.pin.is-on .pin-mark,
.pin.is-on:hover .pin-mark {
  transform: scale(1.28);
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pin);
}

.pin.is-on .pin-name {
  box-shadow: 0 0 0 2px var(--pin);
}

.pin-pulse .pin-mark::after {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid var(--pin);
  border-radius: 50%;
  animation: pin-ring 2.6s ease-out infinite;
  pointer-events: none;
}

.results {
  position: fixed;
  right: 76px;
  bottom: 20px;
  left: calc(var(--rail-w) + 112px);
  z-index: 4;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.results::-webkit-scrollbar {
  display: none;
}

.results.panel-open {
  left: calc(var(--rail-w) + 432px);
}

body:has(#results:not([hidden])) .wordmark {
  opacity: 0;
}

.result {
  flex: 0 0 212px;
  scroll-snap-align: start;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-box);
  color: #202124;
  text-align: left;
}

.result img {
  display: block;
  width: 100%;
  height: 118px;
  object-fit: cover;
  background: #e8eaed;
}

.result strong {
  display: -webkit-box;
  height: 36px;
  margin: 8px 10px 0;
  overflow: hidden;
  font: 500 14px/18px var(--sans);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result span {
  display: block;
  margin: 2px 10px 10px;
  overflow: hidden;
  color: #5f6368;
  font: 400 12px/16px var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result.is-on {
  box-shadow: 0 0 0 2px var(--pin, #1a73e8), var(--shadow-box);
}

.pin-wave .wave,
.pin-swim .wave {
  animation: pin-drift 2.8s ease-in-out infinite;
}

.pin-wave .wave-2,
.pin-swim .wave-2 {
  animation-delay: -1.4s;
}

.pin-book .page {
  transform-origin: 12px 12px;
  animation: pin-page 4.2s ease-in-out infinite;
}

.pin-steam .steam {
  animation: pin-steam 2.6s ease-in-out infinite;
}

.pin-steam .steam-2 {
  animation-delay: -1.3s;
}

.pin-ball .ball {
  animation: pin-hop 1.8s ease-in-out infinite;
}

.pin-run .track {
  stroke-dasharray: 4 3;
  animation: pin-march 1.1s linear infinite;
}

.pin-spark .spark {
  transform-origin: 12px 11px;
  animation: pin-glint 3.2s ease-in-out infinite;
}

@keyframes pin-ring {
  0% { transform: scale(0.86); opacity: 0.45; }
  100% { transform: scale(1.55); opacity: 0; }
}

@keyframes pin-drift {
  50% { transform: translateX(-1.5px); }
}

@keyframes pin-page {
  0%, 72% { transform: rotateY(0); }
  86% { transform: rotateY(-48deg); }
  100% { transform: rotateY(0); }
}

@keyframes pin-steam {
  0% { opacity: 0; transform: translateY(2px); }
  35% { opacity: 0.85; }
  100% { opacity: 0; transform: translateY(-5px); }
}

@keyframes pin-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes pin-march {
  to { stroke-dashoffset: -14; }
}

@keyframes pin-glint {
  0%, 100% { opacity: 0.55; transform: rotate(0deg) scale(1); }
  50% { opacity: 1; transform: rotate(16deg) scale(1.06); }
}

.work {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: auto;
  background: #fff;
  color: #1c1c1c;
  user-select: text;
}

.work-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 36px 0;
  font: 400 17px/1 Georgia, "Iowan Old Style", Palatino, serif;
}

.work-nav a {
  color: #8a8a8a;
  font: inherit;
  text-decoration: none;
}

.work-nav a:hover {
  color: #1c1c1c;
}

html:has(body.work-page),
body.work-page {
  height: auto;
  min-height: 100%;
  overflow: visible;
  background: #fff;
}

body.work-page .work {
  position: static;
  inset: auto;
  overflow: visible;
}

.work-case {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px 72px;
}

.work-kicker {
  margin: 18px 0 0;
  color: #8a8a8a;
  font: 400 14px/1.4 var(--text);
}

.work-case h2 {
  margin: 10px 0 0;
  font: 400 52px/1.05 Georgia, "Iowan Old Style", Palatino, serif;
}

.work-question {
  margin: 14px 0 28px;
  color: #3a3a3a;
  font: 400 20px/1.45 var(--text);
}

.work-hero {
  margin: 0;
}

.work-hero img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ece7df;
  border-radius: 12px;
}

.work-case .work-body {
  margin: 22px 0 0;
  color: #333;
  font: 400 17px/1.65 var(--text);
}

.work-case h3 {
  margin: 40px 0 0;
  font: 400 28px/1.2 Georgia, "Iowan Old Style", Palatino, serif;
}

.work-case h3 + .work-body {
  margin-top: 12px;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
}

.work-link {
  border-bottom: 1px solid #1c1c1c;
  color: #1c1c1c;
  font: 400 15px/1.4 var(--text);
  text-decoration: none;
}

.work-link:hover {
  color: #555;
}

.plane {
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.plane span,
.plane svg {
  display: block;
  width: 26px;
  height: 26px;
}

.story {
  position: fixed;
  top: 80px;
  bottom: 108px;
  left: calc(var(--rail-w) + 16px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  width: 392px;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-box);
  color: #1f1f1f;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 200ms ease;
}

.story.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.story-bar {
  display: flex;
  flex: none;
  gap: 4px;
  align-items: flex-start;
  padding: 14px 12px 8px 14px;
}

.story-head {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.story-head p,
.story-head h2 {
  margin: 0;
}

#story-kicker {
  color: #70757a;
  font: 500 12px/16px var(--sans);
}

#story-title {
  margin-top: 2px;
  font: 500 22px/1.25 var(--sans);
  letter-spacing: 0;
}

#story-place {
  margin-top: 4px;
  color: #5f6368;
  font: 400 13px/18px var(--text);
}

#story-back,
#story-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #444746;
  font: 400 24px/1 var(--sans);
}

#story-back:hover,
#story-close:hover {
  background: rgba(60, 64, 67, 0.08);
}

.story-body {
  flex: 1;
  min-height: 0;
  padding: 4px 20px 20px;
  overflow: auto;
  user-select: text;
}

.story-body p {
  margin: 0 0 12px;
  color: #3c4043;
  font: 400 14.5px/1.55 var(--text);
}

.story-body p:first-child {
  color: #1f1f1f;
}

.story-books,
.story-notes {
  margin: 4px 0 14px;
  padding: 0;
  list-style: none;
}

.story-books li,
.story-notes li {
  margin: 0 0 10px;
  color: #3c4043;
  font: 400 14px/1.45 var(--text);
}

.story-books cite {
  display: block;
  color: #1f1f1f;
  font-style: italic;
}

.story-notes li {
  padding-left: 12px;
  border-left: 2px solid #d3e3fd;
}

.story-places {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 16px;
}

.story-jump,
.story-action {
  height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  font: 500 13px/20px var(--sans);
}

.story-jump {
  background: #f1f3f4;
  color: #3c4043;
}

.story-jump.is-on,
.story-jump:hover,
.story-action:hover {
  background: #d3e3fd;
  color: #041e49;
}

.story-action {
  margin: 0 0 14px;
  background: #e8f0fe;
  color: #1a73e8;
}

.story-text-link {
  display: block;
  margin: 4px 0 8px;
  color: #1a73e8;
  font: 500 14px/20px var(--sans);
  text-align: left;
}

.story-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 8px;
  border-radius: 10px;
  text-align: left;
}

.story-row:hover {
  background: #f1f3f4;
}

.story-row strong {
  font: 500 15px/20px var(--sans);
}

.story-row em {
  color: #5f6368;
  font: 400 13px/18px var(--text);
  font-style: normal;
}

.suggest {
  position: fixed;
  top: 76px;
  left: calc(var(--rail-w) + 16px);
  z-index: 5;
  width: 392px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-box);
}

.suggest button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
}

.suggest button:hover {
  background: #f1f3f4;
}

.suggest strong {
  font: 500 14px/20px var(--sans);
}

.suggest span,
.suggest-empty {
  color: #5f6368;
  font: 400 12px/16px var(--text);
}

.suggest-empty {
  margin: 0;
  padding: 12px 16px;
}

@media (max-height: 700px) {
  .rail-recents .recent:nth-child(n + 3) {
    display: none;
  }
}

@media (max-height: 560px) {
  .rail-recents {
    visibility: hidden;
  }
}

@media (max-width: 1040px) {
  .account {
    display: none;
  }

  .chips {
    right: 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --rail-w: 0px;
  }

  .rail,
  .ctl-views,
  .wordmark {
    display: none;
  }

  .omnibox {
    top: 8px;
    right: 8px;
    left: 8px;
    width: auto;
  }

  .chips {
    top: 58px;
    right: 0;
    left: 0;
  }

  .work-nav,
  .work-case {
    padding-right: 20px;
    padding-left: 20px;
  }

  .work-case h2 {
    font-size: 36px;
  }

  .chips-scroll {
    padding: 6px 8px;
  }

  .chips-arrow {
    display: none;
  }

  .layers {
    bottom: 22px;
    left: 8px;
    width: 60px;
    height: 60px;
  }

  .layers span {
    justify-content: center;
  }

  .layers .icon {
    display: none;
  }

  .controls {
    right: 8px;
    bottom: 22px;
  }

  .foot {
    gap: 8px;
  }

  .foot > :nth-child(2),
  .foot > :nth-child(3),
  .foot > :nth-child(4) {
    display: none;
  }

  .results,
  .results.panel-open {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .result {
    flex-basis: 168px;
  }

  .result img {
    height: 96px;
  }

  .story {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 58vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(110%);
  }

  .story.open {
    transform: none;
  }

  .suggest {
    top: 60px;
    right: 8px;
    left: 8px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .pin,
  .pin *,
  .plane,
  .story {
    animation: none !important;
  }
}
