/* PLACE — js/features/place/*.js, js/pages/place.js  (prefix .pd-)
   Design v2 · Apple-Maps-like place card (sheet + #/place route): rounded hero (photos, or a clean map snippet
   with a solid pin), title + category line, rating stars, open-state pill, address with copy, a grid of round
   tinted action buttons, then white section cards (.card) with small titles: hours · contact · details ·
   weather · location. One column on phones, two when the view is >= 700px wide (container query,
   so the sheet and the page share the same rules). Tokens only. */

.pd {
  container: pd / inline-size;
  display: flex; flex-direction: column; gap: var(--sp-4);
  min-width: 0;
  padding-bottom: var(--sp-2);
}
.pd [hidden] { display: none !important; }

/* ======================= sheet / page chrome ======================= */
.pd-sheet .sheet-body { padding-top: var(--sp-1); }
.pd-sheet .sheet-head h2 { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-2); }
.pd-pagewrap.page { max-width: 1080px; }
.pd-page-head { min-height: 48px; margin-bottom: var(--sp-3); }
.pd-page-eyebrow { overflow-wrap: anywhere; }

/* ======================= hero ======================= */
.pd-hero {
  position: relative;
  height: clamp(150px, 36cqi, 230px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--grad-brand-soft);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  flex: 0 0 auto;
  isolation: isolate;
}
.pd-page .pd-hero { border-radius: var(--r-xl); height: clamp(170px, 34cqi, 300px); }
.pd-hero.has-photos { height: clamp(200px, 50cqi, 320px); }

.pd-map { position: absolute; inset: 0; background: var(--grad-brand-soft); }
.pd-map-canvas { position: absolute; inset: 0; }
.pd-map.has-map .pd-map-canvas { animation: fadeIn 300ms var(--ease); }
.pd-map .maplibregl-ctrl-attrib { font-size: 10px; }

/* solid pin: category-colored circle with a white line icon, white ring and a short pointer */
.pd-pin {
  --pin: var(--primary);
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 46px; height: 46px; margin: -54px 0 0 -23px;
  pointer-events: none;
  animation: pdDrop 380ms var(--ease-bounce) both;
}
.pd-pin-b {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--pin); color: var(--ink-inverse);
  border: 3px solid var(--ink-inverse);
  box-shadow: var(--shadow-2);
}
.pd-pin::after {   /* pointer */
  content: ""; position: absolute; left: 50%; bottom: -6px;
  width: 12px; height: 12px; margin-left: -6px;
  background: var(--pin);
  border-right: 3px solid var(--ink-inverse); border-bottom: 3px solid var(--ink-inverse);
  border-radius: 0 0 3px 0;
  transform: rotate(45deg);
}
.pd-pin::before {  /* ground shadow on the exact spot */
  content: ""; position: absolute; left: 50%; bottom: -14px;
  width: 16px; height: 6px; margin-left: -8px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 28%, transparent); filter: blur(1.5px);
}
@keyframes pdDrop { from { opacity: 0; translate: 0 -12px; } }

/* map living in the "ที่ตั้ง" card (when photos took the hero) */
.pd-where-map:empty { display: none; }
.pd-where-map .pd-map { position: relative; height: 168px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }

