:root {
  --plg-ink: #07090d;
  --plg-panel: #10141b;
  --plg-panel-2: #171c24;
  --plg-paper: #f4f2ed;
  --plg-muted: #8e96a3;
  --plg-line: rgba(244, 242, 237, .13);
  --plg-lime: #c9ff45;
  --plg-coral: #ff715f;
  --plg-blue: #8ee7ff;
  --goal-accent: #c9ff45;
}

html:has(body.pl-goals-page), body.pl-goals-page {
  background: var(--plg-ink) !important;
  margin: 0 !important;
  overflow-x: clip !important;
}

body.pl-goals-page .l-canvas,
body.pl-goals-page .l-main {
  background: var(--plg-ink) !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.pl-goals-page .l-section {
  background: transparent !important;
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

body.pl-goals-page .l-section-h {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  width: 100% !important;
}

.pl-goals-app,
.pl-goals-app *,
.pl-goals-overlay,
.pl-goals-overlay * {
  box-sizing: border-box;
}

.pl-goals-app {
  background:
    radial-gradient(circle at 8% 2%, rgba(201, 255, 69, .06), transparent 26rem),
    radial-gradient(circle at 96% 18%, rgba(255, 113, 95, .07), transparent 32rem),
    var(--plg-ink);
  color: var(--plg-paper);
  font-family: "Bahnschrift", "Arial Narrow", "Noto Sans JP", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  min-height: 100vh;
  width: 100%;
}

.pl-goals-app :where(h1, h2, h3, h4, h5, h6, p) {
  color: inherit;
  margin: 0;
  padding: 0;
}

.pl-goals-app :where(button, input, select) {
  font: inherit;
}

.pl-goals-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.pl-goals-shell::before {
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
  position: absolute;
}

.pl-goals-nav {
  align-items: center;
  border-bottom: 1px solid var(--plg-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 76px;
  padding: 0 clamp(24px, 4vw, 72px);
  position: relative;
  z-index: 4;
}

.pl-goals-wordmark {
  align-items: baseline;
  color: var(--plg-paper) !important;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 4px;
  letter-spacing: .16em;
  text-decoration: none !important;
  width: max-content;
}

.pl-goals-wordmark b { color: var(--plg-lime); font-weight: 800; }
.pl-goals-wordmark i { background: var(--plg-coral); border-radius: 50%; box-shadow: 0 0 14px rgba(255, 113, 95, .65); height: 6px; margin-left: 3px; width: 6px; }

.pl-goals-product {
  align-items: center;
  display: flex;
  gap: 14px;
}

.pl-goals-product span,
.pl-goals-product b {
  font-size: 10px;
  letter-spacing: .2em;
}

.pl-goals-product span { color: var(--plg-paper); }
.pl-goals-product b { border: 1px solid rgba(201, 255, 69, .35); color: var(--plg-lime); padding: 5px 7px; }

.pl-goals-help {
  align-items: center;
  background: none;
  border: 0;
  color: var(--plg-muted);
  cursor: pointer;
  display: flex;
  font-size: 10px;
  gap: 10px;
  letter-spacing: .14em;
  padding: 10px 0;
}

.pl-goals-nav-actions { align-items: center; display: flex; gap: 20px; justify-self: end; }
.pl-goals-nav-actions > a { color: var(--plg-lime) !important; font-size: 9px; letter-spacing: .13em; text-decoration: none !important; }

.pl-goals-help span {
  align-items: center;
  border: 1px solid var(--plg-line);
  border-radius: 50%;
  color: var(--plg-paper);
  display: inline-flex;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.pl-goals-main {
  margin: 0 auto;
  max-width: 1500px;
  padding: 0 clamp(24px, 4vw, 72px) 110px;
  position: relative;
  z-index: 2;
}

.pl-goals-intro {
  align-items: end;
  display: grid;
  gap: 42px;
  grid-template-columns: .62fr 1.55fr .8fr;
  min-height: 390px;
  padding: 82px 0 56px;
}

.pl-goals-kicker {
  align-items: center;
  color: var(--plg-muted) !important;
  display: flex;
  font-size: 10px;
  gap: 10px;
  letter-spacing: .19em;
}

.pl-goals-kicker i {
  background: var(--plg-lime);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(201, 255, 69, .55);
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

.pl-goals-intro h1 {
  font-size: clamp(48px, 5.5vw, 86px);
  font-stretch: condensed;
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .94;
  text-transform: uppercase;
}

.pl-goals-intro h1 em {
  color: var(--plg-lime);
  font-style: normal;
}

.pl-goals-intro div > p {
  color: #aab0ba;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 680px;
}

.pl-goals-trust {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 5px;
}

.pl-goals-trust span {
  border-left: 2px solid var(--plg-line);
  color: var(--plg-muted);
  font-size: 9px;
  letter-spacing: .16em;
  padding: 3px 0 3px 12px;
}

.pl-goals-workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.06fr) minmax(450px, .94fr);
}

.pl-goals-preview-card,
.pl-goals-manager,
.pl-goals-settings,
.pl-goals-delivery {
  background: rgba(15, 19, 26, .93);
  border: 1px solid var(--plg-line);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .26);
}

.pl-goals-preview-card,
.pl-goals-manager { padding: clamp(22px, 2.4vw, 36px); }

.pl-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.pl-panel-head small,
.pl-settings-grid label > span,
.pl-goal-fields label > span {
  color: var(--plg-muted);
  display: block;
  font-size: 9px;
  letter-spacing: .17em;
  margin-bottom: 6px;
}

.pl-panel-head h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1;
}

.pl-sync-status {
  align-items: center;
  background: rgba(201, 255, 69, .06);
  border: 1px solid rgba(201, 255, 69, .2);
  color: var(--plg-lime);
  display: inline-flex;
  font-size: 9px;
  gap: 8px;
  letter-spacing: .12em;
  padding: 8px 10px;
}

.pl-sync-status i {
  animation: plg-pulse 1.6s ease-in-out infinite;
  background: currentColor;
  border-radius: 50%;
  height: 6px;
  width: 6px;
}

.pl-sync-status.is-error { background: rgba(255, 113, 95, .06); border-color: rgba(255, 113, 95, .22); color: var(--plg-coral); }

.pl-preview-stage {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(142, 231, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 231, 255, .035) 1px, transparent 1px),
    #080b10;
  background-size: 28px 28px;
  border: 1px solid rgba(142, 231, 255, .15);
  overflow: hidden;
  position: relative;
}

