/* FILPO · 지금 필리핀 — living briefing (v32) */
#phw {
  --bg0: #041820;
  --bg1: #0a2e38;
  --bg2: #14505c;
  --sand: #f2efe6;
  --panel: rgba(255, 253, 248, 0.96);
  --panel-solid: #fffdf8;
  --line: rgba(12, 48, 56, 0.12);
  --text: #0e2a32;
  --muted: #4a6570;
  --accent: #0f9b86;
  --accent-2: #e4572e;
  --mango: #f0a202;
  --ok: #1a7a52;
  --warn: #c46a12;
  --danger: #c0392b;
  --chip: #e4f5f0;
  --glow: rgba(15, 155, 134, 0.35);
  --radius: 18px;
  --font: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --display: "Pretendard", "Noto Sans KR", sans-serif;
  position: relative;
  font-family: var(--font);
  color: var(--text);
  background: var(--sand);
  border: 0;
  border-radius: 0;
  padding: 0 0 28px;
  display: grid;
  gap: 14px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

#phw .phw-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(58vh, 460px);
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(100% 70% at 8% -10%, #1faa8f 0%, transparent 55%),
    radial-gradient(80% 60% at 92% 0%, #e4572e 0%, transparent 48%),
    radial-gradient(60% 40% at 55% 20%, #f0a202 0%, transparent 45%),
    linear-gradient(180deg, #041820 0%, #0a2e38 38%, #14505c 62%, var(--sand) 100%);
  opacity: 1;
}
#phw .phw-sky::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--sand));
}
#phw .phw-palm {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(58vh, 460px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(-18deg, transparent 0 18px, rgba(255, 250, 244, 0.07) 18px 19px),
    repeating-linear-gradient(22deg, transparent 0 28px, rgba(255, 224, 138, 0.05) 28px 29px);
  animation: phw-palm-drift 28s linear infinite;
}
@keyframes phw-palm-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 120px 40px, -80px 60px; }
}

#phw > *:not(.phw-sky):not(.phw-palm) {
  position: relative;
  z-index: 1;
}

#phw h1, #phw h2, #phw h3, #phw p, #phw strong {
  color: var(--text);
  margin: 0;
}
#phw h1 {
  font-family: var(--display);
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fffaf4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
#phw h2 { font-size: 16px; margin-bottom: 10px; }
#phw h3 { font-size: 14px; margin: 0 0 8px; color: var(--text); font-weight: 800; }
#phw .phw-muted, #phw .phw-kicker, #phw .phw-src, #phw .phw-feels {
  color: var(--muted);
  font-size: 13px;
}
#phw .phw-kicker {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 800;
  font-size: 11px;
  color: var(--accent);
}

/* —— hero briefing —— */
#phw .phw-hero-brief {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 18px 16px 8px;
  margin-top: 4px;
}
#phw .phw-brand {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ffe8a3;
  text-transform: uppercase;
}
#phw .phw-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 10px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.16);
  border: 1px solid rgba(255, 250, 244, 0.28);
  color: #fffaf4;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
#phw .phw-hero-brief-main #phwSub {
  margin-top: 8px;
  max-width: 36em;
  color: rgba(255, 250, 244, 0.82);
  font-size: 14px;
  line-height: 1.5;
}
#phw .phw-live-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
#phw .phw-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55);
  animation: phw-pulse 2.2s ease-out infinite;
}
@keyframes phw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(61, 214, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 214, 140, 0); }
}
#phw .phw-updated {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 250, 244, 0.72);
}
#phw .phw-flash-toast {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffe08a;
  color: #1a2a18;
  font-size: 12px;
  font-weight: 800;
  animation: phw-toast-in 0.35s ease-out;
}
#phw .phw-flash-toast[hidden] { display: none !important; }
@keyframes phw-toast-in {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

#phw .phw-homebox {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255, 250, 244, 0.92);
  border: 1px solid rgba(255, 250, 244, 0.5);
  border-radius: 14px;
  padding: 10px 12px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(6, 20, 31, 0.18);
}
#phw .phw-homebox label { font-size: 13px; color: var(--muted); font-weight: 700; }
#phw .phw-wx-peek {
  flex: 1 1 100%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 2px 6px;
  border-bottom: 1px dashed rgba(12, 48, 56, 0.14);
  margin-bottom: 2px;
}
#phw .phw-wx-peek b {
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1;
}
#phw .phw-wx-peek span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

#phw select,
#phw button,
#phw .phw-btn {
  appearance: none !important;
  font: inherit !important;
  color: var(--text) !important;
  background: #fff !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  min-height: 40px;
  box-sizing: border-box;
}
#phw .phw-btn-primary {
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  font-weight: 800 !important;
}

/* —— sticky day nav —— */
#phw .phw-daynav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 12px;
  margin: 0;
  background: color-mix(in srgb, #0a2433 78%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 250, 244, 0.12);
  scrollbar-width: none;
}
#phw .phw-daynav::-webkit-scrollbar { display: none; }
#phw .phw-daynav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 250, 244, 0.22);
  background: rgba(255, 250, 244, 0.1);
  color: #fffaf4 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* —— ticker —— */