/* photos */
.pd-photos { position: absolute; inset: 0; }
.pd-ph-track {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.pd-ph-track::-webkit-scrollbar { display: none; }
.pd-ph-track:focus-visible { box-shadow: inset var(--focus-ring); }
.pd-ph { position: relative; flex: 0 0 100%; height: 100%; margin: 0; scroll-snap-align: start; background: var(--surface-sunk); }
.pd-ph img { width: 100%; height: 100%; object-fit: cover; }
.pd-ph figcaption, .pd-ph-count {
  position: absolute; bottom: var(--sp-2);
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  font-size: var(--fs-xs); font-weight: 400; line-height: 1.5;
}
.pd-ph figcaption { left: var(--sp-2); max-width: calc(100% - 84px); white-space: nowrap; overflow: hidden; }
.pd-ph figcaption svg { color: var(--ink-2); }
.pd-ph figcaption a, .pd-ph figcaption span { color: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pd-ph-count { right: var(--sp-2); font-weight: 700; pointer-events: none; }
.pd-ph-nav {
  position: absolute; top: 50%; z-index: 2;
  width: 40px; height: 40px; margin-top: -20px;
  display: grid; place-items: center;
  border: 1px solid var(--glass-border); border-radius: 50%;
  background: var(--glass-strong); color: var(--ink);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--shadow-1);
  opacity: 0; transition: opacity var(--dur);
}
.pd-ph-nav.is-prev { left: var(--sp-2); }
.pd-ph-nav.is-next { right: var(--sp-2); }
.pd-photos:hover .pd-ph-nav, .pd-ph-nav:focus-visible { opacity: 1; }
@media (hover: none) { .pd-ph-nav { display: none; } }

/* ======================= head ======================= */
/* name + a compact "โหลดข้อมูลใหม่" icon button on the first row; every other line spans the full width */
.pd-head {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start;
  column-gap: var(--sp-2); row-gap: 6px; min-width: 0;
}
.pd-head > * { grid-column: 1 / -1; min-width: 0; }
.pd-head > .pd-name { grid-column: 1; grid-row: 1; }
.pd-head > .pd-reload { grid-column: 2; grid-row: 1; margin: -4px -6px 0 0; color: var(--ink-3); }
.pd-reload:hover { color: var(--primary); }
.pd-reload[aria-disabled="true"] { cursor: progress; color: var(--primary); }
.pd-reload.is-busy svg { animation: pdSpin 900ms linear infinite; }
@keyframes pdSpin { to { transform: rotate(360deg); } }
/* the small "Google" mark next to content loaded from Google Places (Google's terms) */
.pd-gattr {
  display: inline-block; flex: 0 0 auto;
  font-family: var(--font-body); font-size: 0.7rem; font-weight: 400; line-height: 1.4; letter-spacing: 0;
  color: var(--ink-3); white-space: nowrap;
}
.pd-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: 1.25; letter-spacing: -0.01em;
  margin: 0; overflow-wrap: anywhere;
}
.pd-page .pd-name { font-size: var(--fs-2xl); }
.pd-sub { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 400; overflow-wrap: anywhere; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; margin-top: 2px; }

.pd-rating { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); }
.pd-rating > b { font-weight: 700; }
.pd-stars { position: relative; display: inline-flex; line-height: 0; }
.pd-stars-bg, .pd-stars-fg { display: inline-flex; gap: 1px; }
.pd-stars svg { fill: currentColor; }
.pd-stars-bg { color: var(--line-strong); }
.pd-stars-fg { position: absolute; inset: 0 auto 0 0; width: var(--pd-r, 0%); overflow: hidden; color: var(--sun); }
.pd-stars-fg svg { flex: 0 0 auto; }
.pd-rcount { color: var(--ink-3); }
.pd-price {
  padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--surface-sunk); color: var(--ink-2);
  font-family: var(--font-num); font-weight: 700; font-size: var(--fs-xs);
}

.pd-addr { display: flex; align-items: flex-start; gap: 6px; min-width: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.pd-addr-ico { flex: 0 0 auto; color: var(--ink-3); padding-top: 9px; line-height: 0; }
.pd-addr-t { flex: 0 1 auto; min-width: 0; padding-top: 7px; overflow-wrap: anywhere; line-height: 1.5; }
.pd-copy { flex: 0 0 auto; color: var(--ink-3); }
.pd-copy:hover { color: var(--primary); }

/* open-now pill (also used in search rows and the explore card: .is-compact) */
.pd-state {
  --tone: var(--ink-3);
  --tone-bg: var(--surface-sunk);
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; min-width: 0;
  padding: 3px 11px 3px 9px;
  border-radius: var(--r-pill);
  background: var(--tone-bg);
  color: color-mix(in srgb, var(--tone) 72%, var(--ink));
  font-size: var(--fs-sm); font-weight: 700; line-height: 1.4;
}
.pd-state svg { color: var(--tone); }
.pd-state-t { min-width: 0; overflow-wrap: anywhere; }
.pd-dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent); }
.pd-state.tone-open { --tone: var(--ok); --tone-bg: var(--mint-soft); }
.pd-state.tone-closing, .pd-state.tone-opening { --tone: var(--warn); --tone-bg: var(--sun-soft); }
.pd-state.tone-closed { --tone: var(--danger); --tone-bg: var(--danger-soft); }
.pd-state.tone-unknown { font-weight: 400; color: var(--ink-2); }
.pd-state.tone-loading { font-weight: 400; color: var(--ink-2); }
.pd-state.tone-loading .spinner { width: 13px; height: 13px; border-width: 2px; }
.pd-state.tone-open .pd-dot { animation: pdPulse 2.4s ease-in-out infinite; }
@keyframes pdPulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 8%, transparent); } }
.pd-state.is-compact { padding: 1px 8px 1px 7px; font-size: 0.7rem; gap: 5px; white-space: nowrap; }
.pd-state.is-compact .pd-dot { width: 6px; height: 6px; box-shadow: none; animation: none; }