.pl-preview-stage::before,
.pl-preview-stage::after {
  border: 1px solid rgba(142, 231, 255, .08);
  content: "";
  inset: 8%;
  pointer-events: none;
  position: absolute;
}

.pl-preview-stage::after { inset: 20%; }
.pl-preview-safe { color: rgba(142, 231, 255, .35); font-size: 7px; left: 12px; letter-spacing: .12em; position: absolute; top: 10px; }

.pl-preview-widget {
  --preview-transform-scale: .72;
  background: rgba(5, 7, 10, .97);
  border: 1px solid color-mix(in srgb, var(--goal-accent), #fff 10%);
  bottom: 6%;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .52), 0 0 14px color-mix(in srgb, var(--goal-accent), transparent 92%);
  color: #fff;
  left: 4%;
  max-height: 88%;
  overflow: hidden;
  padding: 11px;
  position: absolute;
  transform: scale(var(--preview-transform-scale));
  transform-origin: bottom left;
  width: 390px;
}

.pl-preview-widget[data-position="bottom-right"] { left: auto; right: 4%; transform-origin: bottom right; }
.pl-preview-widget[data-position="top-left"] { bottom: auto; top: 6%; transform-origin: top left; }
.pl-preview-widget[data-position="top-right"] { bottom: auto; left: auto; right: 4%; top: 6%; transform-origin: top right; }
.pl-preview-widget[data-position="center"] { bottom: auto; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--preview-transform-scale)); transform-origin: center; }