#phw .phw-ticker {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: linear-gradient(90deg, #0a2e38, #14505c 55%, #0f3d48);
  color: #fffaf4;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(4, 24, 32, 0.22);
}
#phw .phw-ticker[hidden] { display: none !important; }
#phw .phw-ticker-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffe08a;
  animation: phw-live-blink 1.8s ease-in-out infinite;
}
@keyframes phw-live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
#phw .phw-ticker-track {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
#phw .phw-ticker-text {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: phw-ticker-marquee 22s linear infinite;
}
@keyframes phw-ticker-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  #phw .phw-ticker-text {
    animation: none;
    padding-left: 0;
    white-space: normal;
  }
  #phw .phw-palm { animation: none; }
}

/* —— bite feed (mobile-first daily briefing) —— */
#phw .phw-feed-sec { gap: 12px; }
#phw .phw-feed {
  display: grid;
  gap: 10px;
}
#phw .phw-bite {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  text-decoration: none !important;
  color: var(--text) !important;
  box-shadow: 0 6px 20px rgba(4, 24, 32, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
#phw .phw-bite:active { transform: scale(0.99); }
#phw .phw-bite-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
#phw .phw-bite b {
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#phw .phw-bite p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#phw .phw-bite-wx { border-left-color: #0f9b86; background: linear-gradient(135deg, #e8faf5, var(--panel)); }
#phw .phw-bite-ph { border-left-color: #0f9b86; }
#phw .phw-bite-kr { border-left-color: #2a6f97; }
#phw .phw-bite-brief {
  border-left-color: var(--mango);
  background: linear-gradient(135deg, #fff8e8, var(--panel));
}
#phw .phw-bite-brief .phw-bite-tag { color: #a66a00; }
#phw .phw-bite-traffic { border-left-color: #2a6f97; }
#phw .phw-bite-fx { border-left-color: #c47a12; }
#phw .phw-bite-tip {
  border-left-color: var(--accent-2);
  background: linear-gradient(135deg, #fff1eb, var(--panel));
}
#phw .phw-legacy-hide {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/* —— story cards —— */
#phw .phw-sec {
  display: grid;
  gap: 10px;
  position: relative;
  scroll-margin-top: 56px;
  margin: 0 12px;
  min-width: 0;
}
#phw .phw-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 2px;
}
#phw .phw-seg {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 2px;
}
#phw .phw-story-title {
  margin: 0 !important;
  font-size: 22px !important;
  letter-spacing: -0.02em;
  font-weight: 800;
}
#phw .phw-story-card,
#phw .phw-card,
#phw .phw-hero {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 28px rgba(6, 20, 31, 0.06);
  min-width: 0;
  box-sizing: border-box;
}
#phw .phw-story-card {
  display: grid;
  gap: 12px;
  border-left: 4px solid var(--accent);
  transition: box-shadow 0.35s ease, outline-color 0.35s ease;
}
#phw .phw-story.is-fresh .phw-story-card,
#phw .phw-sec.is-fresh .phw-story-card {
  animation: phw-fresh 1.4s ease-out;
  outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 2px;
}
@keyframes phw-fresh {
  0% { box-shadow: 0 0 0 0 var(--glow); background: #eefaf6; }
  100% { box-shadow: 0 8px 28px rgba(6, 20, 31, 0.06); }
}
#phw #phwSecTraffic .phw-story-card { border-left-color: #2a6f97; }
#phw #phwSecVisa .phw-story-card { border-left-color: #6b5b95; }
#phw #phwSecNight .phw-story-card { border-left-color: #c43d5a; }
#phw #phwSecFx .phw-story-card { border-left-color: #c47a12; }
#phw #phwSecFun .phw-story-card { border-left-color: #e85d4c; }

#phw .phw-mini {
  background: color-mix(in srgb, var(--panel-solid) 88%, #e6f4f0);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-width: 0;
}
#phw .phw-fold {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
#phw .phw-fold > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  list-style: none;
}
#phw .phw-fold > summary::-webkit-details-marker { display: none; }
#phw .phw-fold[open] > summary { margin-bottom: 10px; }

/* horizontal top stories */
#phw .phw-story-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
}
#phw .phw-story-rail:empty { display: none; }
#phw .phw-story-chip {
  flex: 0 0 min(78vw, 260px);
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0d8f7a, #0a6e60);
  color: #fffaf4;
  text-decoration: none !important;
  min-height: 108px;
  box-sizing: border-box;
}
#phw .phw-story-chip.kr {
  background: linear-gradient(145deg, #2a6f97, #1d4f6e);
}
#phw .phw-story-chip span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  opacity: 0.85;
}
#phw .phw-story-chip b {
  font-size: 15px;
  line-height: 1.35;
  color: #fffaf4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#phw .phw-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
#phw .phw-hero-main { display: flex; gap: 16px; align-items: center; min-width: 0; }
#phw .phw-temp {
  font-size: clamp(56px, 14vw, 76px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
#phw .phw-hero-side {
  min-width: 200px;
  max-width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--chip);
  font-size: 15px;
  box-sizing: border-box;
}
#phw .phw-hero-side.go-yes { background: #e4f7ee; color: var(--ok); }
#phw .phw-hero-side.go-no { background: #fff1e4; color: var(--warn); }

