:root {
  color-scheme: light;
  --page: #f6f5f2;
  --card: #ffffff;
  --panel: #efeeec;
  --ink: #202126;
  --ink-soft: #5d6068;
  --quiet: #92959d;
  --line: #e4e3e0;
  --line-strong: #cbc9c4;
  --accent: #246bc9;
  --accent-rgb: 36, 107, 201;
  --past: rgba(32, 33, 38, 0.13);
  --past-strong: rgba(32, 33, 38, 0.2);
  --slot-off: #ececeb;
  --slot-asleep: #f4f4f3;
  --slot-weekend: #d7d6d2;
  --now: #202126;
  --danger: #bc3c5a;
  --shadow: rgba(31, 32, 35, 0.1);
  --ruler-height: 58px;
  --row-height: 72px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #11131a;
  --card: #181a22;
  --panel: #15171e;
  --ink: #f1f2f5;
  --ink-soft: #b7bac3;
  --quiet: #858b9d;
  --line: #30333d;
  --line-strong: #454956;
  --accent: #49b4ec;
  --accent-rgb: 73, 180, 236;
  --past: rgba(0, 0, 0, 0.32);
  --past-strong: rgba(0, 0, 0, 0.5);
  --slot-off: #2a2d36;
  --slot-asleep: #22252d;
  --slot-weekend: #3a3d47;
  --now: #ffffff;
  --danger: #ee718d;
  --shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
output {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: none;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
.timeline-scroller:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 0 28px;
}

.masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.masthead h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 54px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.masthead p {
  margin: 10px 0 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.025em;
}

.date-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.icon-button,
.text-button,
.date-picker {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 9px;
}

.icon-button {
  width: 36px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px;
}

.icon-button:hover,
.text-button:hover,
.date-picker:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.date-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 138px;
  padding: 0 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
}

.date-picker input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.text-button {
  padding: 0 12px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
}

.now-button {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.28);
}

.planner-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 18px 44px var(--shadow), 0 2px 4px rgba(31, 32, 35, 0.04);
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 0 24px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#visible-range {
  letter-spacing: 0.02em;
  text-transform: none;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 190px minmax(420px, 1fr) 160px;
  margin: 0 14px;
  overflow: hidden;
  border: 1px solid rgba(32, 33, 38, 0.06);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(32, 33, 38, 0.025);
}

.label-column,
.read-column {
  position: relative;
  z-index: 7;
  background: var(--card);
}

.label-column {
  border-right: 0;
}

.read-column {
  border-left: 0;
}

.column-head {
  display: flex;
  align-items: center;
  height: var(--ruler-height);
  padding: 0 18px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.read-head {
  justify-content: flex-end;
}

.city-label-cell,
.city-read-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--row-height);
  padding: 0 18px;
  border-bottom: 0;
}

.city-label-cell:last-child,
.city-read-cell:last-child {
  border-bottom: 0;
}

.city-name-line {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.city-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--city-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--city-color) 12%, transparent);
}

.city-name-line strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 560;
  letter-spacing: -0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.you-tag {
  padding: 2px 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.city-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.city-meta button:first-child {
  padding: 0;
  border-bottom: 1px dotted transparent;
  color: inherit;
}

.city-meta button:first-child:hover {
  border-bottom-color: currentColor;
  color: var(--ink-soft);
}

.remove-city {
  color: var(--quiet);
  font-size: 14px;
  line-height: 1;
}

.remove-city:hover {
  color: var(--danger);
}

.mobile-city-time {
  display: none;
}

.city-read-cell {
  align-items: flex-end;
  text-align: right;
}

.city-read-cell strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.read-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--city-color);
}

.read-state {
  margin-top: 7px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-3 {
  color: var(--city-color);
}

.state-0 {
  color: var(--danger);
}

.state-weekend {
  color: var(--quiet);
}

.timeline-scroller {
  position: relative;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  background: var(--card);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.timeline-scroller::-webkit-scrollbar {
  height: 8px;
}

.timeline-scroller::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 99px;
  background: var(--line-strong);
  background-clip: padding-box;
}

.timeline-canvas {
  position: relative;
  cursor: crosshair;
  touch-action: pan-x;
  user-select: none;
}

.ruler-layer,
.tracks-layer,
.change-layer {
  position: absolute;
  inset: 0;
}

.tracks-layer {
  z-index: 1;
}

.ruler-layer {
  z-index: 2;
  height: var(--ruler-height);
  pointer-events: none;
}

.ruler-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  height: 6px;
  background: var(--line);
}

