.toss-demo {
  --demo-ink: #18211a;
  --demo-muted: #697368;
  --demo-line: #e0e8da;
  --demo-green: #b8e2a7;
  color: var(--demo-ink);
  width: 100%;
  text-align: left;
  border: 1px solid #dce6d6;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 65px -35px #47653b40;
  overflow: hidden;
  isolation: isolate;
}

.toss-demo *, .toss-demo *::before, .toss-demo *::after { box-sizing: border-box; }
.td-toolbar {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 21px;
  background: #f7f9f4;
  border-bottom: 1px solid var(--demo-line);
}
.td-dots { display: flex; gap: 6px; flex: 0 0 auto; }
.td-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d1d8cb; }
.td-address {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid #e5eadf;
  background: #fff;
  border-radius: 7px;
  width: min(380px, 61%);
  font-size: 10px;
  letter-spacing: .01em;
  line-height: 1.3;
  color: #7b8377;
}
.td-address svg { width: 12px; height: 12px; flex: 0 0 auto; }
.td-toolbar-mark { margin-left: auto; color: #4d6643; font-size: 10px; font-weight: 600; letter-spacing: .04em; }
.td-stage {
  position: relative;
  height: 257px;
  overflow: hidden;
  background: radial-gradient(ellipse at 92% 48%, #edf7e7 0, #f7fbf3 28%, #ffffff 62%);
  contain: layout paint;
}
.td-path {
  position: absolute;
  width: 51%;
  height: 125px;
  top: 50px;
  left: 35%;
  overflow: visible;
  opacity: .62;
}
.td-destination {
  position: absolute;
  top: 50%;
  right: 7%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  width: 145px;
  color: #667f58;
}
.td-destination-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #d8e8cd; background: #f1f9eb; }
.td-destination-icon svg { width: 23px; height: 23px; }
.td-destination span { font-size: 12px; line-height: 1.6; }
.td-result {
  position: absolute;
  left: 31px;
  width: min(390px, 47%);
  height: 67px;
  padding: 9px 13px;
  background: #fff;
  border: 1px solid #e4e8e0;
  border-radius: 10px;
  box-shadow: 0 3px 9px #25331c04;
  transform-origin: 36% 51%;
  will-change: transform;
  user-select: none;
}
.td-result:nth-of-type(1) { top: 16px; }
.td-result:nth-of-type(2) { top: 95px; }
.td-result:nth-of-type(3) { top: 174px; }
.td-result-source { display: flex; align-items: center; gap: 6px; font-size: 8px; color: #687063; line-height: 1.2; margin-bottom: 5px; }
.td-result-favicon { width: 13px; height: 13px; border-radius: 50%; display: grid; place-items: center; background: #edf2e8; color: #677a5c; font-size: 8px; font-weight: 700; }
.td-result-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #3b4da0; font-size: 12px; font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.td-result-snippet { color: #7b8176; font-size: 8px; line-height: 1.5; margin: 3px 0 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.td-result-picked { box-shadow: 0 11px 28px -7px #263f2c31; z-index: 3; border-color: #d2dfc7; }
.td-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 25px;
  height: 30px;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(1px 2px 1px #24372020);
  will-change: transform;
}
.td-footer {
  min-height: 36px;
  padding: 7px 15px 7px 21px;
  border-top: 1px solid #e9eee4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
}
.td-demo-label { font-size: 9px; color: #7b8473; display: inline-flex; align-items: center; gap: 7px; line-height: 1.5; letter-spacing: .02em; }
.td-demo-label::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background: #a9c795; }
.td-play-toggle { appearance: none; border: 0; background: transparent; color: #53644b; font: inherit; font-size: 10px; font-weight: 500; padding: 3px 5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; border-radius: 5px; min-height: 22px; }
.td-play-toggle:hover { color: #213b19; background: #f0f7ea; }
.td-play-toggle:focus-visible { outline: 2px solid #5e8748; outline-offset: 3px; }
.td-play-toggle svg { width: 12px; height: 12px; }
.td-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; }

@media (max-width: 700px) {
  .td-stage { height: 237px; }
  .td-result { left: 18px; width: 51%; height: 63px; padding: 8px 10px; }
  .td-result:nth-of-type(1) { top: 14px; }
  .td-result:nth-of-type(2) { top: 87px; }
  .td-result:nth-of-type(3) { top: 160px; }
  .td-result-title { font-size: 11px; }
  .td-destination { right: 5%; width: 125px; }
  .td-destination span { font-size: 11px; }
}
@media (max-width: 480px) {
  .toss-demo { border-radius: 14px; }
  .td-toolbar { height: 36px; padding: 0 12px; gap: 12px; }
  .td-dots { gap: 4px; }
  .td-dots i { width: 5px; height: 5px; }
  .td-address { width: 66%; font-size: 8px; padding: 4px 8px; }
  .td-toolbar-mark { font-size: 8px; }
  .td-stage { height: 201px; }
  .td-result { left: 12px; width: 65%; max-width: 225px; height: 54px; padding: 7px 9px; border-radius: 8px; }
  .td-result:nth-of-type(1) { top: 11px; }
  .td-result:nth-of-type(2) { top: 73px; }
  .td-result:nth-of-type(3) { top: 135px; }
  .td-result-source { font-size: 7px; margin-bottom: 3px; gap: 4px; }
  .td-result-favicon { width: 10px; height: 10px; font-size: 6px; }
  .td-result-title { font-size: 10px; }
  .td-result-snippet { font-size: 7px; margin-top: 2px; }
  .td-destination { right: 12px; width: 66px; gap: 9px; }
  .td-destination-icon { width: 36px; height: 36px; }
  .td-destination-icon svg { width: 18px; height: 18px; }
  .td-destination span { font-size: 8px; line-height: 1.45; }
  .td-path { left: 47%; width: 36%; top: 36px; height: 100px; }
  .td-footer { padding: 7px 9px 7px 12px; }
  .td-demo-label { font-size: 8px; }
  .td-play-toggle { font-size: 9px; }
  .td-cursor { width: 20px; height: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  .td-result, .td-cursor { will-change: auto; }
}