#phw .phw-yesno {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#phw .phw-pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  min-width: 0;
}
#phw .phw-pill b { display: block; font-size: 18px; margin-top: 4px; word-break: keep-all; }
#phw .phw-pill.yes b { color: var(--ok); }
#phw .phw-pill.no b { color: var(--danger); }

#phw .phw-meta {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
#phw .phw-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  min-width: 0;
}
#phw .phw-stat span { display: block; color: var(--muted); font-size: 12px; }
#phw .phw-stat b { font-size: 16px; word-break: break-word; }

#phw .phw-hours {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 110px;
}
#phw .phw-hour { text-align: center; font-size: 11px; color: var(--muted); }
#phw .phw-bar {
  height: 72px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 4px;
}
#phw .phw-bar i {
  display: block;
  width: 100%;
  max-width: 18px;
  background: #7ec8b8;
  border-radius: 6px 6px 2px 2px;
  min-height: 4px;
}
#phw .phw-bar.wet i { background: #0d8f7a; }

#phw .phw-tide-hours {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  align-items: end;
  min-height: 110px;
  grid-template-columns: none;
  -webkit-overflow-scrolling: touch;
}
#phw .phw-tide-hours .phw-hour { flex: 0 0 36px; }
#phw .phw-hour.now { color: var(--text); font-weight: 700; }
#phw .phw-hour.now .phw-bar i { background: var(--accent); }
#phw .phw-tide-events {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
#phw .phw-tide-ev {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 2px;
  font-size: 13px;
  background: #fff;
  min-width: 0;
}
#phw .phw-tide-ev span { color: var(--muted); }
#phw .phw-tide-ev.high b { color: var(--accent); }
#phw .phw-tide-ev.low b { color: var(--muted); }

#phw .phw-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
#phw .phw-day {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  background: #fff;
  min-width: 0;
}
#phw .phw-day b { display: block; font-size: 18px; margin: 6px 0; }
#phw .phw-day span { display: block; font-size: 12px; color: var(--muted); }

#phw .phw-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
#phw .phw-scores { display: grid; gap: 8px; }
#phw .phw-score { display: grid; grid-template-columns: 70px 1fr 36px; gap: 8px; align-items: center; font-size: 13px; }
#phw .phw-score .track { height: 8px; background: #e4eeea; border-radius: 99px; overflow: hidden; }
#phw .phw-score .track em { display: block; height: 100%; background: var(--accent); }

#phw .phw-meet { display: grid; gap: 8px; }
#phw .phw-meet-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
#phw .phw-meet-hero p { margin-top: 4px; font-size: 14px; line-height: 1.45; }
#phw .phw-pct {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 1;
  min-width: 4.2ch;
}
#phw .phw-meet-list { display: grid; gap: 6px; }
#phw .phw-meet-row {
  display: grid;
  grid-template-columns: 110px 1fr 44px 72px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
  min-width: 0;
}
#phw .phw-meet-row:hover { background: #fdeeea; }
#phw .phw-meet-row .track { height: 10px; background: #f6e2dd; border-radius: 99px; overflow: hidden; }
#phw .phw-meet-row .track em { display: block; height: 100%; background: var(--accent-2); }
#phw .phw-meet-row.active { font-weight: 700; background: #fdeeea; }
#phw .phw-meet-row i { font-style: normal; color: var(--muted); font-size: 12px; text-align: right; }

#phw .phw-event, #phw .phw-month {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
#phw .phw-pack, #phw .phw-facts { padding-left: 18px; margin: 0; }
#phw .phw-pack li, #phw .phw-facts li { margin: 6px 0; }
#phw .phw-mission {
  font-size: 17px;
  line-height: 1.45;
  background: var(--chip);
  border-radius: 12px;
  padding: 12px;
}
#phw .phw-src { margin-top: 12px; word-break: break-word; }

#phw .phw-alert {
  margin: 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff7e6;
  border: 1px solid #f0d19a;
  color: var(--warn);
}
#phw .phw-alert.danger {
  background: #fff1f0;
  border-color: #f0b8b4;
  color: var(--danger);
}
#phw .phw-alert strong { display: block; margin-bottom: 4px; }

#phw .phw-news-row,
#phw .phw-news a {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
  color: var(--text) !important;
}
#phw .phw-news-row { padding-bottom: 12px; }
#phw .phw-news-row > a {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  text-decoration: none !important;
  color: var(--text) !important;
}
#phw .phw-news-row:last-child,
#phw .phw-news a:last-child { border-bottom: 0; }
#phw .phw-news b { display: block; font-size: 14px; line-height: 1.4; }
#phw .phw-news .phw-en {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
#phw .phw-news small { color: var(--muted); font-size: 12px; }
#phw .phw-safety {
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  word-break: break-word;
}
#phw .phw-fx {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
#phw .phw-fx-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
}
#phw .phw-fx-num b { font-size: 28px; letter-spacing: -0.03em; }
#phw .phw-night {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
#phw .phw-night .phw-fx-num b { font-size: 44px; }
#phw .phw-night a.phw-btn { text-decoration: none !important; }

