/* ob-plan-goals-ui.css (R77-W8): the look of ob-plan-goals-ui.js (menu, date pickers, standards, shutdown, cap, celebration) and the
   ?embed=1 shell-suppress rules. Moved from the retired engine stylesheet and re-keyed to obpgu-*; the rest of that file styled the
   deleted Goals engine only. */
.obpgu-menu { position: fixed; z-index: 1200; min-width: 190px; display: flex; flex-direction: column; padding: 6px;
  background: var(--obds-card); border: 1px solid var(--obds-border); border-radius: 12px; box-shadow: 0 14px 38px -12px rgba(0,0,0,0.3); }
.obpgu-menu button { display: block; width: 100%; min-height: 44px; text-align: left; border: none; background: transparent; color: var(--obds-text);
  font-size: 13px; font-family: inherit; cursor: pointer; padding: 8px 10px; border-radius: 8px; }
.obpgu-menu button:hover:not(:disabled) { background: var(--obds-card-soft); }
.obpgu-menu button:disabled { opacity: 0.35; cursor: not-allowed; }
.obpgu-menu button.is-danger { color: hsl(var(--v2-bear)); }
.obpgu-menu .obpgu-menu-sep { height: 1px; background: var(--obds-border); margin: 4px 6px; }

.obpgu-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(10,14,20,0.45); }
.obpgu-overlay.is-top { align-items: flex-start; padding: 40px 16px; overflow: auto; }
.obpgu-card { width: 100%; max-width: 420px; box-sizing: border-box; padding: 18px 20px; background: var(--obds-card); color: var(--obds-text);
  border: 1px solid var(--obds-border); border-radius: 14px; box-shadow: 0 18px 48px rgba(0,0,0,0.25); }
.obpgu-card.is-wide { max-width: 560px; }
.obpgu-title { margin: 0; font-size: 16px; font-weight: 600; }
.obpgu-h { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.obpgu-sub { font-size: 12px; color: var(--obds-text-soft); margin: 0 0 10px; line-height: 1.4; }
.obpgu-sub.is-body { font-size: 13px; color: var(--obds-text); margin-bottom: 8px; }
.obpgu-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--obds-text-soft); margin: 10px 0 6px; }
.obpgu-label.is-good { color: var(--obds-accent, #1F5F4A); }
.obpgu-label.is-warn { color: var(--obds-amber, #C36A2C); }
.obpgu-input { display: block; width: 100%; box-sizing: border-box; min-height: 44px; margin: 0 0 12px; padding: 9px 10px; font-size: 14px; font-family: inherit;
  border: 1px solid var(--obds-border); border-radius: 8px; background: var(--obds-card-soft); color: var(--obds-text); }
.obpgu-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.obpgu-row.is-head { margin: 0 0 6px; }
.obpgu-row button { min-height: 44px; }
.obpgu-grow { flex: 1 1 auto; min-width: 0; }
.obpgu-msg { font-size: 11px; color: var(--obds-text-soft); margin-top: 8px; }
.obpgu-msg.is-warn { color: var(--obds-amber, #C36A2C); }
.obpgu-win { font-size: 13px; margin-bottom: 2px; }
.obpgu-loading { padding: 24px; text-align: center; color: var(--obds-text-soft); font-size: 13px; }
.obpgu-error { padding: 12px; color: hsl(var(--v2-bear)); font-size: 13px; }
.obpgu-add { margin-top: 14px; border-top: 1px solid var(--obds-border); padding-top: 12px; }
.obpgu-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.obpgu-chip, .obpgu-cap-pill { min-height: 44px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--obds-border); background: var(--obds-card-soft); color: var(--obds-text);
  font-size: 12px; cursor: pointer; font-family: inherit; }
.obpgu-chip.is-on, .obpgu-cap-pill.is-on { background: var(--obds-accent, #1F5F4A); color: var(--obds-accent-fg, #fff); }
.obpgu-std { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--obds-border); }
.obpgu-std.is-off { opacity: 0.5; }
.obpgu-std-t { font-size: 13px; font-weight: 600; }
.obpgu-std-m { font-size: 11px; color: var(--obds-text-soft); }
.obpgu-pop { position: fixed; top: 64px; right: 24px; z-index: 1000; min-width: 280px; max-width: 320px; padding: 14px; background: var(--obds-card);
  border: 1px solid var(--obds-border); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }

/* The completion celebration: CSS-only confetti, position:fixed + overflow:hidden so it never adds document scroll width. */
.obpgu-celebrate { position: fixed; inset: 0; z-index: 3000; overflow: hidden; pointer-events: none; display: flex; align-items: center; justify-content: center; }
.obpgu-celebrate-piece { position: absolute; top: -24px; width: 10px; height: 14px; border-radius: 2px; opacity: 0; animation: obpgu-confetti-fall linear forwards; }
@keyframes obpgu-confetti-fall { 0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: 0.9; } }
.obpgu-celebrate-pill { font-size: 15px; font-weight: 800; letter-spacing: 0.01em; color: #fff; background: var(--v2-grad-prism); border-radius: 999px; padding: 12px 22px;
  box-shadow: 0 18px 44px -14px rgba(0,0,0,0.5); animation: obpgu-pill-pop 1.6s cubic-bezier(0.34,1.4,0.64,1) both; }
@keyframes obpgu-pill-pop { 0% { transform: scale(0.6); opacity: 0; } 18% { transform: scale(1.06); opacity: 1; } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .obpgu-celebrate-piece { display: none; }
  .obpgu-celebrate-pill { animation: obpgu-pill-reduced 1.4s ease both; }
  @keyframes obpgu-pill-reduced { 0%,100% { opacity: 0; } 20%,80% { opacity: 1; } }
}

/* ?embed=1: shell-suppress (mirrors note-editor.html). The fold two-pane host owns nav, theme and idle sign-out; hide the local chrome. */
html[data-ob-embed="1"] .obds-sidebar { display: none; }
html[data-ob-embed="1"] .obds-app:not(body) { display: block; min-height: 100vh; }
html[data-ob-embed="1"] .obds-topbar [data-theme-toggle] { display: none; }
html[data-ob-embed="1"] .obds-canvas-body { padding: 16px 20px 32px; }
html[data-ob-embed="1"] .obds-page-title h1 { font-size: 22px; }
