:root {
  --kiln-accent: #1a1a1a;
  --kiln-text: #14110e;
  --kiln-bg: #fcfcfa;
  --kiln-muted: #7a756c;
  --kiln-border: #e6e3dc;
  --kiln-font-heading: "Newsreader", Georgia, "Times New Roman", serif;
  --kiln-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heimi-ink: #14110e;
  --heimi-paper: #fcfcfa;
  --heimi-muted: #7a756c;
  --heimi-line: #e6e3dc;
  --heimi-serif: "Newsreader", Georgia, serif;
  --heimi-sans: "Inter", system-ui, sans-serif;
  --heimi-header-h: 56px;
}

html {
  -webkit-text-size-adjust: 100%;
}

.kiln-header {
  position: sticky;
  top: 0;
  z-index: 1100;
}

.heimi-auth {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-right: clamp(1rem, 4vw, 1.75rem);
  font-size: 0.85rem;
}

.heimi-auth__me {
  color: var(--heimi-muted, #7a756c);
}

.heimi-auth__link {
  color: var(--kiln-accent, #1a1a1a);
  text-decoration: none;
  font-weight: 600;
}

.heimi-auth__link:hover {
  text-decoration: underline;
}

.heimi-auth__login {
  padding: 0.35rem 0.95rem;
  border: 1px solid currentColor;
  border-radius: 20px;
}

.heimi-auth__login:hover {
  text-decoration: none;
  background: var(--kiln-accent, #1a1a1a);
  color: #fff;
}

.heimi-new {
  position: relative;
}

.heimi-new__btn {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  background: var(--kiln-accent, #1a1a1a);
  color: #fff;
  font-weight: 600;
}

.heimi-new__btn::-webkit-details-marker {
  display: none;
}

.heimi-new__btn:hover {
  opacity: 0.9;
}

.heimi-new__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  min-width: 140px;
  background: #fff;
  overflow: hidden;
  border: 1px solid var(--heimi-line, #e6e3dc);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.heimi-new__menu a {
  display: block;
  padding: 0.55rem 0.95rem;
  color: var(--heimi-ink, #14110e);
  text-decoration: none;
  font-weight: 500;
}

.heimi-new__menu a:hover {
  background: #f6f7f7;
}

@media (max-width: 640px) {
  .heimi-auth {
    gap: 0.6rem;
    padding-right: 0.9rem;
    font-size: 0.78rem;
  }
  .heimi-auth__me {
    display: none;
  }
}
body {
  background: var(--kiln-bg);
  color: var(--kiln-text);
  font-family: var(--kiln-font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
  font-family: var(--kiln-font-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--heimi-ink);
}

a {
  color: var(--kiln-accent);
  text-underline-offset: 2px;
}

.heimi-icon {
  display: inline-block;
  vertical-align: -0.15em;
  flex: 0 0 auto;
}

.heimi-leg {
  background: none;
  border: 0;
}

.heimi-leg svg {
  display: block;
  width: 24px;
  height: 24px;
  padding: 5px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 50%;
  color: var(--kiln-accent, #1a1a1a);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.heimi-now {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
  font-family: var(--heimi-sans, sans-serif);
  font-size: 0.62em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: #d64545;
  border-radius: 20px;
  padding: 0.15em 0.6em;
}

@keyframes heimi-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0.6);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(214, 69, 69, 0);
  }
}
@keyframes heimi-ping {
  0% {
    box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.85);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(214, 69, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 69, 69, 0);
  }
}
.heimi-map-hint {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 17, 14, 0.5);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}

.heimi-map-hint.is-visible {
  opacity: 1;
}

.kiln-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.heimi-main--trip,
.heimi-main--full {
  width: 100%;
}

.heimi-main--step {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  min-height: 60vh;
}

.heimi-step__card,
.heimi-trips__card {
  border-color: var(--heimi-line);
}