html, body {
  margin: 0;
  min-height: 100%;
  background: #0c0d11;
  color: #f2f3f6;
  font-family: system-ui, ui-sans-serif, sans-serif;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100dvh;
}

#app {
  box-sizing: border-box;
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
  display: grid;
  gap: 16px;
  align-content: center;
  min-height: 100dvh;
}

.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;
}

#place-form {
  display: flex;
  gap: 8px;
}

#place,
#place-form button {
  font: inherit;
  font-size: 1rem;
  border: 0;
  min-height: 48px;
}

#place {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  color: inherit;
  border-radius: 999px;
  padding: 12px 18px;
}

#place::placeholder {
  color: rgba(242, 243, 246, 0.42);
}

#place:focus-visible,
#place-form button:focus-visible,
#suggestions button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

#place-form button {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}

#suggestions {
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  display: grid;
  gap: 2px;
}

#suggestions button {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  min-height: 44px;
  cursor: pointer;
}

#suggestions button:hover,
#suggestions button:active {
  background: rgba(255, 255, 255, 0.08);
}

#status,
#date-line,
#polar-note,
#hours,
.muted {
  color: rgba(242, 243, 246, 0.46);
}

#status,
#polar-note,
#place-name,
#date-line {
  margin: 0;
}

#status,
#polar-note {
  font-size: 0.95rem;
  line-height: 1.4;
}

#day {
  display: grid;
  gap: 22px;
}

#day[hidden] {
  display: none;
}

#where {
  display: grid;
  gap: 4px;
}

#place-name {
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

#date-line {
  font-size: 0.92rem;
}

#ribbon-wrap {
  position: relative;
  padding-top: 28px;
}

#ribbon {
  height: 56px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  background: #14161c;
}

#now-mark {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  display: grid;
  justify-items: center;
  pointer-events: none;
  transform: translateX(-50%);
}

#now-mark .now-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2f3f6;
  box-shadow: 0 0 0 4px rgba(242, 243, 246, 0.16);
}

#now-mark .now-label {
  position: absolute;
  top: 0;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 243, 246, 0.72);
  transform: translateY(-1.15rem);
}

#now-mark::after {
  content: "";
  position: absolute;
  top: 22px;
  width: 2px;
  height: 68px;
  background: #f2f3f6;
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(242, 243, 246, 0.45);
}

#hours {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#times {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

#times div {
  display: grid;
  gap: 2px;
  padding: 10px 0;
}

#times dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 243, 246, 0.46);
}

#times dd {
  margin: 0;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

@media (max-width: 560px) {
  #times {
    grid-template-columns: 1fr;
  }
}