#phw .phw-brief-card {
  display: grid;
  gap: 12px;
  min-width: 0;
}
#phw .phw-brief-hero { display: grid; gap: 6px; min-width: 0; }
#phw .phw-brief-hero h2 { margin: 0; font-size: 18px; }
#phw .phw-tone-ok { color: var(--ok) !important; }
#phw .phw-tone-warn { color: var(--warn) !important; }
#phw .phw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
#phw .phw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}
#phw .phw-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}
#phw .phw-mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent) !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 700;
}

#phw .phw-sos {
  margin: 0 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}
#phw .phw-sos > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  list-style: none;
}
#phw .phw-sos > summary::-webkit-details-marker { display: none; }
#phw .phw-sos-body { margin-top: 12px; color: var(--muted); font-size: 14px; }
#phw .phw-sos-body ul { margin: 8px 0 0; padding-left: 18px; }
#phw .phw-sos-body li { margin: 6px 0; }

#phw .phw-topline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
#phw .phw-topline li { border-bottom: 1px solid var(--line); }
#phw .phw-topline li:last-child { border-bottom: 0; }
#phw .phw-topline a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 2px;
  color: inherit !important;
  text-decoration: none !important;
}
#phw .phw-rank {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
}
#phw .phw-topline-body { display: grid; gap: 2px; min-width: 0; }
#phw .phw-topline-body b { font-size: 15px; line-height: 1.35; }
#phw .phw-topline-body small { color: var(--muted); font-size: 12px; }
#phw .phw-en {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
#phw .phw-saved-body {
  margin-top: 4px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f3fbf8, #fff8f0);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
  font-size: 15px;
  line-height: 1.6;
}
#phw .phw-saved-body .phw-kicker { color: var(--accent-2); }
#phw .phw-saved-md { white-space: normal; word-break: break-word; }

/* —— solar (kept, tightened) —— */
#phw .phw-solar { display: grid; gap: 12px; scroll-margin-top: 88px; min-width: 0; }
#phw #phwSolarBody { display: grid; gap: 12px; min-width: 0; }
#phw .phw-solar-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
#phw .phw-solar-toolbar h3 { margin: 0; font-size: 18px; }
#phw .phw-solar-pick { display: grid; gap: 4px; }
#phw .phw-solar-pick label { font-size: 12px; color: var(--muted); font-weight: 700; }
#phw .phw-solar-story { font-size: 15px; line-height: 1.45; font-weight: 650; }
#phw .phw-solar-label {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #b45309;
}
#phw .phw-solar-label.sun { color: #9a3412; }
#phw .phw-solar-label.good { color: #b45309; }
#phw .phw-solar-label.cloud { color: #57534e; }
#phw .phw-solar-label.rain { color: #1d4ed8; }
#phw .phw-solar-watts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
#phw .phw-solar-watts button {
  min-width: 76px;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#phw .phw-solar-watts button small {
  display: block;
  font-size: 11px;
  font-weight: 650;
  opacity: 0.72;
}
#phw .phw-solar-watts button.on {
  background: #102433 !important;
  color: #fffcf7 !important;
  border-color: #102433 !important;
}
#phw .phw-solar-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#phw .phw-solar-vs article {
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #d5ebe4;
  min-width: 0;
}
#phw .phw-solar-vs .ph { background: #eefaf6; }
#phw .phw-solar-vs .kr { background: #eef4ff; border-color: #d5deea; }
#phw .phw-solar-vs span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}
#phw .phw-solar-vs b {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
#phw .phw-solar-vs b small { font-size: 16px; margin-left: 4px; color: var(--muted); }
#phw .phw-solar-vs p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
#phw .phw-solar-edge {
  background: #102433;
  color: #fffcf7;
  border-radius: 14px;
  padding: 16px 18px;
}
#phw .phw-solar-edge span,
#phw .phw-solar-edge p { color: #c9c3b8; margin: 0; font-size: 13px; font-weight: 700; }
#phw .phw-solar-edge b {
  display: block;
  font-size: 36px;
  letter-spacing: -0.04em;
  margin: 6px 0 8px;
  color: #fffcf7;
}
#phw .phw-scale { display: grid; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#phw .phw-scale-row {
  display: grid;
  grid-template-columns: 108px 1fr 1fr 1fr 1.15fr;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
}
#phw .phw-scale-row.head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}
#phw .phw-scale-row.on { background: #e6f4f0; }
#phw .phw-scale-row span small { display: block; color: var(--muted); font-weight: 650; }
#phw .phw-scale-row b { text-align: right; font-variant-numeric: tabular-nums; }
#phw .phw-scale-row .more { color: #9a3412; }
#phw .phw-solar-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}
#phw .phw-solar-hero > div,
#phw .phw-solar-batt article,
#phw .phw-solar-uses > div {
  background: #eefaf6;
  border: 1px solid #d5ebe4;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