.ruler-tick.major {
  height: 8px;
}

.ruler-time,
.ruler-date {
  position: absolute;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
}

.ruler-time {
  bottom: 14px;
  transform: translateX(-50%);
  color: var(--quiet);
  font-size: 10px;
}

.ruler-date {
  top: 8px;
  transform: translateX(8px);
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.past-shade {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  border-right: 1px solid var(--past-strong);
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.14) 9px 10px),
    var(--past);
  backdrop-filter: saturate(0.35);
  pointer-events: none;
}

:root[data-theme="dark"] .past-shade {
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, rgba(255, 255, 255, 0.025) 9px 10px),
    var(--past);
}

.past-label {
  position: absolute;
  top: 15px;
  padding-right: 10px;
  transform: translateX(-100%);
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.time-track {
  position: absolute;
  right: 0;
  left: 0;
  height: var(--row-height);
}

.time-slot {
  position: absolute;
  top: 50%;
  height: 28px;
  border-radius: 5px;
  transform: translateY(-50%);
  transition: opacity 120ms ease, filter 120ms ease;
}

.time-slot.tier-3 {
  background: var(--city-color);
}

.time-slot.tier-2 {
  background: var(--city-color);
  opacity: 0.35;
}

.time-slot.tier-1 {
  background: var(--slot-off);
}

.time-slot.tier-0 {
  background: var(--slot-asleep);
}

.time-slot.is-weekend {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 8px,
      color-mix(in srgb, var(--ink) 7%, transparent) 8px 9px
    ),
    var(--slot-weekend);
  opacity: 1;
  filter: saturate(0);
}

.change-layer {
  z-index: 5;
  pointer-events: none;
}

.clock-change-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  border-left: 1px dashed rgba(var(--accent-rgb), 0.48);
}

.clock-change-line span {
  position: absolute;
  top: 40px;
  left: 5px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.selection-band {
  position: absolute;
  z-index: 6;
  top: 42px;
  bottom: 10px;
  min-width: 8px;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: color-mix(in srgb, var(--card) 30%, transparent);
  box-shadow: 0 1px 3px rgba(20, 21, 25, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
}

.selection-band.is-dragging {
  cursor: grabbing;
}

.selection-caption {
  position: absolute;
  top: 6px;
  left: calc(100% + 9px);
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--card);
  box-shadow: 0 2px 7px rgba(20, 21, 25, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}

.selection-resize-handle {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 12px;
  padding: 0;
  cursor: ew-resize;
  touch-action: none;
}

.selection-resize-handle.start {
  left: -7px;
}

.selection-resize-handle.end {
  right: -7px;
}

.selection-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 26px;
  border: 2px solid var(--card);
  border-radius: 99px;
  background: var(--ink);
  box-shadow: 0 1px 2px rgba(20, 21, 25, 0.22);
  transform: translate(-50%, -50%);
}

.selection-resize-handle:focus-visible {
  outline-offset: 1px;
}

.now-line {
  position: absolute;
  z-index: 8;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--now);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card) 70%, transparent);
  pointer-events: none;
}

.now-line::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--now);
  transform: translate(-50%, -50%);
}

.now-line span {
  position: absolute;
  top: 4px;
  left: 8px;
  color: var(--card);
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--now);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-tools {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 24px;
}

.add-city-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.add-city-form input {
  width: 190px;
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.add-city-form input::placeholder {
  color: var(--quiet);
}

.add-city-form input:hover,
.add-city-form input:focus {
  border-color: var(--line-strong);
  background: var(--card);
}

.add-city-form button,
.hours-editor > button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.add-city-form button:hover,
.hours-editor > button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.form-message {
  margin: 0 0 0 12px;
  color: var(--danger);
  font-size: 12px;
}

.hours-editor {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(4, minmax(115px, auto)) auto;
  align-items: end;
  gap: 12px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--card) 46%, transparent);
}

.hours-editor[hidden] {
  display: none;
}

.hours-editor > div {
  display: grid;
  gap: 5px;
}

