:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --ink: #25302c;
  --muted: #646b62;
  --line: #dcded5;
  --blue: #294dba;
  --green: #dce8d5;
  --warm: #f2e9d2;
  --night: #e3e6f0;
  --white: #fffefa;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button,
input,
select,
textarea {
  min-height: 44px;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2,
h3 {
  font-weight: 550;
}
button {
  touch-action: manipulation;
}
.shell {
  max-width: 1192px;
  padding: 0 40px;
  margin: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.wordmark {
  font-size: 31px;
  letter-spacing: -1.8px;
  font-weight: 650;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.wordmark svg {
  width: 43px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}
.wordmark-dot {
  color: var(--blue);
  margin-left: -12px;
}
.tool-nav {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}
.tool-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.tool-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}
h1 {
  font-size: 21px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.planner {
  border: 1px solid #d5d8ce;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 5px 0 #e9e9e0;
  overflow: hidden;
  scroll-margin-top: 16px;
}
.planner-heading {
  padding: 16px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.planner-heading .button {
  flex-shrink: 0;
}
.toolbar {
  display: flex;
  align-items: end;
  gap: 18px;
  padding: 20px 30px;
  background: #efefe8;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field > span {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #bec5b8;
  background: var(--white);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 16px;
  min-width: 0;
}
select {
  padding-right: 28px;
}
input[type="date"] {
  min-width: 170px;
}
.date-field {
  flex: 1;
  max-width: 270px;
}
.format-toggle {
  font-size: 12px;
  margin-left: auto;
  border: 1px solid #a8b2a3;
  padding: 10px 12px;
  border-radius: 6px;
  background: transparent;
  white-space: nowrap;
}
.format-toggle[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.cities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 30px 0;
}
.city {
  padding: 0 22px 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.city:nth-child(3n + 1) {
  padding-left: 0;
}
.city:not(:nth-child(3n + 1)) {
  border-left: 1px solid var(--line);
}
.city:nth-child(n + 4) {
  padding-top: 22px;
}
.city-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.city-name {
  font-size: 17px;
  letter-spacing: -0.4px;
  overflow-wrap: anywhere;
}
.city-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  overflow-wrap: anywhere;
}
.remove-city {
  width: 44px;
  height: 44px;
  font-size: 23px;
  color: var(--muted);
  background: transparent;
  margin: -6px -12px -6px 0;
  flex-shrink: 0;
}
.remove-city:hover {
  color: #9c3728;
}
.city-clock {
  font-size: 43px;
  font-weight: 450;
  letter-spacing: -1.7px;
  font-variant-numeric: tabular-nums;
  margin: 12px 0 0;
  line-height: 1.2;
}
.city-clock .meridiem {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
  color: var(--muted);
}
.city-date {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.clock-change {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  background: var(--warm);
  border-radius: 5px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}
.city-fit {
  font-size: 11px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #3d6040;
}
.city-fit.outside-fit {
  color: #825e25;
}
.city-fit i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.hours-button {
  display: block;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  padding: 5px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}
.home-button {
  background: transparent;
  font-size: 10px;
  color: var(--muted);
  padding: 2px 0;
  min-height: 30px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-badge {
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--blue);
  font-weight: 650;
  display: inline-block;
  padding-top: 6px;
  min-height: 30px;
}
.city-limit {
  padding: 12px 30px 20px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  min-height: 44px;
  transition: background 0.15s;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #203f9f;
}
.secondary {
  background: transparent;
  border-color: #bfc6b8;
}
.secondary:hover {
  background: #eeeee7;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
}
.timeline-heading {
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.timeline-heading h2,
.suggestion-heading h2,
h3 {
  font-size: 14px;
  letter-spacing: -0.15px;
}
.legend {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
}
.legend span {
  display: flex;
  gap: 5px;
  align-items: center;
}
.legend i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  border: 1px solid #0001;
}
.preferred {
  background: var(--green);
}
.outside {
  background: var(--warm);
}
.night {
  background: var(--night);
}
.timeline-help {
  padding: 7px 30px 14px;
  font-size: 11px;
}
.timeline-scroll {
  overflow-x: auto;
  margin-inline: 30px;
  padding-bottom: 10px;
  /* Keep focused hours clear of the pinned city column. */
  scroll-padding-inline: 112px 4px;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.timeline {
  min-width: 900px;
}
.timeline-row {
  display: flex;
  gap: 2px;
  margin-bottom: 5px;
  align-items: center;
}
.timeline-city {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--white);
  min-height: 44px;
  align-content: center;
  font-size: 11px;
  flex: 0 0 106px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-right: 8px;
}
.hour-cell {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border-radius: 3px;
  font:
    10px/1.2 ui-monospace,
    monospace;
  color: #475046;
}
.hour-cell span {
  display: block;
  font-size: 8px;
  line-height: 1.6;
}
.hour-cell.selected {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  color: #193c9b;
  font-weight: 700;
  background: #dee6ff;
}
.hour-cell:focus-visible {
  outline: 3px solid var(--blue);
  z-index: 1;
}
.selection-summary {
  margin: 20px 30px 22px;
  background: #edf2e8;
  border: 1px solid #d9e2d2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: 7px;
}
.selection-summary.mixed {
  background: #f8f0df;
  border-color: #e7dcc1;
}
.fit-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 14px;
  border: 1px solid #97a68b;
  border-radius: 50%;
  flex-shrink: 0;
}
#fit-title {
  font-size: 13px;
  font-weight: 600;
}
#fit-detail {
  font-size: 11px;
  margin-top: 2px;
}
.suggestion-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
}
.suggestion-heading .muted {
  font-size: 10px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 12px 30px 28px;
}
.suggestion {
  min-width: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 13px;
  text-align: left;
}
.suggestion:hover {
  border-color: var(--blue);
  background: #f1f4fb;
}
.suggestion strong {
  display: block;
  font-size: 15px;
  font-weight: 550;
}
.suggestion small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
}
.suggestion.active {
  border-color: var(--blue);
  background: #f1f4fb;
}
.share-bar {
  border-top: 1px solid var(--line);
  padding: 18px 30px;
  display: flex;
  justify-content: flex-end;
}
.share-buttons {
  display: flex;
  gap: 8px;
}
.storage-line {
  background: #f6f6f0;
  padding: 9px 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid #e6e7df;
}
.text-button {
  background: transparent;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
  min-height: 30px;
}
.help {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.help summary {
  width: fit-content;
  cursor: pointer;
  min-height: 44px;
  align-content: center;
}
#help-content {
  max-width: 760px;
  padding: 8px 0 24px;
  scroll-margin-top: 20px;
}
.help h2 {
  color: var(--ink);
  font-size: 14px;
  margin: 16px 0 5px;
}
.help p {
  line-height: 1.8;
}
.footer {
  padding: 16px 0 72px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
}
.footer a {
  text-decoration: none;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 12px;
  background: var(--white);
}
.skip:focus {
  top: 12px;
}
.notice {
  padding: 13px 18px;
  margin: 0 30px 20px;
  background: #edf1fc;
  color: #233d7e;
  border-radius: 6px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.error {
  font-size: 13px;
  color: #9e3028;
  margin: 12px 30px;
}
.repeat-choice {
  display: block;
  font-size: 12px;
  margin: 12px 30px;
}
.repeat-choice select {
  margin-top: 7px;
  max-width: 340px;
  display: block;
}
#load-status {
  padding: 0 30px 20px;
}
dialog {
  border: 1px solid #d3d7ce;
  background: var(--white);
  color: var(--ink);
  border-radius: 14px;
  padding: 26px;
  max-width: 490px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 0 18px 90px #172b3540;
}
dialog::backdrop {
  background: #24302966;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.dialog-head h2 {
  font-family: Georgia, serif;
  font-size: 29px;
  letter-spacing: -0.8px;
  font-weight: 400;
}
.close-button {
  width: 44px;
  flex-shrink: 0;
  font-size: 27px;
  background: transparent;
  color: var(--muted);
}
dialog .field {
  margin-top: 18px;
}
dialog .muted {
  font-size: 12px;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.city-results {
  max-height: 42dvh;
  overflow-y: auto;
  margin-top: 8px;
}
.city-result {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 7px;
  text-align: left;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.city-result:hover:not(:disabled) {
  background: #f1f3ec;
}
.city-result strong {
  font-weight: 550;
  font-size: 14px;
}
.city-result small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.city-result > span:last-child {
  font-size: 12px;
  flex-shrink: 0;
}
#search-count {
  margin-top: 12px;
}
.hours-fields {
  display: flex;
  gap: 16px;
}
.hours-fields .field {
  flex: 1;
}
.hours-fields + p {
  margin-top: 16px;
}
#hours-error {
  margin: 12px 0;
}
#share-url {
  font-size: 13px;
}
textarea {
  resize: vertical;
  font-size: 13px;
  line-height: 1.65;
}
#share-status {
  margin-top: 12px;
  min-height: 20px;
}
.small {
  font-size: 10px !important;
  margin-top: 15px;
}
@media (min-width: 1200px) {
  .timeline {
    min-width: 0;
  }
}
@media (max-width: 900px) {
  .shell {
    padding: 0 24px;
  }
  .toolbar {
    gap: 10px;
  }
  .cities {
    margin-inline: 22px;
  }
  .planner-heading,
  .toolbar,
  .share-bar {
    padding-inline: 22px;
  }
  .city {
    padding-inline: 16px;
  }
  .city-clock {
    font-size: 36px;
  }
  .share-bar {
    align-items: flex-start;
    flex-direction: column;
  }
  .share-buttons {
    width: 100%;
  }
  .share-buttons .button {
    flex: 1;
  }
  .legend {
    gap: 8px;
  }
  .suggestion-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .suggestion small {
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .tool-nav {
    gap: 14px;
    font-size: 12px;
  }
  .planner-heading h1 {
    font-size: 17px;
  }
  .planner-heading .button {
    padding: 8px 10px;
    font-size: 12px;
    gap: 3px;
  }
  .city-limit {
    padding: 10px 17px 12px;
    font-size: 10px;
  }
  .shell {
    padding: 0 16px;
  }
  .site-header {
    height: 64px;
  }
  .wordmark {
    font-size: 27px;
    gap: 9px;
  }
  .wordmark svg {
    width: 35px;
  }
  .planner {
    border-radius: 11px;
  }
  .planner-heading {
    padding: 12px 17px;
  }
  .toolbar {
    padding: 17px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 14px 12px;
  }
  .date-field {
    max-width: none;
  }
  .field > span {
    font-size: 10px;
  }
  input[type="date"] {
    min-width: 0;
    min-height: 46px;
  }
  .toolbar input,
  .toolbar select {
    padding-inline: 9px;
  }
  .format-toggle {
    width: 100%;
    height: 46px;
    align-self: end;
  }
  .cities {
    grid-template-columns: 1fr;
    margin: 20px 17px 0;
  }
  .city,
  .city:nth-child(3n + 1),
  .city:nth-child(n + 4) {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0 12px;
  }
  .city:first-child {
    padding-top: 0;
  }
  .city:not(:nth-child(3n + 1)) {
    border-left: 0;
  }
  .city-head {
    grid-column: 1;
  }
  .city-head .remove-city {
    margin-right: 0;
  }
  .city-clock {
    grid-row: 1/3;
    grid-column: 2;
    text-align: right;
    font-size: 36px;
    align-self: center;
    margin: 0;
    white-space: nowrap;
  }
  .city-clock .meridiem {
    font-size: 12px;
  }
  .city-meta {
    grid-column: 1;
    font-size: 9px;
  }
  .city-date {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
    align-self: center;
    font-size: 10px;
    margin: 0;
  }
  .city-fit {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
    margin-top: 5px;
  }
  .clock-change {
    grid-column: 1 / -1;
    grid-row: 5;
  }
  .hours-button {
    grid-column: 2;
    grid-row: 4;
    text-align: right;
    font-size: 10px;
    min-height: 36px;
  }
  .home-button,
  .home-badge {
    grid-column: 1;
    grid-row: 4;
    text-align: left;
    align-self: center;
    width: fit-content;
  }
  .home-button {
    min-height: 36px;
  }
  .home-badge {
    font-size: 8px;
    min-height: auto;
    padding-top: 0;
  }
  .city-name {
    font-size: 16px;
  }
  .remove-city {
    width: 44px;
    min-height: 44px;
    height: 44px;
    margin-left: 0;
    font-size: 21px;
  }
  .timeline-heading {
    padding: 10px 17px 0;
    display: block;
  }
  .legend {
    margin-top: 10px;
    font-size: 9px;
  }
  .timeline-help {
    padding: 9px 17px 12px;
    font-size: 10px;
  }
  .timeline-scroll {
    margin-inline: 17px;
  }
  .timeline {
    min-width: 100%;
    width: max-content;
  }
  .hour-cell {
    flex: 0 0 auto;
    width: 44px;
  }
  .selection-summary {
    margin: 18px 17px;
  }
  .suggestion-heading {
    padding: 0 17px;
  }
  .suggestions {
    margin: 12px 17px 22px;
    grid-template-columns: 1fr;
  }
  .suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
  }
  .suggestion strong {
    font-size: 14px;
  }
  .suggestion small {
    text-align: right;
    margin: 0;
  }
  .share-bar {
    padding: 20px 17px;
  }
  .share-buttons {
    flex-direction: column;
  }
  .storage-line {
    padding-inline: 17px;
    font-size: 9px;
  }
  .text-button {
    font-size: 9px;
  }
  .footer {
    flex-wrap: wrap;
    font-size: 10px;
    padding-bottom: 90px;
  }
  .notice {
    margin-inline: 17px;
    font-size: 12px;
  }
  .error,
  .repeat-choice {
    margin-inline: 17px;
  }
  dialog {
    padding: 20px;
  }
  .dialog-head h2 {
    font-size: 27px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .site-header,
  .toolbar,
  .timeline-heading,
  .timeline-help,
  .timeline-scroll,
  .suggestion-heading,
  .suggestions,
  .share-bar,
  .storage-line,
  .help,
  .footer,
  .remove-city,
  .hours-button,
  .home-button,
  dialog,
  .notice {
    display: none !important;
  }
  .shell {
    padding: 0;
    max-width: none;
  }
  .planner {
    border: 0;
    box-shadow: none;
  }
  .cities {
    grid-template-columns: repeat(3, 1fr);
  }
  .city {
    display: block;
    padding: 20px !important;
  }
  .selection-summary {
    border: 1px solid #888;
  }
  .city-clock {
    font-size: 30px;
    text-align: left;
  }
  .city-date {
    text-align: left;
  }
  body {
    background: white;
  }
}