#phw .phw-solar-hero span,
#phw .phw-solar-batt span,
#phw .phw-solar-uses span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
#phw .phw-solar-hero b {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
#phw .phw-solar-hero b.sub { font-size: 22px; }
#phw .phw-solar-hero small { font-size: 16px; font-weight: 700; margin-left: 4px; color: var(--muted); }
#phw .phw-solar-hero p,
#phw .phw-solar-batt p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}
#phw .phw-solar-batt,
#phw .phw-solar-uses {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
#phw .phw-solar-batt b,
#phw .phw-solar-uses b {
  font-size: 18px;
  letter-spacing: -0.03em;
}
#phw .phw-solar-fill {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
#phw .phw-solar-fill .track {
  height: 10px;
  background: #d5ebe4;
  border-radius: 99px;
  overflow: hidden;
}
#phw .phw-solar-fill .track em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #3db89e, #0d8f7a);
}
#phw .phw-solar-hours {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  grid-template-columns: none;
  min-height: 110px;
  -webkit-overflow-scrolling: touch;
}
#phw .phw-solar-hours .phw-hour { flex: 0 0 40px; }
#phw .phw-solar-hours .phw-bar i { background: #3db89e; }
#phw .phw-solar-hours .phw-hour.past { opacity: 0.45; }
#phw .phw-solar-hours .phw-hour.now .phw-bar i { background: #0d8f7a; }
#phw .phw-solar-week { display: grid; gap: 6px; }
#phw .phw-solarday {
  display: grid;
  grid-template-columns: 42px 1fr 52px 72px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
#phw .phw-solarday-vs { grid-template-columns: 42px 1fr 64px 64px; }
#phw .phw-solarday .tracks { display: grid; gap: 3px; }
#phw .phw-solarday .track {
  height: 8px;
  background: #d5ebe4;
  border-radius: 99px;
  overflow: hidden;
}
#phw .phw-solarday .track.kr { background: #d5deea; }
#phw .phw-solarday .track em {
  display: block;
  height: 100%;
  background: #0d8f7a;
}
#phw .phw-solarday .track.kr em { background: #2a6f97; }
#phw .phw-solarday b { text-align: right; font-variant-numeric: tabular-nums; }
#phw .phw-solarday b.krn { color: #2a6f97; }

/* —— admin —— */
#phw:not(.is-admin) .phw-host { display: none !important; }
#phw .phw-adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #102433;
  color: #f8fafc;
}
#phw .phw-adminbar-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #ffe08a;
}
#phw .phw-adminbar-tip {
  margin: 0;
  flex: 1 1 180px;
  font-size: 12px;
  color: #cbd5e1;
}
#phw .phw-adminbar-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#phw .phw-adminbar a.phw-btn,
#phw .phw-adminbar .phw-btn {
  text-decoration: none !important;
  min-height: 36px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
#phw .phw-btn-broadcast {
  background: #e85d4c !important;
  color: #fff !important;
  border-color: #e85d4c !important;
}
#phw .phw-adminbar kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #475569;
  background: #1f2937;
  font-size: 11px;
}
#phw .phw-sec-status {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}
#phw .phw-sec-status.is-saved { color: var(--ok); border-color: #b7e0c5; background: #eefbf3; }
#phw .phw-sec-status.is-stale { color: var(--warn); border-color: #f0d2a8; background: #fff7ed; }
#phw .phw-sec-status.is-empty { color: var(--muted); }
#phw.is-admin [data-phw-sec] {
  cursor: pointer;
}
#phw.is-admin [data-phw-sec].is-hover {
  outline: 2px dashed rgba(15, 155, 134, 0.55);
  outline-offset: 4px;
  border-radius: 12px;
}
#phw.is-admin [data-phw-sec].is-hover .phw-seg::after {
  content: " · 클릭 편집";
  color: var(--accent);
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}
#phw .phw-sec-rail {
  display: none;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}
#phw.is-admin [data-phw-sec].is-hover > .phw-sec-rail,
#phw.is-admin [data-phw-sec]:focus-within > .phw-sec-rail {
  display: flex;
}
@media (hover: none) {
  #phw.is-admin [data-phw-sec] > .phw-sec-rail {
    display: flex;
  }
}
#phw .phw-sec-rail button {
  appearance: none !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1px solid #102433 !important;
  background: #102433 !important;
  color: #fff !important;
  font: 700 12px/1 Pretendard, "Noto Sans KR", sans-serif !important;
  cursor: pointer;
}
#phw .phw-sec-rail .phw-rail-claude {
  background: #0d8f7a !important;
  border-color: #0d8f7a !important;
}

