#dlv {
  --paper: #f7f3e9;
  --ink: #183c32;
  --gold: #c7a363;
  --line: #dbdece;
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  font-size: 14px;
  color: var(--ink);
}
#dlv * {
  box-sizing: border-box;
}
#dlv button,
#dlv input,
#dlv textarea {
  font: inherit;
}
#dlv button {
  cursor: pointer;
}
#dlv button:disabled {
  opacity: 0.5;
  cursor: default;
}
#dlv button:focus-visible,
#dlv input:focus-visible,
#dlv textarea:focus-visible {
  outline: 3px solid #c9a35e;
  outline-offset: 3px;
}
#dlv [hidden] {
  display: none !important;
}
#dlv-launch {
  position: fixed;
  right: 18px;
  top: calc(20px + env(safe-area-inset-top));
  z-index: 70;
  border: 1px solid #c5af78;
  border-radius: 30px;
  background: #173c32ed;
  color: #fff4d8;
  padding: 12px 19px;
  box-shadow: 0 5px 20px #0002;
  display: flex;
  gap: 8px;
  align-items: center;
}
#dlv-launch:hover {
  background: #225343;
}
#dlv-panel {
  position: fixed;
  inset: 70px 18px auto auto;
  margin: 0;
  width: 430px;
  max-width: calc(100vw - 28px);
  height: min(760px, calc(100dvh - 95px));
  max-height: calc(100dvh - 95px);
  padding: 0;
  border: 1px solid #d2c49e;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 24px 80px #0005;
  overflow: hidden;
}
#dlv-panel[open] {
  display: flex;
  flex-direction: column;
}
#dlv-panel::backdrop {
  background: #071c1940;
  backdrop-filter: blur(2px);
}
#dlv-panel header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 24px 16px;
  background: #143b31;
  color: #fff5de;
}
#dlv-panel header small {
  font-size: 9px;
  letter-spacing: 2px;
  color: #d6be89;
}
#dlv-panel h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 5px 0 0;
}
#dlv-close {
  background: #ffffff12;
  border: 1px solid #ffffff30;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 25px !important;
  flex: none;
}
#dlv-panel nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex: none;
  padding: 10px 14px 0;
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
#dlv-panel nav button {
  border: 0;
  background: none;
  color: #6b7569;
  white-space: nowrap;
  font-size: 12px;
  padding: 10px 8px 12px;
  border-bottom: 3px solid transparent;
}
#dlv-panel nav [aria-current="page"] {
  color: #173c32;
  border-bottom-color: var(--gold);
  font-weight: 600;
}
#dlv-body {
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  padding: 20px 22px 28px;
  scrollbar-width: thin;
}
#dlv-panel footer {
  flex: none;
  font-size: 10px;
  color: #7c8273;
  text-align: center;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
}
.dlv-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #244f40, #12352e);
  border-radius: 15px;
  padding: 25px 23px;
  color: #f8f0db;
  margin-bottom: 20px;
}
.dlv-hero h3 {
  position: relative;
  z-index: 1;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin: 16px 0 12px;
  font-weight: 550;
}
.dlv-hero p {
  position: relative;
  z-index: 1;
  color: #d2ddce;
  font-size: 12px;
  line-height: 1.8;
  max-width: 270px;
}
.dlv-kicker {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8a7145;
  font-weight: 600;
}
.dlv-hero .dlv-kicker {
  color: #e6c98e;
  font-size: 8px;
}
.dlv-hero-mark {
  position: absolute;
  right: -10px;
  top: 15px;
  font-size: 160px;
  color: #cba86822;
  line-height: 1;
}
.dlv-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px;
  background: #fffdf7;
  margin: 14px 0;
}
.dlv-card h3 {
  font-size: 16px;
  margin: 0 0 10px;
  line-height: 1.45;
}
.dlv-card p,
#dlv-body > p {
  font-size: 12px;
  line-height: 1.9;
  margin: 10px 0 14px;
}
.dlv-card small {
  font-size: 10px;
  color: #6f7869;
}
.dlv-heading {
  font-size: 25px;
  line-height: 1.3;
  font-weight: 550;
  letter-spacing: -0.6px;
  margin: 12px 0 20px;
}
.dlv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  margin: 5px 5px 5px 0;
  border: 1px solid #214f3e;
  border-radius: 9px;
  background: #214f3e;
  color: #fffdf2;
  font-size: 12px !important;
  line-height: 1.5;
  text-align: left;
  max-width: 100%;
  word-break: break-word;
}
.dlv-btn:hover {
  filter: brightness(1.08);
}
.dlv-btn.secondary {
  background: transparent;
  color: #214f3e;
  border-color: #cbd5c4;
}
.dlv-btn.text {
  background: transparent;
  border-color: transparent;
  color: #687860;
  font-size: 11px !important;
  padding: 7px 3px;
}
.dlv-btn.danger {
  background: #fff0e9;
  color: #853f32;
  border-color: #e0b7a6;
}
.dlv-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #7e846e;
  margin: 18px 0 10px;
}
.dlv-note {
  font-size: 10px !important;
  color: #74806e;
  line-height: 1.8 !important;
}
.dlv-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.dlv-steps span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c7cfbe;
  color: #8b957e;
  background: #fffdf7;
}
.dlv-steps span.done {
  background: #214f3e;
  color: white;
  border-color: #214f3e;
}
.dlv-steps span.current {
  border: 2px solid #b49353;
  color: #214f3e;
}
.dlv-steps i {
  height: 1px;
  flex: 1;
  background: #d0d7c7;
}
.dlv-distance {
  display: block;
  color: #8b7346;
  font-size: 11px;
  margin: 9px 0;
}
.dlv-checkin {
  border-top: 1px solid var(--line);
  margin-top: 15px;
  padding-top: 16px;
}
.dlv-checkin strong {
  font-size: 13px;
  line-height: 1.7;
}
.dlv-answers {
  display: grid;
  margin-top: 12px;
}
.dlv-answers .dlv-btn {
  text-align: left;
  justify-content: start;
}
.dlv-passport {
  border: 1px solid #c8b78e;
  background: linear-gradient(120deg, #eae4cf, #fff9e6);
  padding: 24px 20px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.dlv-passport h3 {
  font-size: 21px;
  max-width: 230px;
  margin: 17px 0 8px;
}
.dlv-passport p {
  font-size: 11px;
}
.dlv-seal {
  position: absolute;
  right: 14px;
  top: 27px;
  border: 2px solid #b18f4f;
  color: #9d7d3f;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  transform: rotate(12deg);
  opacity: 0.65;
}
.dlv-seal small {
  font-size: 8px;
  letter-spacing: 1px;
}
.dlv-stamp {
  display: inline-block;
  padding: 12px;
  border: 2px dashed #9a7841;
  border-radius: 10px;
  color: #8e6f37;
  transform: rotate(-3deg);
  margin: 12px 0;
  font-size: 20px;
}
.dlv-label {
  display: block;
  font-size: 11px;
  line-height: 1.8;
  margin: 13px 0;
}
.dlv-label input,
.dlv-label textarea {
  display: block;
  background: #fafbf5;
  border: 1px solid #cfd8c6;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  color: #163c31;
  margin-top: 5px;
  min-width: 0;
  font-size: 14px !important;
}
.dlv-checkbox {
  display: flex;
  gap: 8px;
  align-items: start;
  font-size: 11px;
  line-height: 1.9;
  margin: 15px 0;
}
.dlv-checkbox input {
  margin-top: 4px;
  accent-color: #214f3e;
}
.dlv-time {
  font-size: 32px;
  color: #9d7f44;
  font-variant-numeric: tabular-nums;
}
.dlv-guide-avatar {
  height: 88px;
  width: 88px;
  background: radial-gradient(circle at 35% 20%, #eddfaa, #c2d5b1);
  border: 5px solid #fff9e9;
  box-shadow: 0 0 0 1px #c9ccb6;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  margin: 2px 0 20px;
}
.dlv-dialogue {
  background: #e9eedf;
  padding: 20px;
  border-radius: 2px 16px 16px 16px;
  font-size: 14px !important;
  font-style: italic;
}
.dlv-member {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e6e8db;
  padding: 9px 0;
  gap: 12px;
  font-size: 12px;
}
.dlv-member small {
  display: block;
  margin-top: 4px;
}
.dlv-message {
  padding: 10px 0;
  border-bottom: 1px solid #dde2d3;
}
.dlv-message strong {
  font-size: 10px;
  color: #8b754d;
}
.dlv-message p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 4px 0;
  font-size: 12px;
}
.dlv-message .dlv-btn {
  min-height: 24px;
  padding: 0;
  margin: 0 12px 0 0;
  font-size: 9px !important;
}
.dlv-messages {
  max-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
}
.dlv-row {
  display: flex;
  flex-wrap: wrap;
}
#dlv-toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 85px;
  z-index: 300;
  max-width: min(430px, 90vw);
  background: #173c32f5;
  color: #fff6df;
  border-radius: 12px;
  padding: 13px 18px;
  border: 1px solid #b7a16e;
  box-shadow: 0 4px 20px #0003;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.8;
}
#dlv-toast:empty {
  display: none;
}
#dlv-hud {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: calc(75px + env(safe-area-inset-top));
  z-index: 65;
  max-width: calc(100vw - 40px);
  border: 1px solid #c7ad73;
  background: #173c32ed;
  color: #fff4d8;
  border-radius: 25px;
  padding: 10px 17px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dlv-marker {
  position: fixed;
  z-index: 60;
  border: 2px solid #fff6d7;
  background: #b79245;
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -100%) rotate(-45deg);
  box-shadow: 0 3px 15px #0004;
  pointer-events: auto;
  font-weight: bold;
}
#dlv-marker:focus-visible {
  outline: 3px solid #fff;
}
@media (max-width: 600px) {
  #dlv-launch {
    right: 12px;
    top: calc(14px + env(safe-area-inset-top));
    padding: 10px 14px;
    font-size: 12px;
  }
  #dlv-panel {
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    height: min(78dvh, 740px);
    max-height: 90dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #dlv-panel header {
    padding: 18px 20px 14px;
  }
  #dlv-panel h2 {
    font-size: 20px;
  }
  #dlv-panel nav {
    padding-left: 12px;
    padding-right: 12px;
  }
  #dlv-panel nav button {
    font-size: 11px;
    padding: 9px 7px 11px;
  }
  #dlv-body {
    padding: 16px 18px 23px;
  }
  .dlv-hero h3 {
    font-size: 25px;
  }
  .dlv-label input,
  .dlv-label textarea {
    font-size: 16px !important;
  }
  #dlv-hud {
    top: calc(70px + env(safe-area-inset-top));
  }
  #dlv-panel footer {
    font-size: 9px;
    padding: 10px;
  }
  .dlv-card {
    padding: 16px;
  }
  .dlv-heading {
    font-size: 23px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #dlv * {
    scroll-behavior: auto !important;
  }
}
#dlv-panel nav {
  gap: 0;
}
#dlv-panel nav button {
  flex: 1;
  padding-left: 4px;
  padding-right: 4px;
  font-size: 11px;
}
@media (max-width: 600px) {
  #dlv-panel nav button {
    font-size: 10.5px;
  }
}