.pl-preview-widget[data-theme="sakura"] { background: rgba(255, 250, 252, .985); color: #241017; }
.pl-preview-widget[data-theme="yuzu"] { background: rgba(22, 18, 4, .985); color: #fffbed; }
.pl-preview-widget[data-theme="mono"] { background: rgba(4, 4, 4, .985); color: #fff; }

.pl-pv-top {
  align-items: center;
  border-bottom: 1px solid currentColor;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  padding-bottom: 7px;
}

.pl-pv-top > div { align-items: center; display: flex; gap: 12px; }
.pl-pv-top small { font-size: 7px; font-weight: 700; letter-spacing: .14em; opacity: .72; }
.pl-pv-top small span { margin-left: 5px; }
.pl-pv-top strong { color: var(--goal-accent); font-family: "Noto Sans JP", monospace; font-size: 17px; line-height: 1; white-space: nowrap; }
.pl-pv-top > span { font-size: 6px; font-weight: 700; letter-spacing: .11em; opacity: .7; }
.pl-pv-top > span b { color: var(--goal-accent); margin-left: 3px; }
.pl-pv-top > span i { background: #ff715f; border-radius: 50%; display: inline-block; height: 4px; margin-left: 3px; width: 4px; }

.pl-pv-goals { display: grid; gap: 7px; }
.pl-pv-goals article { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.14); padding: 8px 9px; }
.pl-preview-widget[data-theme="sakura"] .pl-pv-goals article { border-color: rgba(50,26,37,.15); }
.pl-pv-goals article.is-active { border-color: color-mix(in srgb, var(--goal-accent), transparent 45%); }
.pl-pv-goals article.is-complete { background: color-mix(in srgb, var(--goal-accent), transparent 90%); border-color: var(--goal-accent); }
.pl-pv-goals article > div:first-child { align-items: end; display: grid; gap: 3px 7px; grid-template-columns: 50px 1fr auto; }
.pl-pv-goals span { color: var(--goal-accent); font-size: 6px; font-weight: 800; letter-spacing: .09em; }
.pl-pv-goals strong { font-size: 13px; font-weight: 780; letter-spacing: .025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-pv-goals b { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.pl-pv-goals b small { font-size: 8px; font-weight: 650; opacity: .82; }
.pl-pv-track { background: rgba(255,255,255,.1); height: 5px; margin-top: 7px; position: relative; }
.pl-pv-track i { background: var(--goal-accent); box-shadow: 0 0 10px color-mix(in srgb, var(--goal-accent), transparent 45%); display: block; height: 100%; }
.pl-pv-track span { color: currentColor; font-size: 6px; font-weight: 700; position: absolute; right: 0; top: -11px; }

.pl-preview-widget[data-layout="compact"] { align-items: center; display: grid; gap: 12px; grid-template-columns: 76px minmax(0, 1fr); width: 440px; }
.pl-preview-widget[data-layout="compact"] .pl-pv-top { align-self: stretch; border: 0; border-right: 1px solid currentColor; justify-content: center; margin: 0; opacity: .92; padding: 0 12px 0 0; }
.pl-preview-widget[data-layout="compact"] .pl-pv-top small,
.pl-preview-widget[data-layout="compact"] .pl-pv-top > span,
.pl-preview-widget[data-layout="compact"] .pl-pv-goals span { display: none; }
.pl-preview-widget[data-layout="compact"] .pl-pv-top strong { font-size: 18px; }
.pl-preview-widget[data-layout="compact"] .pl-pv-goals article { border: 0; min-width: 0; padding: 3px 0; }
.pl-preview-widget[data-layout="compact"] .pl-pv-goals article > div:first-child { grid-template-columns: 1fr auto; }

.pl-preview-burst { inset: 0; pointer-events: none; position: absolute; }
.pl-preview-burst i { background: var(--plg-lime); border-radius: 50%; height: 4px; left: 50%; opacity: 0; position: absolute; top: 50%; width: 4px; }
.pl-preview-burst.is-active i { animation: plg-preview-burst 1.2s cubic-bezier(.17,.67,.25,1) both; }
.pl-preview-burst i:nth-child(2) { --x: 120px; --y: -90px; background: var(--plg-coral); }
.pl-preview-burst i:nth-child(3) { --x: -150px; --y: -70px; background: var(--plg-blue); }
.pl-preview-burst i:nth-child(4) { --x: 175px; --y: 28px; }
.pl-preview-burst i:nth-child(5) { --x: -180px; --y: 38px; background: var(--plg-coral); }
.pl-preview-burst i:nth-child(6) { --x: 80px; --y: 105px; background: var(--plg-blue); }
.pl-preview-burst i:nth-child(7) { --x: -60px; --y: 115px; }
.pl-preview-burst i:nth-child(8) { --x: 10px; --y: -135px; background: var(--plg-coral); }

.pl-preview-hit {
  background: var(--plg-paper);
  border: 2px solid var(--plg-ink);
  box-shadow: 7px 7px 0 var(--plg-lime);
  color: var(--plg-ink);
  left: 50%;
  min-width: min(78%, 430px);
  opacity: 0;
  padding: 13px 20px 15px;
  position: absolute;
  text-align: center;
  top: 50%;
  transform: translate(-50%, -50%) scale(.75) rotate(-3deg);
  visibility: hidden;
  z-index: 4;
}
.pl-preview-hit small { display: block; font-size: 6px; letter-spacing: .15em; }
.pl-preview-hit strong { display: block; font-size: clamp(16px, 2vw, 25px); line-height: 1; margin: 4px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-preview-hit span { color: #d5416e; font-family: "Noto Sans JP", monospace; font-size: 11px; }
.pl-preview-hit.is-active { animation: plg-preview-hit 3.8s cubic-bezier(.2,.8,.2,1) both; visibility: visible; }

.pl-quick-dock {
  align-items: center;
  background: #0b0e13;
  border: 1px solid var(--plg-line);
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding: 13px 14px;
}

.pl-quick-dock small { color: var(--plg-muted); display: block; font-size: 8px; letter-spacing: .13em; }
.pl-quick-dock strong { display: block; font-size: 12px; letter-spacing: .04em; margin-top: 2px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-quick-buttons { display: flex; gap: 6px; }
.pl-quick-buttons button,
.pl-preview-actions button,
.pl-add-goal,
.pl-url-stack button,
.pl-url-stack a {
  background: transparent;
  border: 1px solid var(--plg-line);
  color: var(--plg-paper);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 9px 11px;
  text-decoration: none !important;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.pl-quick-buttons button:hover,
.pl-preview-actions button:hover,
.pl-url-stack button:hover,
.pl-url-stack a:hover { border-color: var(--plg-lime); color: var(--plg-lime); transform: translateY(-1px); }
.pl-quick-buttons button.is-primary { background: var(--plg-lime); border-color: var(--plg-lime); color: #10140a; }

.pl-preview-actions { display: flex; gap: 8px; margin-top: 9px; }
.pl-preview-actions button { flex: 1; }
.pl-preview-actions button:disabled { cursor: not-allowed; opacity: .28; transform: none; }

.pl-add-goal { align-items: center; border-color: rgba(201,255,69,.35); color: var(--plg-lime); display: flex; gap: 7px; }
.pl-add-goal span { font-size: 15px; line-height: 0; }
.pl-manager-note { color: var(--plg-muted) !important; font-family: Arial, sans-serif; font-size: 11px; margin: -10px 0 17px !important; }
.pl-manager-note a { color: var(--plg-lime) !important; text-decoration: none !important; }
.pl-goal-list { display: grid; gap: 8px; }

.pl-goal-editor {
  align-items: start;
  background: #0b0e13;
  border: 1px solid var(--plg-line);
  display: grid;
  gap: 10px;
  grid-template-columns: 20px 25px 1fr auto;
  padding: 13px 10px;
  position: relative;
  transition: border-color .2s ease, opacity .2s ease;
}

.pl-goal-editor.is-active { border-color: rgba(201,255,69,.48); box-shadow: inset 2px 0 var(--plg-lime); }
.pl-goal-editor.is-hidden { opacity: .48; }
.pl-goal-radio { background: none; border: 0; cursor: pointer; height: 24px; padding: 5px; width: 20px; }
.pl-goal-radio i { border: 1px solid #59616c; border-radius: 50%; display: block; height: 10px; width: 10px; }
.pl-goal-editor.is-active .pl-goal-radio i { background: var(--plg-lime); border-color: var(--plg-lime); box-shadow: 0 0 9px rgba(201,255,69,.5); }
.pl-goal-number { color: #4e5661; font-size: 10px; padding-top: 7px; }
.pl-goal-fields { min-width: 0; }
.pl-goal-fields > label { display: block; }
.pl-goal-fields > div { display: grid; gap: 7px; grid-template-columns: .7fr .7fr 1fr; margin-top: 7px; }

.pl-goal-fields input,
.pl-goal-fields select,
.pl-settings-grid input[type="text"],
.pl-settings-grid input[type="number"],
.pl-settings-grid select {
  background: #151a22;
  border: 1px solid var(--plg-line);
  border-radius: 0;
  color: var(--plg-paper);
  min-height: 35px;
  outline: none;
  padding: 7px 9px;
  width: 100%;
}

.pl-goal-fields input { font-size: 11px; }
.pl-goal-fields select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7f8792 50%), linear-gradient(135deg, #7f8792 50%, transparent 50%); background-position: calc(100% - 14px) 15px, calc(100% - 10px) 15px; background-repeat: no-repeat; background-size: 4px 4px; font-size: 10px; padding-right: 26px; }
.pl-goal-fields input:focus,
.pl-goal-fields select:focus,
.pl-settings-grid input:focus,
.pl-settings-grid select:focus { border-color: rgba(201,255,69,.7); box-shadow: 0 0 0 1px rgba(201,255,69,.12); }
.pl-goal-fields label > span { font-size: 7px; margin-bottom: 3px; }

.pl-editor-progress { background: #1d222a; grid-column: 1 / -1; height: 3px; margin-top: 9px !important; position: relative; }
.pl-editor-progress i { background: var(--plg-lime); display: block; height: 100%; max-width: 100%; }
.pl-editor-progress span { color: #717985; font-size: 7px; position: absolute; right: 0; top: -11px; }

.pl-goal-fields > .pl-goal-event-map { align-items: end; background: rgba(201,255,69,.025); border: 1px solid rgba(201,255,69,.1); grid-template-columns: minmax(130px,1fr) 72px minmax(110px,.9fr); margin-top: 9px; padding: 8px; }
.pl-goal-event-map p { color: var(--plg-muted) !important; font-family: Arial,sans-serif; font-size: 8px; line-height: 1.35; margin: 0 0 5px !important; }

.pl-goal-tools { display: grid; gap: 3px; grid-template-columns: 1fr 1fr; }
.pl-goal-tools button { background: #151a22; border: 1px solid var(--plg-line); color: #7f8792; cursor: pointer; height: 24px; line-height: 1; padding: 0; width: 25px; }
.pl-goal-tools button:hover { border-color: #77808d; color: #fff; }
.pl-goal-tools button:disabled { cursor: not-allowed; opacity: .2; }
.pl-goal-tools button.pl-delete:hover { border-color: var(--plg-coral); color: var(--plg-coral); }
.pl-goal-limit { color: #525a66 !important; font-size: 8px; letter-spacing: .14em; margin: 13px 0 0 !important; text-align: right; }

.pl-goals-settings { margin-top: 18px; padding: clamp(24px, 3.2vw, 46px); }
.pl-kaomoji-seal { color: var(--plg-lime); font-family: "Noto Sans JP", monospace; font-size: clamp(18px, 2vw, 26px); }
.pl-settings-grid { display: grid; gap: 18px 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-settings-grid label { min-width: 0; }
.pl-settings-grid .pl-wide-setting { grid-column: span 2; }
.pl-settings-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7f8792 50%), linear-gradient(135deg, #7f8792 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 11px) 15px; background-repeat: no-repeat; background-size: 4px 4px; padding-right: 28px; }
.pl-settings-grid input[type="color"] { background: #151a22; border: 1px solid var(--plg-line); cursor: pointer; height: 35px; padding: 4px; width: 100%; }
.pl-settings-grid input[type="range"] { accent-color: var(--plg-lime); height: 35px; margin: 0; width: 100%; }
.pl-settings-grid label > span b { color: var(--plg-paper); float: right; font-weight: 400; }
.pl-settings-grid .pl-box-scale-setting > small { color: var(--plg-muted); display: block; font-family: Arial,sans-serif; font-size: 8px; line-height: 1.35; margin-top: 2px; }

.pl-settings-grid .pl-check-setting {
  align-items: center;
  background: #0b0e13;
  border: 1px solid var(--plg-line);
  cursor: pointer;
  display: flex;
  gap: 11px;
  min-height: 52px;
  padding: 9px 11px;
}

.pl-check-setting input { accent-color: var(--plg-lime); height: 16px; width: 16px; }
.pl-settings-grid .pl-check-setting > span { margin: 0; }
.pl-check-setting b { color: var(--plg-paper); display: block; font-size: 9px; letter-spacing: .11em; }
.pl-check-setting small { color: var(--plg-muted); display: block; font-family: Arial, sans-serif; font-size: 9px; margin-top: 2px; }

.pl-goals-delivery { align-items: center; display: grid; gap: clamp(30px, 5vw, 80px); grid-template-columns: .8fr 1.2fr; margin-top: 18px; padding: clamp(28px, 4vw, 60px); }
.pl-delivery-copy h2 { font-size: clamp(34px, 4vw, 56px); letter-spacing: -.05em; line-height: .95; margin-top: 16px; text-transform: uppercase; }
.pl-delivery-copy > p:last-child { color: var(--plg-muted); font-family: Arial, sans-serif; font-size: 13px; line-height: 1.65; margin-top: 20px; max-width: 470px; }
.pl-delivery-copy strong { color: var(--plg-paper); }
.pl-url-stack { display: grid; gap: 8px; min-width: 0; }
.pl-url-stack article { align-items: center; background: #0b0e13; border: 1px solid var(--plg-line); display: flex; gap: 14px; justify-content: space-between; min-width: 0; padding: 13px; }
.pl-url-stack article > div:first-child { min-width: 0; }
.pl-url-stack small { color: var(--plg-muted); display: block; font-size: 7px; letter-spacing: .15em; }
.pl-url-stack strong { display: block; font-family: Consolas, monospace; font-size: 9px; font-weight: 400; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-url-stack article > div:last-child { display: flex; flex: 0 0 auto; gap: 5px; }
.pl-url-stack button,
.pl-url-stack a { display: inline-block; padding: 8px 9px; }
.pl-url-stack > p { align-items: start; color: var(--plg-muted) !important; display: flex; font-family: Arial, sans-serif; font-size: 10px; gap: 8px; line-height: 1.5; margin: 4px 0 0 !important; }
.pl-url-stack > p i { background: var(--plg-coral); border-radius: 50%; flex: 0 0 auto; height: 5px; margin-top: 5px; width: 5px; }
.pl-url-stack code { color: var(--plg-blue); font-size: 9px; }

.pl-goals-help-panel {
  background: #0d1117;
  border-left: 1px solid var(--plg-line);
  bottom: 0;
  box-shadow: -30px 0 90px rgba(0,0,0,.48);
  color: var(--plg-paper);
  max-width: 520px;
  overflow-y: auto;
  padding: 70px 46px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(92vw, 520px);
  z-index: 99999;
}

.pl-goals-help-panel[hidden] { display: none; }
.pl-goals-help-panel > button { background: none; border: 1px solid var(--plg-line); color: var(--plg-paper); cursor: pointer; font-size: 25px; height: 38px; line-height: 1; position: absolute; right: 25px; top: 24px; width: 38px; }
.pl-goals-help-panel h2 { font-size: 42px; letter-spacing: -.045em; line-height: 1; margin: 20px 0 38px; text-transform: uppercase; }
.pl-goals-help-panel ol { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pl-goals-help-panel li { align-items: start; background: #141921; border: 1px solid var(--plg-line); display: grid; gap: 14px; grid-template-columns: 36px 1fr; padding: 18px; }
.pl-goals-help-panel li > b { color: var(--plg-lime); font-size: 11px; }
.pl-goals-help-panel strong { display: block; font-size: 13px; letter-spacing: .03em; }
.pl-goals-help-panel span { color: var(--plg-muted); display: block; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.55; margin-top: 5px; }

/* Transparent OBS canvas */
html:has(body.pl-goals-overlay-body),
body.pl-goals-overlay-body {
  background: transparent !important;
  height: 100%;
  margin: 0 !important;
  overflow: hidden !important;
  width: 100%;
}

.pl-goals-overlay-body #pl-goals-fx {
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 4;
}

.pl-dom-celebration {
  inset: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  visibility: hidden;
  z-index: 6;
}

.pl-dom-celebration.is-active { opacity: 1; visibility: visible; }
.pl-css-firework { color: #c9ff45; height: 1px; left: 24%; position: absolute; top: 32%; width: 1px; }
.pl-css-firework:nth-child(2) { color: #ff715f; left: 72%; top: 24%; --burst-delay: .36s; }
.pl-css-firework:nth-child(3) { color: #8ee7ff; left: 48%; top: 18%; --burst-delay: .78s; }
.pl-css-firework:nth-child(4) { color: #f4f2ed; left: 82%; top: 52%; --burst-delay: 1.18s; }
.pl-css-firework:nth-child(5) { color: #ff96b8; left: 16%; top: 57%; --burst-delay: 1.55s; }
.pl-css-firework:nth-child(6) { color: #ffd84a; left: 58%; top: 43%; --burst-delay: 1.92s; }
.pl-css-firework::after { animation: plg-css-ring 1.25s ease-out both; animation-delay: var(--burst-delay, 0s); border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 0 16px currentColor; content: ""; height: 20px; left: -10px; opacity: 0; position: absolute; top: -10px; width: 20px; }
.pl-css-firework > i { height: 2px; left: 0; position: absolute; top: 0; transform: rotate(var(--angle)); width: 2px; }
.pl-css-firework > i > b { animation: plg-css-spark 1.38s cubic-bezier(.12,.62,.22,1) both; animation-delay: calc(var(--burst-delay, 0s) + var(--spark-delay)); background: linear-gradient(to top, transparent 0 8%, currentColor 46% 100%); border-radius: 4px; box-shadow: 0 0 9px currentColor; display: block; height: 28px; transform-origin: 50% 100%; width: 4px; }
.pl-css-petals { inset: 0; position: absolute; }
.pl-css-petals > i { animation: plg-css-petal 4.8s linear both; animation-delay: var(--petal-delay); background: #ff96b8; border-radius: 70% 15% 70% 15%; box-shadow: 0 0 6px rgba(255,150,184,.48); height: 15px; left: var(--petal-x); opacity: 0; position: absolute; top: -30px; width: 10px; }
.pl-css-petals > i:nth-child(3n) { background: #ffe1eb; height: 11px; width: 8px; }
.pl-dom-celebration[data-fx="fireworks"] .pl-css-petals,
.pl-dom-celebration[data-fx="stars"] .pl-css-petals,
.pl-dom-celebration[data-fx="sakura"] .pl-css-firework { display: none; }
.pl-dom-celebration[data-fx="stars"] .pl-css-firework { color: #f4f2ed; }

.pl-goals-overlay {
  color: #fff;
  font-family: "Segoe UI", Arial, "Noto Sans JP", sans-serif;
  font-synthesis: none;
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 3;
}

.pl-overlay-anchor {
  align-items: flex-end;
  display: flex;
  height: 1080px;
  justify-content: flex-start;
  padding: 68px;
  position: absolute;
  transform: scale(var(--canvas-scale, 1));
  transform-origin: left top;
  width: 1920px;
}

.pl-overlay-anchor[data-position="bottom-right"] { justify-content: flex-end; }
.pl-overlay-anchor[data-position="top-left"] { align-items: flex-start; }
.pl-overlay-anchor[data-position="top-right"] { align-items: flex-start; justify-content: flex-end; }
.pl-overlay-anchor[data-position="center"] { align-items: center; justify-content: center; }

.pl-goal-widget {
  --goal-render-scale: 1;
  --goal-bg: rgba(5, 7, 10, .975);
  --goal-text: #fff;
  --goal-muted: #b9c0ca;
  --goal-line: rgba(255,255,255,.24);
  background: var(--goal-bg);
  border: 1px solid var(--goal-accent);
  border: 1px solid color-mix(in srgb, var(--goal-accent), #fff 12%);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .62), 0 0 14px color-mix(in srgb, var(--goal-accent), transparent 92%);
  color: var(--goal-text);
  font-weight: 500;
  overflow: hidden;
  padding: 18px;
  position: relative;
  text-rendering: geometricPrecision;
  transition: opacity .3s ease, filter .3s ease;
  width: 560px;
  zoom: var(--goal-render-scale);
}

.pl-goal-widget.is-offline { opacity: .66; }
.pl-widget-washi { background: repeating-linear-gradient(112deg, transparent 0 7px, rgba(255,255,255,.018) 8px 9px); inset: 0; opacity: .42; pointer-events: none; position: absolute; }

.pl-goal-widget[data-theme="sakura"] { --goal-bg: rgba(255, 250, 252, .985); --goal-text: #241017; --goal-muted: #704b5a; --goal-line: rgba(36,16,23,.24); }
.pl-goal-widget[data-theme="yuzu"] { --goal-bg: rgba(22, 18, 4, .985); --goal-text: #fffbed; --goal-muted: #d0c398; --goal-line: rgba(255,251,237,.24); }
.pl-goal-widget[data-theme="mono"] { --goal-bg: rgba(4, 4, 4, .985); --goal-text: #fff; --goal-muted: #c5c5c5; --goal-line: rgba(255,255,255,.28); }

.pl-goal-widget > header {
  align-items: center;
  border-bottom: 1px solid var(--goal-line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  position: relative;
}

.pl-goal-widget > header > div { align-items: center; display: flex; gap: 19px; }
.pl-goal-widget > header small { color: var(--goal-muted); font-size: 10px; font-weight: 750; letter-spacing: .14em; }
.pl-goal-widget > header small span { margin-left: 7px; }
.pl-goal-widget > header strong { color: var(--goal-accent); font-family: "Noto Sans JP", "Segoe UI Symbol", monospace; font-size: 28px; font-weight: 750; line-height: 1; text-shadow: 0 0 5px color-mix(in srgb, var(--goal-accent), transparent 72%); white-space: nowrap; }
.pl-overlay-brand { font-size: 9px; font-weight: 800; letter-spacing: .12em; opacity: .72; }
.pl-overlay-brand b { color: var(--goal-accent); margin-left: 4px; }
.pl-overlay-brand i { background: #ff715f; border-radius: 50%; box-shadow: 0 0 10px #ff715f; display: inline-block; height: 5px; margin-left: 4px; width: 5px; }

.pl-overlay-goals { display: grid; gap: 10px; position: relative; }
.pl-overlay-goals article { background: rgba(255,255,255,.045); background: color-mix(in srgb, var(--goal-text), transparent 95.5%); border: 1px solid var(--goal-line); padding: 12px 14px 11px; position: relative; }
.pl-overlay-goals article.is-active { border-color: var(--goal-accent); box-shadow: inset 3px 0 var(--goal-accent); }
.pl-overlay-goals article.is-complete { background: color-mix(in srgb, var(--goal-accent), transparent 89%); border-color: var(--goal-accent); box-shadow: inset 4px 0 var(--goal-accent); opacity: 1; }
.pl-ov-goal-copy { align-items: end; display: grid; gap: 9px; grid-template-columns: 72px 1fr auto; }
.pl-ov-goal-copy > span { color: var(--goal-accent); font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.pl-ov-goal-copy > strong { font-size: 20px; font-weight: 780; letter-spacing: .025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-ov-goal-copy > b { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
.pl-ov-goal-copy > b small { color: var(--goal-muted); font-size: 11px; font-weight: 650; letter-spacing: .045em; }
.pl-ov-track { background: rgba(255,255,255,.18); background: color-mix(in srgb, var(--goal-text), transparent 82%); height: 9px; margin-top: 12px; overflow: visible; position: relative; }
.pl-ov-track > i { background: linear-gradient(90deg, color-mix(in srgb, var(--goal-accent), #fff 16%), var(--goal-accent)); box-shadow: 0 0 18px color-mix(in srgb, var(--goal-accent), transparent 35%); display: block; height: 100%; max-width: 100%; transition: width .5s cubic-bezier(.2,.8,.2,1); width: var(--progress); }
.pl-ov-track > b { color: var(--goal-muted); font-size: 10px; font-weight: 750; letter-spacing: .07em; position: absolute; right: 0; top: -17px; }
.pl-empty-goals { font-size: 13px; letter-spacing: .12em; opacity: .55; padding: 22px 0; text-align: center; }

.pl-goal-widget[data-layout="focus"] { width: 620px; }
.pl-goal-widget[data-layout="focus"] .pl-overlay-goals article:first-child { padding: 16px; }
.pl-goal-widget[data-layout="focus"] .pl-overlay-goals article:first-child .pl-ov-goal-copy > strong { font-size: 23px; }
.pl-goal-widget[data-layout="focus"] .pl-overlay-goals article:first-child .pl-ov-goal-copy > b { font-size: 38px; }
.pl-goal-widget[data-layout="compact"] { align-items: center; display: grid; gap: 18px; grid-template-columns: 118px minmax(0, 1fr); padding: 14px 16px; width: 650px; }
.pl-goal-widget[data-layout="compact"] > header { align-self: stretch; border: 0; border-right: 1px solid var(--goal-line); justify-content: center; margin: 0; padding: 0 18px 0 0; }
.pl-goal-widget[data-layout="compact"] > header > div { justify-content: center; width: 100%; }
.pl-goal-widget[data-layout="compact"] > header small { display: none; }
.pl-goal-widget[data-layout="compact"] > header strong { font-size: 25px; }
.pl-goal-widget[data-layout="compact"] .pl-overlay-brand,
.pl-goal-widget[data-layout="compact"] .pl-ov-goal-copy > span { display: none; }
.pl-goal-widget[data-layout="compact"] .pl-overlay-goals article { background: transparent; border: 0; box-shadow: none; padding: 3px 0; }
.pl-goal-widget[data-layout="compact"] .pl-ov-goal-copy { grid-template-columns: 1fr auto; }
.pl-goal-widget[data-layout="compact"] .pl-ov-goal-copy > strong { font-size: 21px; }
.pl-goal-widget[data-layout="compact"] .pl-ov-goal-copy > b { font-size: 32px; }

.pl-goal-widget[data-density="tight"][data-layout="stack"] { padding: 19px; }
.pl-goal-widget[data-density="tight"][data-layout="stack"] > header { margin-bottom: 10px; padding-bottom: 10px; }
.pl-goal-widget[data-density="tight"][data-layout="stack"] .pl-overlay-goals { gap: 6px; }
.pl-goal-widget[data-density="tight"][data-layout="stack"] .pl-overlay-goals article { padding: 10px 12px 9px; }
.pl-goal-widget[data-density="tight"][data-layout="stack"] .pl-ov-track { height: 6px; margin-top: 8px; }
.pl-goal-widget[data-density="tight"][data-layout="stack"] > footer { margin-top: 9px; }

.pl-goal-widget[data-density="dense"][data-layout="stack"] { padding: 14px 16px; width: 610px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] > header { margin-bottom: 7px; padding-bottom: 7px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] > header strong { font-size: 18px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-overlay-goals { gap: 4px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-overlay-goals article { padding: 6px 10px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-ov-goal-copy { grid-template-columns: 60px 1fr auto; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-ov-goal-copy > strong { font-size: 15px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-ov-goal-copy > b { font-size: 22px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] .pl-ov-track { height: 5px; margin-top: 5px; }
.pl-goal-widget[data-density="dense"][data-layout="stack"] > footer { margin-top: 6px; }

.pl-goal-widget.is-celebrating { animation: plg-widget-celebrate 1.7s ease both; }
.pl-goal-hit {
  background: #f4f2ed;
  border: 3px solid #07090d;
  box-shadow: 12px 12px 0 var(--goal-accent, #c9ff45), 0 35px 90px rgba(0,0,0,.45);
  color: #07090d;
  left: 50%;
  min-width: 650px;
  opacity: 0;
  padding: 30px 50px 34px;
  position: absolute;
  text-align: center;
  top: 38%;
  transform: translate(-50%, -50%) scale(.7) rotate(-2deg);
  visibility: hidden;
  z-index: 8;
}

.pl-goal-hit::before,
.pl-goal-hit::after { border-top: 3px solid #07090d; content: ""; left: -65px; position: absolute; top: 50%; width: 52px; }
.pl-goal-hit::after { left: auto; right: -65px; }
.pl-goal-hit small { display: block; font-size: 11px; letter-spacing: .2em; }
.pl-goal-hit strong { display: block; font-size: 56px; letter-spacing: -.04em; line-height: 1; margin-top: 11px; max-width: 850px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pl-goal-hit span { color: #d5416e; display: block; font-family: "Noto Sans JP", "Segoe UI Symbol", monospace; font-size: 27px; margin-top: 12px; }
.pl-goal-hit > i { background: #ff715f; border-radius: 50%; box-shadow: 0 0 16px #ff715f; height: 9px; position: absolute; right: 17px; top: 17px; width: 9px; }
.pl-goal-hit.is-active { animation: plg-goal-hit 4.5s cubic-bezier(.2,.8,.2,1) both; visibility: visible; }

@keyframes plg-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes plg-preview-burst { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x, 0), var(--y, -120px)) scale(1.8); } }
@keyframes plg-preview-hit { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.7) rotate(-5deg); } 10% { opacity: 1; transform: translate(-50%,-50%) scale(1.05) rotate(1deg); } 16%,76% { opacity: 1; transform: translate(-50%,-50%) scale(1) rotate(-1deg); } 100% { opacity: 0; transform: translate(-50%,-55%) scale(.94); } }
@keyframes plg-css-spark { 0% { opacity: 0; transform: translateY(-4px) scaleY(.15); } 9% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-185px) scaleY(.75); } }
@keyframes plg-css-ring { 0% { opacity: 0; transform: scale(.2); } 12% { opacity: .9; } 100% { opacity: 0; transform: scale(9); } }
@keyframes plg-css-petal { 0% { opacity: 0; transform: translate3d(0,-20px,0) rotate(0deg); } 10% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translate3d(110px,1120px,0) rotate(720deg); } }
@keyframes plg-widget-celebrate { 0%, 100% { filter: none; } 18% { filter: brightness(1.7) drop-shadow(0 0 18px var(--goal-accent)); } 38% { filter: brightness(1.05); } }
@keyframes plg-goal-hit { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.7) rotate(-5deg); } 8% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(1deg); } 13%, 78% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-1deg); } 100% { opacity: 0; transform: translate(-50%, -55%) scale(.96) rotate(1deg); } }
@keyframes plg-goal-hit-reduced { 0%,100% { opacity: 0; } 12%,78% { opacity: 1; transform: translate(-50%,-50%) scale(1); } }

@media (max-width: 1080px) {
  .pl-goals-intro { grid-template-columns: 1fr; min-height: 0; padding: 70px 0 50px; }
  .pl-goals-intro .pl-goals-kicker { order: -1; }
  .pl-goals-trust { flex-direction: row; flex-wrap: wrap; }
  .pl-goals-workspace { grid-template-columns: 1fr; }
  .pl-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pl-goals-delivery { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pl-goals-nav { grid-template-columns: 1fr auto; padding: 0 18px; }
  .pl-goals-product { display: none; }
  .pl-goals-nav-actions > a { display: none; }
  .pl-goals-main { padding: 0 14px 70px; }
  .pl-goals-intro { gap: 26px; padding: 55px 7px 38px; }
  .pl-goals-intro h1 { font-size: clamp(43px, 13vw, 64px); }
  .pl-goals-intro div > p { font-size: 13px; }
  .pl-goals-trust { display: none; }
  .pl-goals-preview-card,
  .pl-goals-manager,
  .pl-goals-settings,
  .pl-goals-delivery { padding: 20px 14px; }
  .pl-preview-widget { transform: scale(var(--preview-transform-scale)); }
  .pl-preview-widget[data-position="center"] { transform: translate(-50%, -50%) scale(var(--preview-transform-scale)); }
  .pl-quick-dock { align-items: stretch; flex-direction: column; gap: 12px; }
  .pl-quick-buttons { display: grid; grid-template-columns: repeat(3, 1fr); }
  .pl-quick-buttons .is-primary { grid-column: 1 / -1; }
  .pl-goal-editor { gap: 6px; grid-template-columns: 17px 1fr auto; }
  .pl-goal-number { display: none; }
  .pl-goal-fields > div { grid-template-columns: 1fr 1fr; }
  .pl-goal-fields > div label:last-of-type { grid-column: 1 / -1; }
  .pl-goal-fields > .pl-goal-event-map { grid-template-columns: 1fr 72px; }
  .pl-goal-fields > .pl-goal-event-map label:last-of-type { grid-column: auto; }
  .pl-goal-event-map p { grid-column: 1 / -1; }
  .pl-settings-grid { grid-template-columns: 1fr 1fr; }
  .pl-settings-grid .pl-wide-setting { grid-column: 1 / -1; }
  .pl-settings-grid .pl-check-setting { grid-column: 1 / -1; }
  .pl-url-stack article { align-items: stretch; flex-direction: column; }
  .pl-url-stack article > div:last-child { width: 100%; }
  .pl-url-stack button,
  .pl-url-stack a { flex: 1; text-align: center; }
  .pl-goals-help-panel { padding: 70px 24px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-goals-app * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .pl-goals-overlay * { transition-duration: .01ms !important; }
  .pl-goal-widget.is-celebrating { animation: none !important; filter: brightness(1.18); }
  .pl-goal-hit.is-active { animation: plg-goal-hit-reduced 2.4s ease both !important; }
  .pl-preview-hit.is-active { animation: plg-goal-hit-reduced 2.4s ease both !important; }
}