/* Admin side dock — edit + publish, leave center free for OBS framing */
#phwPromptDock {
  position: fixed;
  right: 12px;
  top: 72px;
  z-index: 80;
  width: min(400px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 96px));
  display: flex;
  flex-direction: column;
  background: #0a2e38;
  color: #e8f2f0;
  border-radius: 16px;
  border: 1px solid rgba(255, 224, 138, 0.22);
  box-shadow: 0 16px 48px rgba(4, 24, 32, 0.45);
  overflow: hidden;
}
#phwPromptDock[hidden] { display: none !important; }
html.phw-dock-open #phw {
  padding-right: min(420px, 42vw);
}
@media (max-width: 900px) {
  html.phw-dock-open #phw { padding-right: 0; }
}
#phwPromptDock .phw-dock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #14505c;
  cursor: move;
  user-select: none;
  touch-action: none;
}
#phwPromptDock .phw-dock-bar strong { font-size: 13px; color: #ffe08a; }
#phwPromptDock #phwDockHint { margin-left: auto; font-size: 10px; color: #9ec4c0; }
#phwPromptDock .phw-dock-x {
  appearance: none !important;
  border: 0 !important;
  background: transparent !important;
  color: #e8f2f0 !important;
  font-size: 18px !important;
  min-height: 28px !important;
  padding: 0 6px !important;
  cursor: pointer;
}
#phwPromptDock .phw-dock-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
#phwPromptDock .phw-dock-tab {
  flex: 1;
  appearance: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 36px !important;
  background: transparent !important;
  color: #9ec4c0 !important;
  font-weight: 800 !important;
  cursor: pointer;
}
#phwPromptDock .phw-dock-tab.on {
  color: #ffe08a !important;
  box-shadow: inset 0 -2px 0 #f0a202;
}
#phwPromptDock .phw-dock-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#phwPromptDock .phw-dock-pane[hidden] { display: none !important; }
#phwPromptDock .phw-dock-lab {
  margin: 8px 12px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #9ec4c0;
}
#phwPromptDock #phwDockText {
  flex: 1;
  margin: 8px 12px;
  padding: 12px;
  min-height: 160px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #041820;
  color: #f5faf8;
  font: 15px/1.5 Pretendard, "Noto Sans KR", sans-serif;
  resize: none;
}
#phwPromptDock #phwDockBody {
  flex: 1;
  margin: 0;
  padding: 10px 12px;
  overflow: auto;
  white-space: pre-wrap;
  font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
#phwPromptDock .phw-dock-claude-tip {
  margin: 0;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1.4;
  color: #9ec4c0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#phwPromptDock .phw-dock-act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#phwPromptDock .phw-dock-act button {
  appearance: none !important;
  flex: 1 1 30%;
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-weight: 800 !important;
  cursor: pointer;
  background: #ffe08a !important;
  color: #111 !important;
}
#phwPromptDock .phw-dock-act #phwDockClaude {
  background: #0f9b86 !important;
  color: #fff !important;
}
#phwPromptDock .phw-dock-act #phwDockPublish,
#phwPromptDock .phw-dock-act .phw-dock-pub {
  background: var(--accent-2, #e4572e) !important;
  color: #fff !important;
  flex: 1 1 40%;
}
#phwPromptDock .phw-dock-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #9ec4c0 50%);
}
#phw .phw-ticker-rail {
  display: flex !important;
  margin: 0 12px;
  gap: 8px;
  flex-wrap: wrap;
}

/* OBS / broadcast — hide all admin chrome, big type */
html.ph-obs .phw-host,
html.ph-obs #phwPromptDock,
html.ph-obs .phw-daynav,
html.ph-obs .phw-adminbar,
html.ph-obs .phw-sec-rail,
html.ph-obs .phw-homebox,
html.ph-obs #phwTickerRail {
  display: none !important;
}
html.ph-obs #phw { padding-right: 0 !important; }
#phw .phw-broadcast-exit {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 90;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #e4572e;
  color: #fff;
  font: 800 13px/1 Pretendard, "Noto Sans KR", sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
#phw .phw-broadcast-exit[hidden] { display: none !important; }
html.ph-obs #phw .phw-broadcast-exit:not([hidden]) {
  display: inline-flex !important;
  align-items: center;
}
html.ph-obs #phw {
  padding: 8px 0 16px;
  background: transparent;
}
html.ph-obs #phw .phw-temp { font-size: 88px; }
html.ph-obs #phw h1 { font-size: 36px; }
html.ph-obs #phw .phw-story-title { font-size: 26px !important; }
html.ph-obs #phw .phw-bite b { font-size: 20px; }