.hours-editor label {
  display: grid;
  gap: 6px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hours-editor select {
  min-height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--card);
  font-size: 11px;
}

.best-time-finder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
  margin: 0 14px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(32, 33, 38, 0.06);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.finder-copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: -0.012em;
}

.finder-duration {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 67px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--card);
}

.finder-duration:focus-within {
  border-color: var(--accent);
}

.finder-duration input {
  width: 100%;
  height: 100%;
  padding: 0 23px 0 9px;
  border: 0;
  border-radius: inherit;
  color: var(--ink);
  background: transparent;
  appearance: textfield;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.finder-duration input::-webkit-inner-spin-button,
.finder-duration input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.finder-duration input:focus-visible {
  outline: 0;
}

.finder-wheel-mark {
  position: absolute;
  right: 8px;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  pointer-events: none;
}

.find-time-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: var(--card);
  background: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.find-time-button:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.finder-result {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.finder-result:empty {
  display: none;
}

.meeting-panel {
  margin: 0 14px 14px;
  padding: 20px 18px 18px;
  border: 1px solid rgba(32, 33, 38, 0.06);
  border-radius: 16px;
  background: var(--card);
}

.meeting-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
}

.meeting-time-block {
  display: grid;
  gap: 6px;
}

.meeting-time-block strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: -0.025em;
}

.meeting-help {
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.35;
}

.section-label {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.step-controls,
.duration-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-controls button,
.duration-controls button {
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.step-controls button:hover,
.duration-controls button:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.duration-controls .section-label {
  margin-right: 4px;
}

.duration-controls output {
  min-width: 62px;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
}

.meeting-status {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.clock-notes {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.clock-notes:empty {
  display: none;
}

.clock-notes p {
  margin: 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.45;
}

.clock-notes p span {
  margin-right: 6px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alternatives {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
  padding: 12px 24px;
}

.alternatives:empty {
  display: none;
}

.alternative-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alternative-list button {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-align: left;
}

.alternative-list button:hover {
  border-color: var(--accent);
}

.alternative-list strong,
.alternative-list span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.alternative-list strong {
  font-size: 10px;
}

.alternative-list span {
  color: var(--quiet);
  font-size: 9px;
}

.card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 24px 18px;
}

.card-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.card-actions button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 3px 0;
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 9px;
}

.footer-controls {
  display: flex;
  gap: 14px;
}

.footer-controls button {
  color: var(--quiet);
  font-size: 9px;
}

.footer-controls button:hover {
  color: var(--ink);
}

@media (max-width: 980px) {
  .timeline-grid {
    grid-template-columns: 170px minmax(360px, 1fr) 155px;
  }

  .hours-editor {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .hours-editor > div {
    grid-column: 1 / -1;
  }

  .hours-editor > button {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 22px, 720px);
    padding-top: 24px;
  }

  .masthead {
    display: grid;
    align-items: flex-start;
    gap: 20px;
  }

  .date-nav {
    justify-content: flex-start;
  }

  .masthead h1 {
    font-size: 44px;
  }

  .masthead p {
    margin-top: 9px;
    font-size: 11px;
  }

  .timeline-grid {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .read-column {
    display: none;
  }

  .mobile-city-time {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: var(--quiet);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .city-label-cell,
  .column-head {
    padding-right: 11px;
    padding-left: 11px;
  }

  .city-name-line strong {
    font-size: 14px;
  }

  .meeting-row {
    grid-template-columns: 1fr auto;
  }

  .duration-controls {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .masthead {
    display: grid;
    gap: 20px;
  }

  .date-nav {
    justify-content: flex-start;
  }

  .card-heading {
    display: grid;
    gap: 5px;
    padding-top: 11px;
    padding-bottom: 11px;
  }

  .timeline-grid {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .city-meta {
    font-size: 9px;
  }

  .you-tag {
    display: none;
  }

  .city-tools,
  .best-time-finder,
  .meeting-panel,
  .alternatives,
  .card-actions {
    padding-right: 14px;
    padding-left: 14px;
  }

  .meeting-row {
    grid-template-columns: 1fr;
  }

  .best-time-finder {
    grid-template-columns: 1fr;
  }

  .find-time-button {
    justify-self: start;
  }

  .step-controls,
  .duration-controls {
    grid-column: auto;
  }

  .alternatives {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .card-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hours-editor {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