/* ======================= round action buttons ======================= */
/* Phone-width sheets: an even grid, every action visible — no sideways scroller with a half-cut label.
   --pd-cols is set by placesheet.js from the number of actions so the rows come out balanced. */
.pd-acts {
  display: grid; grid-template-columns: repeat(var(--pd-cols, 4), minmax(0, 1fr));
  gap: var(--sp-3) var(--sp-1);
  padding: 2px 0 4px;
  min-width: 0;
}
@container pd (min-width: 640px) {
  .pd-acts { display: flex; flex-wrap: wrap; padding: 0; gap: var(--sp-2) var(--sp-1); }
  .pd-act { flex: 0 0 auto; width: 76px; }
}
.pd-act {
  min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 2px 0 4px;
  border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--ink-2);
  font: inherit; font-size: var(--fs-xs); font-weight: 400; line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-act-ico {
  width: 50px; height: 50px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-soft); color: var(--primary);
  transition: transform 140ms var(--ease), background var(--dur);
}
.pd-act.is-primary .pd-act-ico { background: var(--grad-brand); color: var(--ink-inverse); box-shadow: var(--shadow-btn); }
.pd-act.is-primary .pd-act-l { color: var(--primary); font-weight: 700; }
/* wraps between words only (Thai too); break-word is just a last resort for a very large UI font */
.pd-act-l { max-width: 100%; overflow-wrap: break-word; }
@media (hover: hover) { .pd-act:hover .pd-act-ico { background: color-mix(in srgb, var(--primary) 16%, var(--surface)); } .pd-act.is-primary:hover .pd-act-ico { background: var(--grad-brand); } }
.pd-act:active .pd-act-ico { transform: scale(.94); }
.pd-act:focus-visible { box-shadow: none; outline: none; }
.pd-act:focus-visible .pd-act-ico { box-shadow: var(--focus-ring); }

/* ======================= status (only "couldn't load" now) ======================= */
.pd-status:empty { display: none; }
.pd-status { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; }
.pd-callout .btn { margin-top: 6px; }
.pd-callout > svg { color: var(--ink-2); }
.pd-callout.warn > svg { color: var(--warn); }

/* ======================= section cards ======================= */
.pd-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); align-items: start; min-width: 0; }
@container pd (min-width: 700px) {
  .pd-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); }
}
.pd-col { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
@container pd (min-width: 700px) { .pd-col { gap: var(--sp-4); } }
.pd-sec { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.pd-sec-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-width: 0; }
.pd-h {
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
  margin: 0;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; line-height: 1.35;
  color: var(--ink-2);
}
.pd-h svg { color: var(--primary); }
.pd-note { overflow-wrap: anywhere; }
.pd-skel { display: flex; flex-direction: column; gap: 10px; }
.pd-skel .skeleton { display: block; height: 14px; border-radius: 7px; }

.pd-empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); min-width: 0; }
.pd-empty p { overflow-wrap: anywhere; }