@media (max-width: 900px) {
  #phw .phw-solar-hero,
  #phw .phw-solar-batt,
  #phw .phw-solar-uses,
  #phw .phw-solar-vs { grid-template-columns: 1fr; }
  #phw .phw-solar-fill { grid-template-columns: 1fr; }
  #phw .phw-solar-edge b { font-size: 28px; }
  #phw .phw-scale-row {
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr);
    min-width: 0;
  }
  #phw .phw-scale-row b:nth-child(4),
  #phw .phw-scale-row b:nth-child(5),
  #phw .phw-scale-row.head span:nth-child(4),
  #phw .phw-scale-row.head span:nth-child(5) {
    display: none;
  }
  #phw .phw-daynav {
    gap: 6px;
    padding: 8px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #phw .phw-daynav::-webkit-scrollbar { display: none; }
  #phw .phw-daynav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 13px;
  }
  #phw .phw-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #phw .phw-hero-brief { padding: 14px 12px 4px; align-items: stretch; }
  #phw .phw-homebox { width: 100%; }
  #phw .phw-homebox select,
  #phw .phw-homebox .phw-btn { flex: 1 1 auto; min-width: 0; }
  #phw .phw-yesno, #phw .phw-meta, #phw .phw-days, #phw .phw-grid2, #phw .phw-fx {
    grid-template-columns: 1fr 1fr;
  }
  #phw .phw-hours {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    padding-bottom: 4px;
  }
  #phw .phw-hours .phw-hour { flex: 0 0 48px; }
  #phw .phw-tide-events { grid-template-columns: 1fr 1fr; }
  #phw .phw-meet-row { grid-template-columns: 88px 1fr 40px; }
  #phw .phw-meet-row i { display: none; }
  #phw .phw-pct { font-size: 42px; }
  #phw .phw-hero { flex-direction: column; align-items: stretch; }
  #phw .phw-hero-side { min-width: 0; width: 100%; }
  #phw .phw-solarday,
  #phw .phw-solarday-vs { grid-template-columns: 36px 1fr 48px 56px; gap: 6px; font-size: 12px; }
  #phw {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 560px) {
  #phw .phw-yesno { grid-template-columns: 1fr 1fr; }
  #phw .phw-meta { grid-template-columns: 1fr 1fr; }
  #phw .phw-days { grid-template-columns: 1fr 1fr; }
  #phw .phw-grid2, #phw .phw-fx { grid-template-columns: 1fr; }
  #phw .phw-tide-events { grid-template-columns: 1fr; }
  #phw .phw-pill b { font-size: 16px; }
  #phw .phw-story-chip { flex-basis: min(86vw, 280px); }
  #phw .phw-ticker-text { white-space: normal; }
  #phw .phw-hub-grid { grid-template-columns: 1fr 1fr; }
  #phw .phw-history-grid { grid-template-columns: 1fr; }
}

/* —— YouTube pin gate: 1:1 · 단톡 · shop search (PC + mobile) —— */
#phw > .phw-cashgate {
  position: relative;
  z-index: 5;
  margin: 12px 14px 0;
  padding: 12px 14px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #0f2f2a 0%, #145045 55%, #1a3d36 100%);
  color: #f4fff9;
  box-shadow: 0 10px 28px rgba(8, 40, 36, 0.28);
  display: grid;
  gap: 8px;
  max-width: 1100px;
  width: calc(100% - 28px);
  justify-self: center;
  box-sizing: border-box;
}
#phw .phw-cashgate-top {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#phw .phw-cashgate-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #9fd9c8;
}
#phw .phw-cashgate-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}
#phw .phw-cashgate-ctas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
#phw .phw-cash-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  text-align: center;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
#phw .phw-cash-cta-dm {
  background: #fee500;
  color: #191600;
}
#phw .phw-cash-cta-group {
  background: #fff;
  color: #12352f;
  border: 2px solid #9fd9c8;
}
#phw .phw-cashgate-form {
  display: grid;
  gap: 6px;
  min-width: 0;
}
#phw .phw-cashgate-label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #c8ebe0;
}
#phw .phw-cashgate-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
#phw .phw-cashgate-row input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 650;
  color: var(--text);
  background: #fffdf8;
  -webkit-appearance: none;
  appearance: none;
}
#phw .phw-cash-go {
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 72px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: #e4572e;
  color: #fff !important;
  font: inherit;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 2px 0 #b33d1c;
}
#phw .phw-cashgate-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: #a8d4c6;
}
html.ph-obs #phw .phw-cashgate { display: none !important; }

/* scrolling markers: Coupang = PH Shopee / Lazada / TikTok */
#phw .phw-shop-marquee {
  margin: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffe08a;
  line-height: 1.4;
  min-height: 1.4em;
}
#phw .phw-shop-marquee-track {
  display: inline-block;
  padding-right: 2em;
  animation: phw-shop-marquee 16s linear infinite;
}
@keyframes phw-shop-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  #phw .phw-shop-marquee-track { animation: none; }
}

/* section / bite Coupang rails — do not block reading */
#phw .phw-shop-rail {
  display: grid;
  gap: 6px;
  margin: 8px 0 2px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px dashed rgba(228, 87, 46, 0.35);
  background: rgba(255, 248, 240, 0.92);
}
#phw .phw-shop-rail .phw-shop-marquee {
  color: #9a5a12;
  mask-image: none;
  -webkit-mask-image: none;
}
#phw .phw-shop-rail-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
#phw .phw-shop-rail-hint {
  margin: 0;
  flex: 1 1 140px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  line-height: 1.35;
}
#phw .phw-shop-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e4572e;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
#phw .phw-shop-buy:hover { filter: brightness(1.05); }
#phw .phw-shop-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  color: #c46a12;
  letter-spacing: 0.02em;
}
#phw .phw-shop-pill i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e4572e;
  animation: phw-shop-blink 1.4s ease-in-out infinite;
}
@keyframes phw-shop-blink {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
#phw .phw-bite {
  display: grid;
  gap: 8px;
  padding: 12px 14px 10px;
}
#phw .phw-bite-main {
  display: grid;
  gap: 6px;
  text-decoration: none !important;
  color: var(--text) !important;
}
#phw .phw-bite-buy {
  justify-self: start;
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}

@media (min-width: 720px) {
  #phw > .phw-cashgate {
    margin-top: 16px;
    padding: 14px 16px;
  }
  #phw .phw-cashgate-body {
    grid-template-columns: minmax(280px, 1fr) minmax(260px, 1.1fr);
    align-items: end;
    gap: 14px;
  }
  #phw .phw-cashgate-ctas {
    grid-template-columns: 1fr 1fr;
  }
  #phw .phw-cash-cta {
    min-height: 46px;
    font-size: 14px;
  }
}
@media (max-width: 560px) {
  #phw > .phw-cashgate {
    margin: 8px 8px 0;
    padding: 10px 10px 10px;
    border-radius: 14px;
    width: calc(100% - 16px);
    gap: 6px;
  }
  #phw .phw-cash-cta { min-height: 46px; font-size: 14px; }
  #phw .phw-cashgate-row input[type="search"],
  #phw .phw-cash-go { min-height: 46px; }
  #phw .phw-shop-rail { padding: 7px 8px; }
}

/* —— 30 Korean hubs —— */
#phw .phw-hub-lead {
  margin: 0 2px 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
#phw .phw-hub-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  margin: 0 -2px 8px;
  scrollbar-width: thin;
  max-width: 100%;
}
#phw .phw-hub-strip-mini { padding-bottom: 6px; margin-bottom: 4px; }
#phw .phw-hub-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--chip);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
#phw .phw-hub-chip.mini {
  padding: 4px 9px;
  font-size: 11px;
  cursor: default;
}
#phw .phw-hub-chip.on {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
#phw .phw-hub-chip.host {
  border-style: dashed;
  background: #fff8e8;
}
#phw .phw-hub-chip.host.on { background: #c47a12; color: #fff; }
#phw .phw-region-chip {
  flex: 0 0 auto;
  border: 1px solid #1a3a34;
  background: #12352f;
  color: #f4fff9;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
#phw .phw-region-chip.mini {
  min-height: 0;
  padding: 5px 10px;
  font-size: 11px;
  cursor: default;
  background: #e8f2ef;
  color: #12352f;
  border-color: var(--line);
}
#phw .phw-region-chip.on {
  background: #e4572e;
  border-color: transparent;
  color: #fff;
}
#phw .phw-region-strip {
  gap: 8px;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}
#phw .phw-region-strip .phw-region-chip { scroll-snap-align: start; }
#phw .phw-direct-body {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-left: 4px solid #e4572e;
  background: #fff8f4;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 650;
  color: var(--text);
  white-space: normal;
}
#phw .phw-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
#phw .phw-hub-card {
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: 14px;
  padding: 10px 12px;
  font-family: inherit;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-width: 0;
}
#phw .phw-hub-card b {
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#phw .phw-hub-card span {
  font-size: 11px;
  color: var(--muted);
}
#phw .phw-hub-card.on { outline: 2px solid var(--accent); }
#phw .phw-hub-card.host { border-style: dashed; background: #fff8e8; }

/* —— 작심 브리핑 (was stiff 현장) —— */
#phw .phw-jaksim-card {
  background:
    linear-gradient(160deg, rgba(15, 155, 134, 0.08), transparent 42%),
    linear-gradient(320deg, rgba(244, 162, 2, 0.1), transparent 40%),
    var(--panel);
}
#phw .phw-jaksim-lead {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 600;
}
#phw .phw-jaksim-panel {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
#phw .phw-jaksim-panel h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
#phw .phw-news-local {
  display: grid;
  gap: 10px;
}
#phw .phw-news-local .phw-news-row,
#phw .phw-news-local a,
#phw .phw-local-fallback {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3fbf8;
  border-left: 3px solid var(--accent);
  text-decoration: none !important;
  color: inherit !important;
}
#phw .phw-news-local .phw-news-row > a {
  display: grid;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}
#phw .phw-news-local .phw-bite-tag,
#phw .phw-local-fallback .phw-bite-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent);
}

/* —— history —— */
#phw .phw-history-hero {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8faf5, #fff8e8);
  border: 1px solid var(--line);
}
#phw .phw-history-hero h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}
#phw .phw-history-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#phw .phw-history-card {
  padding: 12px;
  border-radius: 14px;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-width: 0;
}
#phw .phw-history-card.focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(15, 155, 134, 0.25);
}
#phw .phw-history-card.host {
  border-style: dashed;
  background: #fff8e8;
}
#phw .phw-history-card b { font-size: 14px; }
#phw .phw-history-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
#phw .phw-history-card small {
  color: var(--muted);
  font-size: 11px;
}

/* —— industry stack —— */
#phw .phw-industry-wrap {
  display: grid;
  gap: 14px;
  margin: 0 12px;
  min-width: 0;
}
#phw .phw-industry-head { padding: 0 2px; }
#phw .phw-industry-sec { margin: 0; }
#phw #phwIndustryMount {
  display: grid;
  gap: 14px;
}