/* nothing known about hours / contact: one slim, quiet row (icon · text · "เช็คใน Google Maps") */
.pd-sec.is-none { padding-block: var(--sp-2); }
.pd-none {
  display: grid; grid-template-columns: auto minmax(0, 1fr) max-content; align-items: center;
  column-gap: 10px; min-width: 0;
}
.pd-none-ico { display: grid; place-items: center; color: var(--ink-3); line-height: 0; }
.pd-none-t { margin: 0; min-width: 0; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.45; overflow-wrap: break-word; }
.pd-none-a.btn { --btn-ink: var(--primary); gap: 5px; padding-inline: 10px; margin-inline-end: -8px; }
.pd-none-a.btn > span:not(.sr-only) { overflow: visible; }
.pd-none-a.btn svg { color: currentColor; }
/* narrow cards: the link moves under the text, lined up with it */
@container pd (max-width: 559px) {
  .pd-none { row-gap: 0; }
  .pd-none-a.btn { grid-column: 2 / -1; justify-self: start; margin-inline: -10px 0; }
}

/* hours */
.pd-arrive > div, .pd-wx-arrive > div { overflow-wrap: anywhere; line-height: 1.5; }
.pd-arrive > div .small { display: block; margin-top: 2px; }
.pd-arrive > svg, .pd-wx-arrive > svg { color: var(--ink-2); }
.pd-arrive.ok > svg { color: var(--ok); }
.pd-arrive.warn > svg, .pd-wx-arrive.warn > svg { color: var(--warn); }
.pd-arrive.danger > svg { color: var(--danger); }
.pd-week { width: 100%; border-collapse: separate; border-spacing: 0 2px; font-size: var(--fs-sm); margin: -2px 0; }
.pd-week th, .pd-week td { padding: 7px 12px; vertical-align: top; }
.pd-week th { text-align: left; font-weight: 400; color: var(--ink-2); width: 46%; white-space: nowrap; }
.pd-week td { text-align: right; font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.pd-week tr > :first-child { border-radius: var(--r-xs) 0 0 var(--r-xs); }
.pd-week tr > :last-child { border-radius: 0 var(--r-xs) var(--r-xs) 0; }
.pd-week tr.is-today > * { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.pd-week tr.is-closed td { color: var(--danger); }
.pd-today {
  display: inline-block; margin-left: 6px; padding: 0 7px; vertical-align: 1px;
  border-radius: var(--r-pill); background: var(--surface); color: var(--primary);
  font-size: 0.7rem; font-weight: 700; line-height: 1.6;
}
.pd-raw { font-weight: 700; overflow-wrap: anywhere; }
.pd-hcomment { display: flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; color: var(--ink-2); }
.pd-hcomment svg { flex: 0 0 auto; margin-top: 2px; color: var(--ink-3); }
.pd-hcomment span { min-width: 0; }

/* contact rows (grouped, hairline separators) — also the nav / call menus */
.pd-rows { list-style: none; margin: calc(-1 * var(--sp-1)) 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.pd-rows > li { min-width: 0; }
.pd-rows > li + li .pd-row::before {
  content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--line);
}
.pd-row {
  position: relative;
  display: flex; align-items: center; gap: var(--sp-3);
  width: 100%; min-height: 56px; min-width: 0;
  padding: 10px 0;
  border: 0; border-radius: 0;
  background: transparent; color: var(--ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pd-row:active { opacity: .7; }
.pd-row:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
.pd-row-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pd-row-l { font-size: var(--fs-xs); color: var(--ink-3); font-weight: 400; }
.pd-row-v { font-weight: 700; overflow-wrap: anywhere; line-height: 1.4; }
.pd-row-go { flex: 0 0 auto; color: var(--ink-3); line-height: 0; }
@media (hover: hover) { .pd-row:hover .pd-row-v { color: var(--primary); } }
.pd-menu { display: flex; flex-direction: column; gap: var(--sp-2); min-width: 0; padding-bottom: var(--sp-2); }
.pd-menu .pd-rows { margin: 0; padding: 2px var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }

/* weather (the shared .tm-wxbig / .tm-wxhours widgets from planner/weather.js, or the fallbacks below) */
.pd-sec .tm-wxhours, .pd-wxhours {
  margin: 0 calc(-1 * var(--sp-4)) -10px;
  padding-left: var(--sp-4); padding-right: var(--sp-4); padding-bottom: 14px;   /* room for the "now" pill's shadow */
  scroll-padding-inline: var(--sp-4);
}
.pd-sec .tm-wxhour.is-now, .pd-wxhours li.is-now { box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 30%, transparent); }
.pd-sec .tm-wxbig-temp { font-size: clamp(2.75rem, 2.3rem + 2vw, 3.6rem); }
.pd-wx-chip { margin-top: 4px; min-width: 0; }
.pd-wx-chip .tm-wxchip { background: var(--surface); max-width: 100%; }
.pd-wx-arrive p { margin-top: 4px; }
.pd-nw { display: inline-flex; align-items: center; gap: 4px; }

.pd-wxbig { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; }
.pd-wxbig-main { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-width: 0; }
.pd-wxbig-title { font-size: var(--fs-sm); color: var(--ink-2); }
.pd-wxbig-temp { font-family: var(--font-num); font-weight: 400; font-size: clamp(2.75rem, 2.3rem + 2vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; margin: 4px 0 6px; }
.pd-wxbig-cond { color: var(--ink-2); overflow-wrap: anywhere; }
.pd-wxbig-ico { flex: 0 0 auto; }
.pd-wxbig-meta { display: flex; flex-wrap: wrap; gap: 6px var(--sp-4); font-size: var(--fs-sm); color: var(--ink-2); }
.pd-wxm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pd-wxm svg { color: var(--ink-3); }
.pd-wxm b { color: var(--ink); font-weight: 700; }
.pd-wxm.is-rainy svg, .pd-wxm.is-rainy b { color: var(--sky); }
.pd-wxhours { display: flex; gap: var(--sp-2); list-style: none; padding-top: 2px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pd-wxhours::-webkit-scrollbar { display: none; }
.pd-wxhours li {
  flex: 0 0 auto; width: 62px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--sp-3) 4px var(--sp-2);
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line);
}
.pd-wxhours li.is-now { background: var(--grad-brand); border-color: transparent; color: var(--ink-inverse); }
.pd-wxh-t { font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2); }
.pd-wxh-p { min-height: 1.2em; font-size: 0.7rem; font-weight: 700; color: var(--sky); }
.pd-wxhours li.is-now .pd-wxh-t, .pd-wxhours li.is-now .pd-wxh-p { color: inherit; }
.pd-wxhours .e3d { width: 30px; height: 30px; }

/* details */
.pd-desc { line-height: 1.7; overflow-wrap: anywhere; }
.pd-src { margin-top: -6px; }
.pd-src-a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.pd-src-a:hover { color: var(--primary); }
.pd-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: var(--sp-2) var(--sp-3);
  min-width: 0;
}
.pd-facts li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-sm); line-height: 1.4; }
.pd-fact-ico {
  flex: 0 0 auto; width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--surface-sunk); color: var(--ink-2);
}
.pd-fact-t { min-width: 0; overflow-wrap: anywhere; }

/* location */
.pd-addr2 { overflow-wrap: anywhere; line-height: 1.5; }
.pd-ll { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px var(--sp-2); min-width: 0; }
.pd-ll .num { word-break: break-all; }
.pd-ll .btn { color: var(--primary); }
.pd-maplinks { display: flex; flex-wrap: wrap; gap: var(--sp-2); min-width: 0; }
.pd-maplinks .btn { flex: 1 1 auto; padding-inline: 12px; }

/* ======================= settings: key setup notes (rendered by js/pages/settings.js) ======================= */
.pd-keynotes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-keynotes li {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 8px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5;
}
.pd-keynotes li svg { flex: 0 0 auto; margin-top: 2px; color: var(--ink-3); }
.pd-keynotes li.is-warn { background: var(--sun-soft); border-color: transparent; color: var(--ink); }
.pd-keynotes li.is-warn svg { color: var(--warn); }
.pd-keynotes li > span:not(.emoji) { min-width: 0; overflow-wrap: anywhere; }
.pd-origin { word-break: break-all; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .pd-pin, .pd-state.tone-open .pd-dot, .pd-map.has-map .pd-map-canvas, .pd-reload.is-busy svg { animation: none; }
}
