.hp {
  --guide-surface: #fff;
  --guide-soft: #edf2fc;
  --guide-accent: #345991;
  --hp-line: #cbd8d0;
  --hp-ink: #25292e;
  --hp-muted: #52675e;
  max-width: 1250px;
  margin: auto;
  color: var(--hp-ink);
  font:
    14px/1.5 system-ui,
    sans-serif;
}
.hp * {
  box-sizing: border-box;
}
.hp .session-workspace { --guide-surface: #fff; --guide-soft: #edf2fc; --guide-accent: #345991; }
html[data-portal-theme="dark"] .hp .session-workspace { --guide-surface:#182026; --guide-soft:#273650; --guide-accent:#adc4ff; }
.hp .workspace-heading { margin:12px 0; gap:12px; }
.hp .workspace-heading h2 { font-size:26px; }
.hp .workspace-heading p { margin:4px 0; font-size:12px; }
.hp .workspace-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; margin:14px 0; }
.hp .workspace-tabs button { padding:9px 12px; }
.hp .workspace-outcomes { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.hp .workspace-outcomes > div { padding:10px 14px; border:1px solid var(--hp-line); border-radius:9px; min-width:190px; }
.hp .workspace-outcomes strong { display:block; font-size:20px; font-variant-numeric:tabular-nums; }
.hp .workspace-outcomes small,.hp .row small,.hp .workspace-trade small { display:block; color:var(--hp-muted); font-size:12px; }
.hp .workspace-trade { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:12px; align-items:center; border:1px solid var(--hp-line); border-radius:9px; padding:10px 12px; margin:7px 0; }
.hp .workspace-trade-end { text-align:right; font-variant-numeric:tabular-nums; }
.hp .workspace-extra { border:0; border-top:1px solid var(--hp-line); padding:10px 0; margin:12px 0 0; }
.hp .workspace-extra > summary { color:var(--hp-muted); font-size:12px; }
.hp .workspace-empty { padding:20px 12px; text-align:center; }
.hp .workspace-export { padding:12px; margin:10px 0; border:1px solid var(--hp-line); border-radius:9px; }
.hp .workspace-export .actions { margin:8px 0 0; align-items:center; }
.hp .workspace-export .actions details { margin:0;padding:0;border:0; }
.hp .workspace-export .inline { justify-content:flex-start;margin:8px 0; }
.hp .workspace-export .inline input[type="checkbox"] { flex:0 0 17px;width:17px;height:17px;margin:0; }
.hp .workspace-report-card { margin:10px 0; }
.hp .workspace-review-form { margin:12px 0; max-width:960px; }
.hp .workspace-review-form > label,.hp .workspace-review-form .grid { margin-top:10px; }
.hp .workspace-history { margin-top:14px; }
.hp .workspace-history-filter { display:flex;align-items:flex-end;flex-wrap:wrap;gap:8px;margin:8px 0 12px; }
.hp .workspace-history-filter label { flex:1;min-width:140px;margin:0; }
.hp .workspace-history-filter button { margin-bottom:0; }
.hp .workspace-focus { display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-left:3px solid #7999da;background:rgba(99,133,200,.12);margin-top:10px; }
.hp .workspace-pre { white-space:pre-wrap; }
.hp .workspace-idea + .workspace-idea { border-top:1px solid var(--hp-line);padding-top:12px;margin-top:12px; }
.hp .session-workspace .flow-toolbar > div { display:flex;align-items:center;gap:8px; }
.hp .session-workspace .flow-facts > div { grid-template-columns:88px minmax(0,1fr); }
.hp .flow-card table small { display:block;font-size:11px;color:var(--hp-muted); }
@media(max-width:650px) { .hp .workspace-trade {grid-template-columns:minmax(0,1fr) auto;} .hp .workspace-trade > button {grid-column:1/-1;justify-self:end;} .hp .workspace-heading {align-items:flex-start;flex-direction:column;} }
.hp header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 22px;
}
.hp h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 6px 0;
}
.hp :is(h1,h2,h3,h4,h5,h6) { color:var(--hp-ink); }
.hp h3 {
  font-size: 18px;
  margin: 0 0 12px;
}
.hp h4 {
  margin: 0 0 8px;
}
.hp p {
  color: var(--hp-muted);
}
.hp .eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 750;
}
.hp nav,
.hp .actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.hp button,
.hp .button {
  border: 1px solid var(--hp-line);
  background: white;
  color: var(--hp-ink);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.hp button.primary,
.hp button[aria-selected="true"] {
  background: #343a40;
  color: white;
  border-color: #343a40;
}
.hp button:disabled {
  opacity: 0.5;
  cursor: default;
}
.hp button:focus-visible,
.hp input:focus-visible,
.hp select:focus-visible,
.hp textarea:focus-visible,
.hp summary:focus-visible {
  outline: 3px solid #a47415;
  outline-offset: 3px;
}
.hp .layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 22px;
  align-items: start;
}
.hp .panel {
  border: 1px solid var(--hp-line);
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 16px;
}
.hp .preview {
  background: #f0f5f1;
  position: sticky;
  top: 18px;
  max-height: 75vh;
  overflow: auto;
}
.hp .preview p {
  white-space: pre-wrap;
  font-size: 13px;
}
.hp .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.hp label {
  display: block;
  font-size: 12px;
  font-weight: 650;
}
.hp input:not([type="checkbox"]),
.hp select,
.hp textarea {
  display: block;
  width: 100%;
  border: 1px solid #aebfb5;
  border-radius: 6px;
  background: white;
  color: #25292e;
  font: 14px system-ui;
  padding: 10px;
  margin: 5px 0;
}
.hp input[type="checkbox"] {
  accent-color: #343a40;
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.hp .options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 9px;
  margin: 12px 0;
}
.hp .option {
  border: 1px solid var(--hp-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}
.hp .option.selected {
  background: var(--guide-soft);
  border: 2px solid var(--guide-accent);
  padding: 11px;
}
.hp .option input[type="checkbox"] { accent-color: var(--guide-accent); }
.hp .option label {
  font-size: 13px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  cursor: pointer;
}
.hp .option small {
  display: block;
  font-size: 11px;
  margin: 7px 0;
  color: var(--hp-muted);
}
.hp .option button {
  padding: 3px 7px;
  font-size: 11px;
}
.hp details {
  border-bottom: 1px solid var(--hp-line);
  padding: 12px 0;
}
.hp summary {
  cursor: pointer;
  font-weight: 650;
}
.hp .option details {
  border: 0;
  padding-bottom: 0;
}
.hp .badge {
  border: 1px solid #859c8f;
  border-radius: 20px;
  padding: 4px 9px;
  display: inline-block;
  font-size: 11px;
}
.hp .message {
  padding: 12px 16px;
  border: 1px solid #97b7a3;
  background: #eaf4ec;
  border-radius: 8px;
  margin: 10px 0;
}
.hp .message.error {
  background: #fff0eb;
  border-color: #bf8069;
}
.hp .muted {
  color: var(--hp-muted);
  font-size: 12px;
}
.hp .row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hp-line);
}
.hp .row:last-child {
  border: 0;
}
.hp table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.hp th,
.hp td {
  padding: 9px;
  border-bottom: 1px solid var(--hp-line);
  text-align: left;
}
.hp .scroll {
  overflow: auto;
}
.hp .score {
  font-size: 26px;
  font-weight: 700;
}
.hp iframe {
  width: 100%;
  height: 75vh;
  border: 1px solid var(--hp-line);
  background: #fff;
}
.hp .step {
  font-size: 12px;
}
.hp .wide {
  grid-column: 1/-1;
}
.hp .empty {
  padding: 25px;
  text-align: center;
  border: 1px dashed #91ac9c;
  border-radius: 10px;
}
.hp .inline {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hp .inline input {
  flex: 1;
}
html[data-portal-theme="dark"] .hp {
  --hp-line: #3c454d;
  --hp-ink: #eef2f6;
  --hp-muted: #b6c0c9;
  color-scheme: dark;
}
html[data-portal-theme="dark"] .hp .panel,
html[data-portal-theme="dark"] .hp .option,
html[data-portal-theme="dark"] .hp button,
html[data-portal-theme="dark"] .hp .button,
html[data-portal-theme="dark"] .hp input:not([type="checkbox"]),
html[data-portal-theme="dark"] .hp select,
html[data-portal-theme="dark"] .hp textarea {
  background: #191e23;
  color: var(--hp-ink);
  border-color: var(--hp-line);
}
html[data-portal-theme="dark"] .hp .preview,
html[data-portal-theme="dark"] .hp .message {
  background: #253029;
}
html[data-portal-theme="dark"] .hp .option.selected {
  background: var(--guide-soft);
  border-color: var(--guide-accent);
}
html[data-portal-theme="dark"] .hp button.primary,
html[data-portal-theme="dark"] .hp button[aria-selected="true"] {
  background: #e3e8ed;
  color: #191e23;
}
html[data-portal-theme="dark"] .hp .message.error {
  background: #3c2520;
}
.hp .selected-list {
  padding-left: 18px;
}
.hp .feed-list { border: 1px solid var(--hp-line); border-radius: 8px; overflow: hidden; margin: 12px 0; }
.hp .feed-row.panel { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; margin: 0; padding: 12px; border: 0; border-bottom: 1px solid var(--hp-line); border-radius: 0; box-shadow: none; }
.hp .feed-row:last-child { border-bottom: 0; }
.hp .feed-time { font-size: 12px; color: var(--hp-muted); font-variant-numeric: tabular-nums; }
.hp .feed-impact { display: block; font-weight: 650; margin-top: 6px; color: var(--hp-ink); }
.hp .feed-story { min-width: 0; overflow-wrap: anywhere; }
.hp .feed-story strong { font-size: 14px; }
.hp .feed-row p { margin: 5px 0; font-size: 12px; }
.hp .feed-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hp .feed-actions button { padding: 5px 8px; font-size: 12px; }
.hp .feed-row details { font-size: 12px; margin-top: 5px; }
.hp .feed-date { font: 650 12px system-ui; margin: 12px 0 4px; color: var(--hp-muted); }
@media (max-width: 760px) {
  .hp .feed-row.panel { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px; }
  .hp .feed-impact { display: inline; margin-left: 8px; }
}
.hp .selected-list li {
  margin: 8px 0;
}
@media (max-width: 760px) {
  .hp .layout,
  .hp .grid {
    grid-template-columns: 1fr;
  }
  .hp .preview {
    position: static;
    max-height: none;
  }
  .hp header {
    display: block;
  }
  .hp .panel {
    padding: 16px;
  }
  .hp h2 {
    font-size: 25px;
  }
  .hp .row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

.hp .feed-row[data-briefing-kind="economic"], .hp .next-event { --event-accent: #596579; border-inline-start: 3px solid var(--event-accent); }
.hp [data-impact="HIGH"] { --event-accent: #ba3037 !important; }
.hp [data-impact="MEDIUM"] { --event-accent: #956000 !important; }
.hp .feed-impact { color: var(--event-accent); }
.hp .feed-impact::before { content: "●"; margin-right: 5px; }
.hp .event-timing { display: block; margin-top: 6px; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hp .event-timing[data-soon="true"] { color: var(--event-accent); text-decoration: underline; text-underline-offset: 3px; }
.hp .event-tracked { display: inline-block; margin: 4px 6px; padding: 2px 6px; border: 1px solid #87621f; border-radius: 4px; font-size: 11px; color: #785313; }
.hp .next-event { margin: 14px 0; padding: 12px 14px; border: 1px solid var(--hp-line); border-inline-start: 4px solid var(--event-accent); border-radius: 6px; }
.hp .next-event strong { display: block; margin-top: 6px; }
.hp .next-event p { font-size: 12px; margin: 6px 0; }
html[data-portal-theme="dark"] .hp [data-impact="HIGH"] { --event-accent: #ff9197 !important; }
html[data-portal-theme="dark"] .hp [data-impact="MEDIUM"] { --event-accent: #f4c36a !important; }
html[data-portal-theme="dark"] .hp .event-tracked { color: #f4c36a; border-color: #a68342; }

.hp .event-plan-context { font-size: 12px; margin: 6px 0; }
.hp .event-window { display: inline-block; padding: 2px 6px; border: 1px solid var(--hp-line); border-radius: 4px; }
.hp .event-window[data-within="true"] { font-weight: 700; border-color: #977121; }

/* Guided preparation: one primary action, with color carrying the four stages. */
.hp {
  --guide-accent: #345fbd;
  --guide-blue: #315fb2;
  --guide-amber: #875607;
  --guide-purple: #7953a1;
  --guide-surface: #fff;
  --guide-soft: #edf2fc;
  --guide-tint: #f3f6fc;
}
.hp .plan-welcome-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 30px;
  margin: 24px 0;
  border: 1px solid #c5d4f2;
  border-radius: 20px;
  background: linear-gradient(115deg, #e8eefb, #f3edfc 72%, #faf1dd);
}
.hp .plan-welcome-card h2 { max-width: 570px; font-size: clamp(27px, 3vw, 38px); letter-spacing: -1px; }
.hp .plan-welcome-card .eyebrow, .hp .welcome-dialog .eyebrow { color: var(--guide-accent); }
.hp .session-date { font-weight: 750; white-space: nowrap; }
.hp .session-date small { display: block; color: var(--hp-muted); font-size: 11px; font-weight: 400; }
.hp .session-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hp .session-card { background: var(--guide-surface); border: 1px solid var(--hp-line); border-radius: 16px; padding: 24px; }
.hp .session-card.current-session { border-color: var(--guide-accent); box-shadow: 0 4px 20px #345fbd12; }
.hp .session-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hp .session-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: var(--guide-blue); background: var(--guide-tint); font-size: 28px; }
.hp .session-card:nth-child(2) .session-symbol { color: var(--guide-amber); background: #fff2d8; }
.hp .session-card h3 { font-size: 25px; }
.hp .session-card h3 small { font-size: 14px; font-weight: 450; color: var(--hp-muted); margin-left: 8px; }
.hp .session-plan-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.hp .session-plan-row button { margin-left: auto; }
.hp .session-plan-row > span { font-size: 12px; color: var(--hp-muted); }
.hp .plan-dialog {
  font: 14px/1.5 system-ui, sans-serif;
  width: min(1040px, calc(100vw - 40px));
  max-height: calc(100dvh - 48px);
  padding: 32px;
  border: 1px solid var(--hp-line);
  border-radius: 24px;
  background: var(--guide-surface);
  color: var(--hp-ink);
  box-shadow: 0 24px 100px #10252255;
  overscroll-behavior: contain;
}
.hp .plan-dialog::backdrop { background: #0e1f29a8; backdrop-filter: blur(5px); }
body:has(.hp dialog[open]) { overflow: hidden; }
.hp .plan-dialog h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -1px; line-height: 1.15; margin: 12px 0; }
.hp [data-dialog-heading]:focus { outline: none; }
.hp .welcome-dialog { background: radial-gradient(ellipse at top right, var(--guide-soft), transparent 58%), var(--guide-surface); }
.hp .welcome-glow { width: 80px; height: 66px; color: var(--guide-amber); margin-bottom: 16px; }
.hp .welcome-glow svg { width: 100%; height: 100%; }
.hp .welcome-copy { font-size: 17px; margin-bottom: 24px; }
.hp .guide-roadmap, .hp .guide-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 24px 0; }
.hp .guide-roadmap li, .hp .guide-progress li { font-size: 12px; font-weight: 650; color: var(--hp-muted); min-width: 0; }
.hp .guide-roadmap span, .hp .guide-progress span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 9px; background: var(--guide-soft); color: var(--guide-accent); }
.hp .guide-roadmap li:nth-child(2) span { color: var(--guide-blue); background: #edf2ff; }
.hp .guide-roadmap li:nth-child(3) span { color: var(--guide-amber); background: #fff2d8; }
.hp .guide-roadmap li:nth-child(4) span { color: var(--guide-purple); background: #f4eefb; }
.hp .welcome-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 12px; }
.hp .welcome-actions .primary { flex: 1; display: flex; justify-content: space-between; gap: 18px; font-weight: 650; }
.hp .guide-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.hp .guide-topline button { padding: 7px 12px; font-size: 12px; }
.hp .guide-progress { margin: 18px 0 20px; }
.hp .guide-progress li { border-bottom: 3px solid var(--hp-line); padding-bottom: 12px; }
.hp .guide-progress li[aria-current], .hp .guide-progress li.complete { border-color: var(--guide-accent); color: var(--guide-accent); }
.hp .guide-progress li[aria-current] span { background: var(--guide-accent); color: var(--guide-surface); }
.hp .guide-body > .eyebrow { color: var(--guide-accent); }
.hp .guide-body > p:first-of-type { font-size: 16px; }
.hp .guide-footer { border-top: 1px solid var(--hp-line); padding-top: 12px; margin-top: 26px; }
.hp .guide-footer > p { font-size: 12px; }
.hp .guide-footer .actions { justify-content: flex-end; }
.hp .guide-footer > button { border: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; color: var(--hp-muted); font-size: 12px; }
.hp .session-ribbon { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; background: var(--guide-soft); color: var(--guide-accent); border-radius: 10px; padding: 12px 16px; margin: 18px 0; }
.hp .guide-choices { border: 0; padding: 0; margin: 24px 0; min-width: 0; }
.hp .guide-choices legend { font-weight: 700; margin-bottom: 10px; }
.hp .choice-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hp .choice-chip { position: relative; cursor: pointer; }
.hp .choice-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hp .choice-chip span { display: block; padding: 11px 15px; border: 1px solid var(--hp-line); border-radius: 10px; font-size: 13px; font-weight: 500; }
.hp .choice-chip input:checked + span { background: var(--guide-soft); border-color: var(--guide-accent); color: var(--guide-accent); box-shadow: inset 0 0 0 1px var(--guide-accent); }
.hp .choice-chip input:checked + span::before { content: "✓ "; }
.hp .choice-chip input:focus-visible + span { outline: 3px solid var(--guide-blue); outline-offset: 3px; }
.hp .chosen-statement { font-size: 12px; margin: 8px 0 0; }
.hp .guide-levels { margin-top: 26px; }
.hp .guide-level { border: 1px solid var(--hp-line); border-radius: 12px; padding: 16px; margin: 12px 0; }
.hp .guide-level button { font-size: 12px; padding: 6px 10px; }
.hp .guide-custom-levels { margin:12px 0; border:0; padding:0; }
.hp .guide-custom-levels > summary .muted { float:right; font-size:12px; font-weight:400; }
.hp .guide-custom-levels > button { margin-top:10px; }
.hp .level-name-field { min-width:0; }
.hp .plan-price-input { text-align:right; font-variant-numeric:tabular-nums; }
.hp .guide-brief { background: var(--guide-tint); border: 1px solid var(--hp-line); border-radius: 12px; padding: 18px; margin: 24px 0; }
.hp .guide-brief > strong { color: var(--guide-blue); }
.hp .guide-brief > p { font-size: 13px; }
.hp .session-briefing { padding: 0; border: 0; background: transparent; }
.hp .briefing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.hp .briefing-heading h3 { margin: 0; font-size: 16px; color: var(--guide-blue); }
.hp .briefing-heading p { margin: 6px 0 0; font-size: 12px; color: var(--hp-muted); }
.hp [data-action="briefing-customize-open"],
html[data-portal-theme="dark"] .hp [data-action="briefing-customize-open"] { flex: none; padding: 3px 0; border: 0; border-radius: 2px; background: transparent; color: var(--guide-blue); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.hp .briefing-section { background: var(--guide-tint); border: 1px solid var(--hp-line); border-radius: 14px; margin-top: 18px; padding: 18px; }
.hp .briefing-tracked > details { padding: 0; margin: 0; border: 0; }
.hp .briefing-tracked > details > summary { color: var(--guide-blue); font-size: 14px; }
.hp .briefing-tracked > details > .briefing-caption { margin-top: 10px; }
.hp .session-briefing h4 { margin: 0 0 4px; font-size: 14px; }
.hp .session-briefing h5 { margin: 14px 0 4px; font-size: 12px; color: var(--hp-muted); }
.hp .session-briefing .briefing-caption { font-size: 11px; color: var(--hp-muted); margin: 0 0 10px; }
.hp .briefing-list { display: grid; gap: 10px; margin-top: 14px; }
.hp .briefing-news-list { max-height: min(32rem, 70dvh); overflow-y: auto; scrollbar-gutter: stable; padding: 3px; }
.hp .briefing-news-list:focus-visible, .hp .news-headline:focus-visible { outline: 2px solid var(--guide-blue); outline-offset: 2px; }
.hp .news-headline { color: var(--guide-blue); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.hp .news-headline:hover { text-decoration-color: currentColor; }
.hp .news-headline > span { white-space: nowrap; }
.hp .briefing-story > .news-headline { display: block; font-size: 13px; }
.hp .briefing-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 12px; border: 1px solid var(--hp-line); border-radius: 10px; background: var(--guide-surface); }
.hp .briefing-time { font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.hp .briefing-time small, .hp .briefing-story > small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: var(--hp-muted); }
.hp .briefing-story { min-width: 0; overflow-wrap: anywhere; }
.hp .briefing-story > strong { display: block; font-size: 13px; }
.hp .briefing-impact { display: inline-block; color: var(--event-accent, var(--hp-muted)); font-size: 11px; margin-top: 4px; }
.hp .briefing-impact::before { content: "●"; margin-right: 5px; }
.hp .briefing-row button { padding: 5px 8px; margin: 0; font-size: 11px; }
.hp .briefing-row > button[aria-pressed="true"] { color: var(--guide-blue); border-color: var(--guide-blue); background: var(--guide-soft); }
.hp .briefing-story details { font-size: 11px; margin: 6px 0 0; padding: 0; border: 0; }
.hp .briefing-story details p { font-size: 11px; margin: 6px 0; }
.hp .briefing-empty { font-size: 12px; color: var(--hp-muted); margin: 0; padding: 14px; border: 1px solid var(--hp-line); border-radius: 10px; background: var(--guide-surface); }
.hp .briefing-news-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 11px; color: var(--hp-muted); }
.hp .session-briefing .briefing-status { font-size: 11px; color: var(--hp-muted); border-top: 1px solid var(--hp-line); margin: 16px 0; padding-top: 12px; }
.hp .briefing-event-cards { display: grid; gap: 20px; margin: 16px 0; }
.hp .briefing-event-editor { min-width: 0; border: 1px solid var(--hp-line); border-radius: 12px; padding: 18px; background: var(--guide-surface); box-shadow: 0 4px 14px #1224460a; }
.hp .briefing-event-heading { display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--hp-line); padding-bottom: 14px; margin-bottom: 18px; }
.hp .briefing-event-heading > div { min-width: 0; flex: 1; }
.hp .briefing-event-heading .eyebrow { font-size: 10px; letter-spacing: 1px; color: var(--guide-blue); }
.hp .briefing-event-heading .eyebrow[data-relevance="not_relevant"] { color: var(--hp-muted); }
.hp .briefing-event-heading h5 { color: var(--hp-ink); font-size: 14px; margin: 3px 0 0; overflow-wrap: anywhere; }
.hp .briefing-event-heading .event-window { font-size: 11px; margin-top: 8px; }
.hp .briefing-event-heading [data-action="remove-event"] { flex: none; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; margin: 0; border-radius: 50%; font-size: 24px; line-height: 1; color: var(--hp-muted); }
.hp .briefing-event-heading [data-action="remove-event"]:hover { color: var(--hp-ink); border-color: var(--guide-blue); background: var(--guide-soft); }
.hp .event-reminder-help details { margin: 6px 0 0; padding: 0; border: 0; font-size: 12px; }
.hp .event-reminder-help details p { font-size: 12px; }
.hp .event-rule-help .event-plan-context:empty { display: none; }
.hp .setup-event-rules { margin-top: 18px; padding: 16px; border: 1px solid var(--hp-line); border-radius: 12px; background: var(--guide-tint); }
.hp .setup-event-rules h4 { color: var(--guide-blue); margin: 0 0 8px; font-size: 15px; }
.hp .setup-event-rule { border-top: 1px solid var(--hp-line); padding-top: 16px; margin-top: 16px; }
.hp .setup-event-rule h5 { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.hp .setup-event-rule .event-plan-context:empty { display: none; }
.hp .briefing-event-number { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 700; color: var(--guide-blue); background: var(--guide-soft); }
.hp .briefing-customize-dialog { padding: 24px; }
.hp .briefing-customize-dialog h2 { font-size: 26px; }
.hp .briefing-filter-card { border: 1px solid var(--hp-line); border-radius: 12px; background: var(--guide-tint); padding: 16px; margin: 18px 0; }
.hp .briefing-filter-card h3 { font-size: 16px; color: var(--guide-blue); }
.hp .briefing-customize-footer { display: flex; justify-content: flex-end; position: sticky; bottom: -24px; background: var(--guide-surface); padding: 14px 0 0; border-top: 1px solid var(--hp-line); }
@media (max-width: 520px) {
  .hp .briefing-section { padding: 14px; }
  .hp .briefing-event-editor { padding: 14px; }
  .hp .briefing-row { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 12px 10px; }
  .hp .briefing-row > button { grid-column: 2; justify-self: start; }
}
.hp .summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hp .summary-stats > div { padding: 16px; border: 1px solid var(--hp-line); border-radius: 12px; }
.hp .summary-stats span { display: block; font-size: 11px; color: var(--hp-muted); margin-bottom: 6px; }
.hp .summary-stats strong { font-size: 17px; }
.hp .guide-summary { border-left: 3px solid var(--guide-accent); padding: 4px 0 4px 20px; margin: 26px 0; overflow-wrap: anywhere; }
.hp .guide-summary p { white-space: pre-wrap; }
.hp .guide-summary h4:not(:first-child) { margin-top: 24px; }
.hp .guide-caution { padding: 14px 16px; border-radius: 10px; background: #fff2d8; color: var(--guide-amber); }
.hp .plan-dialog button.primary, .hp .session-card button.primary { background: var(--guide-accent); border-color: var(--guide-accent); color: var(--guide-surface); }
html[data-portal-theme="dark"] .hp {
  --guide-accent: #adc6ff;
  --guide-blue: #aac7ff;
  --guide-amber: #f4cb7c;
  --guide-purple: #d2b8f1;
  --guide-surface: #191e23;
  --guide-soft: #28354f;
  --guide-tint: #222e43;
}
html[data-portal-theme="dark"] .hp .plan-welcome-card { background: linear-gradient(115deg, #28354f, #253247 72%, #3c3427); border-color: #425473; }
html[data-portal-theme="dark"] .hp .session-card:nth-child(2) .session-symbol,
html[data-portal-theme="dark"] .hp .guide-roadmap li:nth-child(3) span,
html[data-portal-theme="dark"] .hp .guide-caution { background: #403521; }
html[data-portal-theme="dark"] .hp .guide-roadmap li:nth-child(2) span { background: #222e43; }
html[data-portal-theme="dark"] .hp .guide-roadmap li:nth-child(4) span { background: #372b45; }
html[data-portal-theme="dark"] .hp .plan-dialog button.primary,
html[data-portal-theme="dark"] .hp .session-card button.primary { background: var(--guide-accent); color: var(--guide-surface); border-color: var(--guide-accent); }
@media (max-width: 760px) {
  .hp .plan-welcome-card { align-items: flex-start; flex-direction: column; gap: 12px; padding: 22px; }
  .hp .session-cards { grid-template-columns: 1fr; }
  .hp .plan-dialog { width: 100%; height: 100dvh; max-height: 100dvh; max-width: none; margin: 0; border: 0; border-radius: 0; padding: max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
  .hp .guide-progress, .hp .guide-roadmap { gap: 8px; }
  .hp .guide-progress li, .hp .guide-roadmap li { font-size: 11px; }
  .hp .summary-stats { grid-template-columns: 1fr; }
  .hp .summary-stats > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; }
  .hp .summary-stats span { margin: 0; }
  .hp .guide-footer .actions .primary { flex: 1; }
}

/* Guided review and setup keep session boundaries distinct from individual ideas. */
.hp .guide-card { margin: 20px 0; padding: 20px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--guide-surface); }
.hp .guide-card h3 { margin: 0 0 12px; font-size: 18px; color: var(--guide-accent); }
.hp .review-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.hp .review-card > header h3 { margin: 0; }
.hp .review-card p, .hp .review-event { overflow-wrap: anywhere; white-space: pre-wrap; }
.hp .review-event { padding: 14px; border: 1px solid var(--hp-line); border-radius: 12px; margin: 12px 0; }
.hp .review-event h4 { margin: 0 0 8px; }
.hp .guide-card .summary-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp .guide-progress li > button { display: block; width: 100%; text-align: left; border: 0; padding: 0; font: inherit; color: inherit; background: transparent; }
.hp .guide-progress li > button:focus-visible { outline: 2px solid var(--guide-accent); outline-offset: 6px; }
.hp .guide-caution li { margin: 12px 0; }
.hp .guide-caution li button { margin-left: 8px; }
.hp .guide-ready { padding: 14px 18px; border-radius: 12px; background: var(--guide-soft); color: var(--guide-accent); }
.hp .reminder-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.hp .reminder-options article { border: 1px solid var(--hp-line); border-radius: 12px; padding: 18px; }
.hp .reminder-options h4 { margin-top: 0; }
.hp .reminder-options button { margin: 4px 4px 4px 0; }
@media(max-width:760px) {
  .hp .guide-card { padding: 16px; }
  .hp .guide-card .summary-stats, .hp .reminder-options { grid-template-columns: 1fr; }
  .hp .guide-progress li > button { font-size: 10px; }
}

/* Searchable session timezone choices stay inside the planner dialog. */
.hp .timezone-picker { min-width: 0; }
.hp .timezone-options { max-height: 220px; overflow-y: auto; border: 1px solid var(--hp-line); border-radius: 10px; padding: 4px; background: var(--guide-surface); }
.hp .timezone-options[hidden] { display: none; }
.hp .timezone-options button { display: block; width: 100%; margin: 0; padding: 10px 12px; text-align: left; border: 0; border-radius: 6px; overflow-wrap: anywhere; }
.hp .timezone-options button.active, .hp .timezone-options button:hover { background: var(--guide-soft); color: var(--guide-blue); }
.hp .timezone-options button[aria-selected="true"] { font-weight: 700; }
.hp .timezone-picker > p { margin: 8px 0; font-size: 12px; overflow-wrap: anywhere; }
.hp .feeling-field > label + label { margin-top: 12px; }

/* Keep the session window, timezone and readiness visually grouped. */
.hp .session-fields { display: grid; gap: 24px; margin: 24px 0 28px; }
.hp .session-fields input, .hp .session-fields select { margin-bottom: 0; }
.hp .session-timezone details { border: 0; padding: 0; margin-top: 12px; }
.hp .session-timezone summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; list-style: none; }
.hp .session-timezone summary::-webkit-details-marker { display: none; }
.hp .session-timezone-value { font-size: 12px; font-weight: 400; color: var(--hp-muted); overflow-wrap: anywhere; min-width: 0; }
.hp .session-timezone-toggle { font-size: 12px; color: var(--guide-blue); white-space: nowrap; }
.hp .session-timezone-toggle::before { content: "▸"; display: inline-block; margin-right: 6px; }
.hp .session-timezone details[open] .session-timezone-toggle::before { transform: rotate(90deg); }
.hp .session-timezone .timezone-picker { margin-top: 16px; }

.hp .briefing-search { margin: 16px 0; }
.hp .news-market-choices { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.hp .news-market-choices legend { font-size: 12px; font-weight: 650; }
.hp .news-market-choices p { margin: 6px 0 12px; }

.hp .briefing-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 4px; }
.hp .briefing-section-heading h4 { margin: 0; }
.hp .briefing-view-status { font-size: 11px; color: var(--hp-muted); }

/* Keep all usable reference prices in view; the dialog owns scrolling. */
.hp .terminal-plan-levels { border:1px solid var(--hp-line); border-radius:14px; padding:14px 16px; margin:10px 0 16px; background:color-mix(in srgb,#7199e8 8%,transparent); }
.hp .terminal-level-heading { display:flex; align-items:center; justify-content:space-between; gap:8px 12px; flex-wrap:wrap; }
.hp .terminal-level-meta { color:var(--hp-muted); font-size:12px; margin:6px 0 8px; }
.hp .terminal-level-group { margin:10px 0; }
.hp .terminal-level-family { margin-top:6px; }
.hp .terminal-family-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2px 12px; margin-bottom:4px; }
.hp .terminal-family-heading h6 { color:var(--guide-accent); font-size:12px; font-weight:650; line-height:1.4; margin:0; }
.hp .terminal-availability { display:inline-flex; align-items:center; gap:6px; margin-left:auto; color:var(--hp-muted); font-size:12px; font-weight:400; }
.hp .terminal-level-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.hp .terminal-level-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; grid-column:1/-1; }
.hp .terminal-level-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 10px; align-items:center; padding:6px 10px; min-height:50px; border:1px solid var(--hp-line); border-radius:9px; }
.hp .terminal-level-row[data-selected] { background:color-mix(in srgb,#7199e8 9%,transparent); }
.hp .terminal-level-check, .hp .terminal-level-remember { display:flex; align-items:center; gap:8px; margin:0; }
.hp .terminal-level-check { font-size:12px; min-width:0; }
.hp .terminal-level-check span { overflow-wrap:anywhere; }
.hp .terminal-level-check input, .hp .terminal-level-remember input { width:17px; min-height:17px; height:17px; flex:0 0 17px; margin:0; accent-color:#749afa; }
.hp .terminal-level-check .terminal-level-status { display:flex; flex-wrap:wrap; gap:0 5px; font-size:11px; font-weight:400; color:var(--hp-muted); margin-top:1px; }
.hp .terminal-level-status > span + span::before { content:"·"; margin-right:5px; }
.hp .terminal-level-controls { width:116px; }
.hp .terminal-level-controls input { width:116px; min-height:32px; padding:5px 7px; margin:0; text-align:right; font-variant-numeric:tabular-nums; }
.hp .terminal-review-state { font-size:11px; color:var(--hp-muted); }
.hp .terminal-level-price { text-align:right; font-variant-numeric:tabular-nums; }
.hp .terminal-availability [data-action="terminal-retry"], .hp .terminal-level-row [data-action="terminal-manual"] { background:transparent; color:var(--guide-accent); border:0; padding:4px 0; min-height:32px; font-size:12px; }
.hp .terminal-availability [data-action="terminal-retry"] { min-height:24px; padding:2px 0; }
.hp .terminal-level-reason { grid-column:1; grid-row:2; min-width:0; border:0; padding:0 0 0 25px; margin:0; font-size:11px; color:var(--hp-muted); }
.hp .terminal-level-row:has(.terminal-level-reason) > :is(.terminal-level-controls,.terminal-level-pending,[data-action="terminal-manual"]) { grid-column:2; grid-row:1/3; }
.hp .terminal-level-reason summary { font-size:11px; font-weight:400; }
.hp .terminal-level-reason p { margin:4px 0; overflow-wrap:anywhere; }
.hp .terminal-upcoming { border:0; padding:2px 0; margin:10px 0; }
.hp .terminal-upcoming > summary { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:2px 12px; list-style:none; font-size:12px; color:var(--guide-accent); }
.hp .terminal-upcoming > summary::-webkit-details-marker { display:none; }
.hp .terminal-upcoming-title::before { content:"▸"; display:inline-block; margin-right:5px; }
.hp .terminal-upcoming[open] .terminal-upcoming-title::before { transform:rotate(90deg); }
.hp .terminal-level-pending { font-size:11px; color:var(--hp-muted); }
.hp .terminal-review { margin-top:10px; }
.hp .terminal-review button { min-height:32px; padding:6px 10px; font-size:12px; }
.hp .terminal-level-remember { margin:8px 0 4px; font-size:12px; }
.hp .terminal-plan-levels > .actions { margin:8px 0 0; }
.hp .terminal-level-footer { align-items:flex-end; }
.hp .terminal-footer-note { flex:1 1 260px; margin:0; color:var(--hp-muted); font-size:12px; text-align:right; }
@media(max-width:680px) { .hp .terminal-level-list, .hp .terminal-level-pair { grid-template-columns:minmax(0,1fr); } }
@media(max-width:480px) { .hp .terminal-plan-levels { padding:12px; } .hp .terminal-level-check { font-size:13px; } .hp .terminal-level-controls input { font-size:16px; } }

/* Adjacent market-view tabs keep both areas discoverable without stacking them. */
.hp .market-tabs { position:sticky; top:-32px; z-index:2; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:8px 0; background:var(--guide-surface); }
.hp .market-tabs button { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:44px; padding:9px 12px; font-weight:650; text-align:left; }
.hp .market-tabs small { font-size:11px; font-weight:400; white-space:nowrap; }
.hp .market-tabs button[aria-selected="true"], html[data-portal-theme="dark"] .hp .market-tabs button[aria-selected="true"] { background:var(--guide-soft); border-color:var(--guide-accent); color:var(--guide-accent); box-shadow:inset 0 -2px var(--guide-accent); }
.hp .market-panel { margin-top:8px; }
.hp .market-panel[hidden] { display:none; }
.hp .market-panel.guide-levels { margin-top:0; }
.hp .market-context-heading { display:flex; align-items:center; justify-content:space-between; gap:6px 12px; flex-wrap:wrap; margin:10px 0; }
.hp .market-context-heading h4 { margin:0; font-size:13px; }
.hp .market-context-heading p { font-size:11px; margin:2px 0 0; }
.hp .market-context-heading > span { font-size:11px; color:var(--hp-muted); }
.hp .market-context-actions { display:flex; gap:8px; }
.hp .market-context-actions button, .hp .market-context-actions .button, .hp .market-fact button { padding:5px 9px; min-height:32px; font-size:12px; }
.hp .market-fact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.hp .market-fact { border:1px solid var(--hp-line); border-radius:9px; padding:10px 12px; background:color-mix(in srgb,#7199e8 8%,transparent); min-width:0; }
.hp .market-fact-title { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:3px; }
.hp .market-fact h5 { font-size:12px; margin:0; color:var(--guide-accent); }
.hp .market-fact-title > span { font-size:10px; color:var(--hp-muted); }
.hp .market-fact > strong { font-size:14px; font-variant-numeric:tabular-nums; }
.hp .market-fact p { margin:3px 0 0; font-size:11px; overflow-wrap:anywhere; }
.hp .market-fact button { margin-top:7px; }
.hp .market-fact .market-saved-view { margin-top:6px; padding:0; border:0; font-size:11px; }
.hp .market-context-note, .hp .market-context-empty { font-size:11px; margin:8px 0 14px; }
.hp .market-context-pickers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:8px; }
.hp .market-context-pickers > .grid { grid-column:1/-1; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:12px; }
.hp .market-context-pickers > .grid .inline { display:flex; align-items:center; gap:6px; white-space:nowrap; }
.hp .market-context-pickers > .grid .inline input { flex:0 0 17px; margin:0; }
.hp .context-column { display:grid; gap:8px; min-width:0; }
.hp .context-custom > summary .muted { float:right; font-size:12px; font-weight:400; }
.hp .context-custom form { margin-top:10px; }
.hp .context-custom .grid { gap:8px 14px; }
.hp .context-custom label { margin:0; }
.hp .context-custom .context-custom-name { margin-top:8px; }
.hp .context-custom-footer { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:8px; }
.hp .context-custom-footer small { color:var(--hp-muted); font-size:11px; }
.hp .context-column > details, .hp .market-context-pickers > details { border:1px solid var(--hp-line); border-radius:9px; padding:9px 10px; min-width:0; }
.hp .market-context-pickers > details:last-child { grid-column:1/-1; }
.hp .context-column > details > summary, .hp .market-context-pickers > details > summary { font-size:12px; }
.hp .market-context-pickers .badge { padding:1px 6px; font-size:10px; float:right; }
.hp .market-context-pickers .options { grid-template-columns:minmax(0,1fr); gap:6px; margin:8px 0 0; }
.hp .market-context-pickers .option { padding:8px 10px; }
.hp .market-context-pickers .option.selected { padding:7px 9px; }
.hp .market-context-pickers .option label { font-size:12px; gap:6px; }
.hp .market-context-pickers .option input[type="checkbox"] { flex:0 0 17px; margin:0; }
.hp .market-context-pickers .option small { margin:3px 0 0; }
.hp .market-context-pickers .option details { padding-top:6px; }
.hp .market-context-pickers .option details label { display:block; }
.hp .context-assessment-summary { color:var(--hp-muted); }
.hp .context-assessment-summary .badge { font-weight:400; }
.hp .context-result { display:block; margin-top:7px; padding:7px 10px; border-left:3px solid var(--guide-accent); border-radius:3px 6px 6px 3px; background:var(--guide-soft); color:var(--guide-accent); font-size:15px; font-weight:700; line-height:1.35; overflow-wrap:anywhere; }
.hp [data-context-state="pending"] .context-result { border-left-color:var(--hp-line); background:transparent; color:var(--hp-muted); font-size:13px; font-weight:500; }
.hp .context-basis { margin-top:8px; }
.hp .context-basis p { margin:0; color:var(--hp-muted); font-size:11px; line-height:1.5; }
.hp .context-basis .context-method { border:0; margin:4px 0 0; padding:0; }
.hp .context-method > summary { color:var(--hp-muted); font-size:11px; font-weight:400; }
.hp .context-method p { margin-top:4px; }
.hp .context-method dl { display:grid; gap:5px; margin:7px 0 0; font-size:12px; line-height:1.45; }
.hp .context-method dl > div { min-width:0; }
.hp .context-method dt, .hp .context-method dd { display:inline; margin:0; }
.hp .context-method dt { color:var(--hp-ink); font-weight:600; }
.hp .context-method dd { color:var(--hp-muted); }
.hp .context-method .context-data-time { margin-top:7px; font-size:10px; }
.hp .context-basis span { color:var(--hp-muted); }
.hp .context-basis button { font-size:11px; min-height:28px; padding:3px 7px; margin-top:5px; }

/* The last three guided pages: compact choices, then one practical review. */
.hp .guided-finish { padding:24px; scroll-padding-bottom:100px; }
.hp .guided-finish .guide-progress { margin:12px 0 16px; }
.hp .guided-finish .guide-progress span { width:24px; height:24px; margin-bottom:5px; font-size:11px; }
.hp .guided-finish .guide-body > .eyebrow { display:none; }
.hp .guided-finish .guide-body > h2 { font-size:32px; margin:8px 0; }
.hp .guided-finish .guide-progress li { padding-bottom:8px; }
.hp .guided-finish .guide-body > p:first-of-type { margin:8px 0 16px; font-size:14px; }
.hp .flow-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:12px; }
.hp .flow-stack { display:grid; gap:12px; min-width:0; }
.hp .flow-card { min-width:0; padding:14px; border:1px solid var(--hp-line); border-radius:12px; background:var(--guide-surface); }
.hp .flow-card > header, .hp .flow-review-idea > header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 12px; }
.hp .flow-card h3, .hp .flow-observe h3 { font-size:15px; margin:0; color:var(--guide-accent); }
.hp .flow-card h4 { font-size:13px; margin:8px 0; }
.hp .flow-meta { color:var(--hp-muted); font-size:11px; }
.hp .flow-hint, .hp .flow-lock-note { color:var(--hp-muted); font-size:12px; line-height:1.5; margin:10px 0 0; }
.hp .flow-card p { overflow-wrap:anywhere; }
.hp .flow-view-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.hp .flow-view-row label, .hp .flow-card label { margin:0; font-size:12px; }
.hp .flow-view-row select, .hp .flow-card select, .hp .flow-card input:not([type=checkbox]) { margin-top:5px; min-height:38px; padding:8px 10px; font-size:13px; }
.hp .flow-card .grid { gap:10px 12px; }
.hp .flow-card button, .hp .flow-toolbar button, .hp .flow-observe button, .hp .flow-issues button { padding:6px 10px; min-height:32px; font-size:12px; }
.hp .flow-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.hp .flow-toolbar nav, .hp .flow-toolbar > div { display:flex; flex-wrap:wrap; gap:6px; margin:0; }
.hp .flow-toolbar nav { flex:1; }
.hp .flow-toolbar nav button { max-width:100%; overflow-wrap:anywhere; }
.hp .idea-presets { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.hp .idea-presets button { text-align:left; display:grid; align-content:start; gap:5px; padding:10px; }
.hp .idea-presets small { display:block; font-size:11px; line-height:1.4; color:var(--hp-muted); }
.hp .idea-presets button[aria-pressed=true], html[data-portal-theme="dark"] .hp .idea-presets button[aria-pressed=true] { background:var(--guide-soft); border-color:var(--guide-accent); box-shadow:inset 0 0 0 1px var(--guide-accent); }
.hp .idea-presets button[aria-pressed=true] strong { color:var(--guide-accent); }
.hp .flow-card > label { display:block; margin-top:12px; }
.hp .flow-card .flow-variable { margin-top:8px; }
.hp .flow-condition-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.hp .flow-condition-grid > div:first-child { grid-column:1/-1; }
.hp .flow-card > details { border:0; padding:0; margin:12px 0 0; }
.hp .guided-finish .guide-body > details { border:0; padding:0; margin:12px 0 0; }
.hp .flow-card.setup-event-rules { margin:0; padding:14px; background:var(--guide-surface); }
.hp .flow-card > details > summary { font-size:12px; color:var(--hp-muted); }
.hp .flow-card > details > .grid { margin-top:12px; }
.hp .flow-card .options { grid-template-columns:1fr; }
.hp .flow-card .option { padding:8px; }
.hp .flow-card .option.selected { padding:7px; }
.hp .flow-card .option small { font-size:12px; }
.hp .flow-bias-confirm { margin-bottom:12px; }
.hp .flow-rules { display:grid; gap:7px; }
.hp .flow-card .flow-rule { display:flex; align-items:flex-start; gap:8px; padding:10px; border:1px solid var(--hp-line); border-radius:8px; cursor:pointer; }
.hp .flow-rule input { margin:2px 0 0; width:17px; height:17px; flex:0 0 17px; accent-color:var(--guide-accent); }
.hp .flow-rule small { display:block; color:var(--hp-muted); font-size:11px; line-height:1.4; margin-top:3px; }
.hp .flow-rule.is-selected { border-color:var(--guide-accent); background:var(--guide-soft); }
.hp .flow-card .flow-event-buffer { display:grid; grid-template-columns:1fr 85px; gap:12px; align-items:center; }
.hp .flow-event-buffer input { text-align:right; }
.hp .flow-event { padding:10px 0; border-top:1px solid var(--hp-line); }
.hp .flow-event strong { font-size:12px; }
.hp .flow-event > small, .hp .flow-window small { display:block; color:var(--hp-muted); font-size:11px; margin-top:4px; }
.hp .flow-event label { display:block; margin-top:8px; }
.hp .flow-event p { font-size:12px; margin:5px 0; }
.hp .flow-plan-banner { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 14px; margin:0 0 12px; border-radius:10px; background:var(--guide-soft); }
.hp .flow-plan-banner strong { font-size:18px; color:var(--guide-accent); }
.hp .flow-plan-banner div > span { display:block; font-size:12px; margin-top:2px; }
.hp .flow-plan-state { color:var(--guide-accent); font-weight:600; font-size:12px; }
.hp .flow-review-idea + .flow-review-idea { border-top:1px solid var(--hp-line); padding-top:12px; margin-top:12px; }
.hp .flow-review-idea > header { margin-bottom:8px; }
.hp .flow-review-idea > header strong { font-size:13px; }
.hp .flow-reference { font-size:12px; margin:0 0 8px; color:var(--guide-accent); }
.hp .flow-facts { margin:0; display:grid; gap:6px; font-size:12px; }
.hp .flow-facts > div { display:grid; grid-template-columns:58px minmax(0,1fr); gap:8px; }
.hp .flow-facts dt { color:var(--hp-muted); }
.hp .flow-facts dd { margin:0; overflow-wrap:anywhere; }
.hp .flow-level-grid { display:grid; gap:0; }
.hp .flow-level-grid > div { display:flex; justify-content:space-between; gap:12px; padding:7px 0; font-size:12px; border-bottom:1px solid var(--hp-line); }
.hp .flow-level-grid strong { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.hp .flow-level-grid small { display:block; color:var(--hp-muted); font-size:10px; }
.hp .flow-context-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:12px; }
.hp .flow-context-tags span { padding:3px 7px; border-radius:5px; background:var(--guide-soft); color:var(--guide-accent); font-size:11px; }
.hp .flow-review .market-fact-grid { grid-template-columns:1fr; }
.hp .flow-risk-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.hp .flow-risk-summary > div { padding:9px; background:var(--guide-soft); border-radius:8px; }
.hp .flow-risk-summary small { display:block; color:var(--hp-muted); font-size:11px; }
.hp .flow-risk-summary strong { font-size:17px; font-variant-numeric:tabular-nums; }
.hp .flow-rule-summary { margin:12px 0; padding-left:17px; font-size:12px; }
.hp .flow-rule-summary li { margin:5px 0; }
.hp .flow-window { margin:0 0 12px; font-size:12px; }
.hp .flow-issues { padding:10px 14px; margin-bottom:12px; border:1px solid var(--hp-line); border-radius:10px; }
.hp .flow-issues > div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.hp .flow-issues ul { padding-left:16px; margin:6px 0; font-size:12px; }
.hp .flow-observe, .hp .flow-wait { padding:12px; background:var(--guide-soft); border-radius:8px; }
.hp .flow-observe p, .hp .flow-wait p { font-size:13px; margin:8px 0; }
.hp .guided-finish .guide-footer { position:sticky; bottom:-24px; z-index:2; display:grid; grid-template-columns:1fr auto; gap:3px 12px; align-items:center; margin:16px -12px -12px; padding:10px 12px; background:var(--guide-surface); }
.hp .guided-finish .guide-footer > p { margin:0; }
.hp .guided-finish .guide-footer .actions { grid-column:2; grid-row:1/3; margin:0; }
.hp .guided-finish .guide-footer > button { justify-self:start; }
@media(max-width:760px) {
  .hp .guided-finish { padding:max(20px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); }
  .hp .flow-columns { grid-template-columns:1fr; }
  .hp .flow-card { padding:12px; }
  .hp .guided-finish .guide-footer { bottom:-20px; margin-bottom:-8px; }
}
@media(max-width:440px) {
  .hp .guided-finish .guide-body > h2 { font-size:28px; }
  .hp .flow-view-row { grid-template-columns:1fr; gap:8px; }
  .hp .flow-toolbar { align-items:stretch; }
  .hp .flow-condition-grid { grid-template-columns:1fr; }
  .hp .flow-plan-banner { align-items:flex-start; }
  .hp .flow-plan-state { text-align:right; }
  .hp .flow-card .flow-risk-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hp .guided-finish .guide-footer { grid-template-columns:minmax(0,1fr); }
  .hp .guided-finish .guide-footer .actions { grid-column:1; grid-row:2; }
  .hp .guided-finish .guide-footer > button { grid-row:3; }
}
.hp .market-auto-context .market-context-note { margin-bottom:8px; }
@media(max-width:760px) { .hp .market-tabs { top:calc(-1 * max(20px, env(safe-area-inset-top))); } }
@media(max-width:680px) {
  .hp .market-fact-grid, .hp .market-context-pickers, .hp .market-context-pickers .options { grid-template-columns:minmax(0,1fr); }
  .hp .market-tabs button { align-items:flex-start; flex-direction:column; gap:0; font-size:13px; }
  .hp .market-context-pickers > .grid { grid-template-columns:minmax(0,1fr); gap:0; }
  .hp .market-context-pickers > .grid .inline { margin:0 0 6px; }
}

/* One compact workspace for preparation, reusable choices and review. */
html[data-portal-theme="dark"] .hp { --guide-surface:#182026; --guide-soft:#273650; --guide-accent:#adc4ff; }
.hp .planning-heading { margin:8px 0 12px; }
.hp .planning-heading h2 { font-size:24px; }
.hp [aria-label="Planning workspace"] { margin:0 0 18px; }
.hp [aria-label="Planning workspace"] button { min-width:100px; }
.hp .plan-home-heading h3 { margin:0; font-size:17px; }
.hp .session-card { padding:16px; }
.hp .session-card > header { margin:0 0 8px; gap:8px; }
.hp .session-card > header h3 { margin:0; }
.hp .session-card > header small { font-size:12px; }
.hp .session-plan-row { margin:8px 0; }
.hp .session-card > button { margin-top:6px; padding:7px 10px; font-size:12px; }
.hp .history-controls { display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; margin:12px 0; }
.hp .history-controls > label { flex:1; min-width:130px; font-size:12px; margin:0; }
.hp .history-controls > details { align-self:center; border:0; padding:0; margin:0; font-size:12px; }
.hp .history-controls > details[open] { flex:1 0 100%; order:3; }
.hp .history-controls input,.hp .history-controls select { min-height:38px; margin-top:4px; }
.hp .row-actions { display:flex; gap:6px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.hp .row-actions button { margin:0; padding:5px 9px; font-size:12px; }
.hp .review-shortcuts { margin:12px 0; }
.hp .review-queue { border:0; padding:0; margin:0; font-size:12px; }
.hp .review-queue[open] { flex-basis:100%; }
.hp .workspace-subnav { margin:0 0 16px; }
.hp [data-plan-surface] .workspace-subnav button { padding:6px 12px; font-size:12px; }
.hp .template-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.hp .template-facts { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--hp-muted); margin-top:10px; }
.hp .template-tabs { grid-template-columns:repeat(4,minmax(0,1fr)); }
.hp .template-level { display:flex; align-items:flex-end; gap:8px; padding:10px; border:1px solid var(--hp-line); border-radius:8px; }
.hp .template-level > label { flex:1; }
.hp .template-level > button { margin-bottom:2px; }
.hp .choice-list { display:grid; gap:8px; }
.hp .choice-row { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:16px; padding:12px 14px; border:1px solid var(--hp-line); border-radius:10px; background:var(--guide-surface); }
.hp .choice-row small { display:block; color:var(--hp-muted); font-size:11px; margin-top:2px; }
.hp .choice-row p { margin:4px 0 0; font-size:12px; }
.hp .choice-row strong { font-size:13px; }
.hp .choice-editor { margin-bottom:12px; }
.hp .report-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
.hp .report-metrics > div { display:flex; flex-direction:column; gap:3px; border:1px solid var(--hp-line); border-radius:10px; padding:12px 14px; background:var(--guide-soft); }
.hp .report-metrics strong { font-size:24px; color:var(--guide-accent); }
.hp .report-metrics span { font-size:12px; color:var(--hp-muted); }
.hp .workspace-report-card .flow-toolbar label { min-width:150px; font-size:12px; }
.hp .flow-toolbar h3 { margin:0; }
.hp .workspace-history .row:last-child { border-bottom:0; }
.hp .guide-footer:empty { display:none; }
@media(max-width:650px) {
  .hp .template-grid { grid-template-columns:minmax(0,1fr); }
  .hp .template-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hp .choice-row { grid-template-columns:minmax(0,1fr); gap:8px; }
  .hp .choice-row .row-actions { justify-content:flex-start; }
  .hp .report-metrics { gap:6px; }
  .hp .report-metrics > div { padding:10px; }
  .hp .report-metrics span { font-size:11px; }
  .hp .planning-heading .flow-meta { display:none; }
  .hp .history-controls > label { min-width:100px; }
}

.hp .flow-toolbar > div:has(> h3) { display:block; }
.hp .flow-toolbar > div > .flow-hint { margin:4px 0 0; }
.hp .workspace-more { border:0; margin:0; padding:0; font-size:12px; }
.hp .workspace-more[open] { padding:8px; border:1px solid var(--hp-line); border-radius:8px; }
.hp .workspace-more button { display:block; margin-top:5px; }
.hp .message:not(.error) { background:var(--guide-soft); border-color:var(--hp-line); }
.hp button:focus-visible,.hp input:focus-visible,.hp select:focus-visible,.hp textarea:focus-visible,.hp summary:focus-visible { outline-color:var(--guide-accent); }
/* Compact draft cleanup: exact targets are reviewed before one destructive action. */
.hp :is([data-action="delete-draft"],[data-action="delete-old-drafts"]) { color: var(--hp-muted); }
.hp :is([data-action="delete-draft"],[data-action="delete-old-drafts"]):hover { color: #e9998d; border-color: #b65d52; }
.hp .plan-dialog.draft-delete-dialog { width: min(580px, calc(100vw - 32px)); padding: 24px; }
.hp .draft-delete-dialog h2 { margin: 0 0 12px; font-size: 1.4rem; }
.hp .draft-delete-list { list-style: none; margin: 16px 0; padding: 0; max-height: 35vh; overflow-y: auto; }
.hp .draft-delete-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--hp-line); }
.hp .draft-delete-list li span { font-size: .85rem; }
.hp .draft-delete-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.hp .draft-delete-dialog button[data-action="confirm-draft-delete"] { background: #9e342c; border-color: #9e342c; color: #fff; }
.hp .draft-delete-dialog button[data-action="confirm-draft-delete"]:hover { background: #b04036; }

.hp .draft-delete-dialog button[data-action="confirm-reusable-delete"] { background:#9e342c; border-color:#9e342c; color:#fff; }
.hp .draft-delete-dialog button[data-action="confirm-reusable-delete"]:hover { background:#b04036; }
.hp .template-grid .actions { align-items:flex-start; }
.hp .flow-toolbar > .row-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px; }

/* Planner workspace: a warm welcome, quiet tools, and clear next actions. */
.hp { --hp-line:#d7e0eb; --hp-muted:#52647a; --planner-blue:#315fb2; --planner-blue-soft:#eaf1ff; --planner-lilac:#6951a6; --planner-lilac-soft:#f0edfc; --planner-amber:#98600e; --planner-amber-soft:#fff2d9; --planner-shadow:0 4px 18px #243a5c08; }
html[data-portal-theme="dark"] .hp { --hp-line:#344151; --hp-muted:#aab9cc; --planner-blue:#acc8ff; --planner-blue-soft:#243651; --planner-lilac:#c6b6ff; --planner-lilac-soft:#302b49; --planner-amber:#f4c783; --planner-amber-soft:#3d3225; --planner-shadow:0 5px 20px #00000020; }
.hp .planner-icon { width:20px; height:20px; flex:none; vertical-align:middle; }
.hp [data-plan-surface] h3 { font-family:inherit; letter-spacing:0; }
.hp .planning-heading { margin:8px 0 14px; }
.hp .planning-heading h2 { font-size:22px; }
.hp .planning-rhythm { display:flex; gap:10px; align-items:center; color:var(--hp-muted); font-size:11px; }
.hp .planning-rhythm i { font-style:normal; opacity:.5; }
.hp nav.planning-nav { display:flex; gap:4px; width:max-content; max-width:100%; margin:0 0 20px; padding:4px; border:1px solid var(--hp-line); border-radius:12px; background:var(--guide-surface); }
.hp nav.planning-nav button { display:flex; justify-content:center; align-items:center; gap:8px; min-width:125px; min-height:40px; padding:8px 18px; border:0; background:transparent; color:var(--hp-muted); font-size:13px; font-weight:600; }
.hp nav.planning-nav button[aria-current="page"] { background:var(--planner-blue-soft); color:var(--planner-blue); box-shadow:inset 0 -2px var(--planner-blue); }
.hp nav.planning-nav .planner-icon { width:17px; height:17px; }
.hp .workspace-subnav { gap:18px; margin:0 0 18px; border-bottom:1px solid var(--hp-line); }
.hp [data-plan-surface] .workspace-subnav button { background:transparent; color:var(--hp-muted); border:0; border-bottom:2px solid transparent; border-radius:0; padding:0 0 9px; font-size:13px; }
.hp [data-plan-surface] .workspace-subnav button.primary { background:transparent; color:var(--planner-blue); border-bottom-color:var(--planner-blue); }
.hp .session-welcome { position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:20px 24px; margin:0 0 16px; border:1px solid #d5dff1; border-radius:18px; background:radial-gradient(ellipse at 83% 95%,#ffe8bd80,transparent 46%),linear-gradient(110deg,#eff5ff,#f3f0fb 65%,#fbf4e8); }
html[data-portal-theme="dark"] .hp .session-welcome { border-color:#3e4a66; background:radial-gradient(ellipse at 83% 95%,#af713225,transparent 48%),linear-gradient(110deg,#1c2e48,#2a2942 65%,#36302d); }
.hp .session-welcome .welcome-copy { position:relative; z-index:1; margin:0; }
.hp .session-welcome .planner-kicker { font-weight:700; color:var(--planner-blue); font-size:10px; letter-spacing:1.7px; }
.hp .session-welcome h2 { font-family:inherit; font-weight:750; font-size:clamp(24px,2.2vw,32px); letter-spacing:-.8px; margin:5px 0; line-height:1.25; }
.hp .session-welcome p { margin:6px 0 12px; font-size:14px; }
.hp .welcome-date { color:var(--hp-ink); font-size:12px; font-weight:650; }
.hp .welcome-date span { color:var(--hp-muted); font-weight:400; }
.hp .welcome-journal { position:relative; z-index:1; display:flex; align-items:center; gap:7px; align-self:flex-end; white-space:nowrap; color:var(--planner-blue); font-size:12px; text-decoration:none; padding:6px 0; }
.hp .welcome-journal:hover { text-decoration:underline; text-underline-offset:4px; }
.hp .welcome-journal .planner-icon { width:17px; height:17px; }
.hp .welcome-horizon { position:absolute; right:11%; top:8px; width:280px; height:180px; pointer-events:none; color:var(--planner-amber); }
.hp .horizon-sun { position:absolute; width:90px; height:45px; border-radius:90px 90px 0 0; bottom:60px; left:95px; background:linear-gradient(#f5c879,#ed9f6855); box-shadow:0 -12px 45px #edb46735; }
.hp .horizon-orbit { position:absolute; width:150px; height:150px; left:65px; bottom:29px; border:1px solid currentColor; border-radius:50%; opacity:.16; }
.hp .horizon-orbit:after { content:""; position:absolute; inset:-20px; border:1px solid currentColor; border-radius:50%; opacity:.6; }
.hp .horizon-line { position:absolute; bottom:59px; width:100%; height:1px; background:linear-gradient(90deg,transparent,currentColor,transparent); opacity:.5; }
.hp .horizon-reflection { position:absolute; left:74px; width:132px; height:42px; bottom:9px; opacity:.2; background:repeating-linear-gradient(0deg,transparent 0 8px,currentColor 9px 10px); clip-path:polygon(25% 0,75% 0,100% 100%,0 100%); }
.hp .session-cards { gap:14px; }
.hp .session-card { position:relative; overflow:hidden; padding:16px; border-radius:14px; background:linear-gradient(115deg,var(--planner-lilac-soft),var(--guide-surface) 62%); box-shadow:var(--planner-shadow); }
.hp .session-card[data-session-kind="RTH"] { background:linear-gradient(115deg,var(--planner-amber-soft),var(--guide-surface) 62%); }
.hp .session-card.current-session { border-color:var(--planner-blue); box-shadow:inset 0 3px var(--planner-blue),var(--planner-shadow); }
.hp .session-card > header { margin:0 0 12px; }
.hp .session-identity { display:flex; align-items:center; gap:10px; }
.hp .session-card .session-symbol { width:40px; height:40px; border-radius:12px; background:var(--planner-lilac-soft); color:var(--planner-lilac); border:1px solid color-mix(in srgb,currentColor 20%,transparent); }
.hp .session-card[data-session-kind="RTH"] .session-symbol { background:var(--planner-amber-soft); color:var(--planner-amber); }
.hp .session-symbol .planner-icon { width:23px; height:23px; }
.hp [data-plan-surface] .session-card h3 { color:var(--hp-ink); font-size:21px; font-weight:700; line-height:1.1; }
.hp .session-card h3 small { display:block; margin:4px 0 0; font-size:11px; font-weight:400; }
.hp .session-next { padding:3px 8px; border-radius:20px; color:var(--planner-blue); background:var(--planner-blue-soft); font-size:10px; font-weight:650; letter-spacing:.2px; }
.hp .session-plan-row { gap:12px; padding:0 0 10px; margin:0 0 6px; border-bottom:1px solid var(--hp-line); }
.hp .session-plan-row > div { display:flex; flex-direction:column; gap:3px; }
.hp .session-plan-row strong { font-size:17px; }
.hp .session-state { display:flex; align-items:center; gap:5px; font-size:11px; color:var(--hp-muted); }
.hp .session-state:before { content:""; width:5px; height:5px; border-radius:50%; background:var(--planner-amber); }
.hp .session-state[data-state="ready"]:before { background:var(--planner-blue); }
.hp .session-card button.primary { display:inline-flex; justify-content:center; align-items:center; gap:18px; padding:9px 13px; border-radius:9px; font-size:13px; font-weight:600; background:var(--planner-blue); color:var(--guide-surface); }
.hp .session-card > button:not(.primary) { color:var(--hp-muted); border-color:transparent; background:transparent; padding:4px 0; }
.hp .session-card > button:not(.primary):hover { color:var(--planner-blue); }
.hp .session-empty-note { font-size:12px; margin:0 0 10px; }
.hp .review-shortcuts { margin:12px 0 18px; }
.hp .review-shortcuts > div { display:flex; flex-wrap:wrap; gap:6px; }
.hp [data-plan-surface] .review-shortcuts button { background:transparent; border-color:transparent; color:var(--hp-muted); padding:6px 2px; margin-right:14px; }
.hp [data-plan-surface] .review-shortcuts button:hover { color:var(--planner-blue); text-decoration:underline; text-underline-offset:4px; }
.hp .workspace-history { background:transparent; padding:16px 18px; }
.hp .workspace-history h3 { display:flex; align-items:center; gap:8px; color:var(--hp-ink); }
.hp .workspace-history h3 .planner-icon { width:17px; height:17px; color:var(--hp-muted); }
.hp .workspace-history .workspace-empty { margin:0; padding:14px 8px 5px; font-size:12px; }
.hp .workspace-history .history-controls { margin:10px 0 6px; }
.hp .workspace-history .history-controls > label:first-child { flex:0 1 200px; }
.hp .collection-heading { margin:0 0 16px; padding:16px 18px; border:1px solid var(--hp-line); border-radius:14px; background:linear-gradient(115deg,var(--planner-blue-soft),var(--guide-surface) 72%); }
.hp .collection-intro { display:flex; flex-wrap:nowrap; align-items:center; gap:12px; min-width:0; }
.hp .collection-intro h3 { color:var(--hp-ink); font-size:19px; font-weight:650; letter-spacing:-.3px; }
.hp .collection-intro .flow-hint { margin:5px 0 0; }
.hp .collection-symbol { display:grid; place-items:center; flex:none; width:43px; height:43px; border:1px solid var(--hp-line); border-radius:12px; background:var(--guide-surface); color:var(--planner-blue); }
.hp .collection-symbol .planner-icon { width:23px; height:23px; }
.hp .template-search { justify-content:space-between; margin:12px 0 16px; }
.hp .template-search label { flex:0 1 420px; }
.hp .template-card { padding:18px; box-shadow:var(--planner-shadow); border-top:2px solid var(--planner-blue); }
.hp .template-card header { align-items:flex-start; justify-content:flex-start; gap:10px; margin-bottom:12px; }
.hp .template-card h3 { color:var(--hp-ink); font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.hp .template-mark { color:var(--planner-blue); padding:6px; border-radius:8px; background:var(--planner-blue-soft); flex:none; }
.hp .template-facts { gap:7px; }
.hp .template-facts > span { padding:3px 7px; border-radius:5px; background:var(--planner-blue-soft); color:var(--hp-muted); font-size:11px; }
.hp .template-card .actions { margin:16px 0 0; padding-top:12px; border-top:1px solid var(--hp-line); align-items:center; }
.hp [data-plan-surface] :is(.collection-heading,.template-card,.report-empty) button.primary { color:var(--guide-surface); background:var(--planner-blue); border-color:var(--planner-blue); font-weight:600; }
.hp .template-card .workspace-more { margin-left:auto; }
.hp .choice-row { border-left:2px solid var(--planner-blue); }
.hp .collection-empty { grid-column:1/-1; padding:26px; text-align:center; border-style:dashed; }
.hp .collection-empty > .planner-icon { width:30px; height:30px; margin-bottom:12px; color:var(--planner-blue); }
.hp .collection-empty p { margin-bottom:0; }
.hp .report-heading { padding:18px; margin-top:0; background:linear-gradient(115deg,var(--planner-lilac-soft),var(--guide-surface) 70%); }
.hp .report-heading .collection-symbol { color:var(--planner-lilac); }
.hp .report-heading .planner-kicker { font-weight:700; display:block; margin-bottom:4px; color:var(--hp-muted); font-size:9px; letter-spacing:1.4px; }
.hp .report-heading .flow-toolbar { margin:12px 0 0; }
.hp .report-heading nav { margin:0; }
.hp [data-plan-surface] .report-heading nav button { background:transparent; }
.hp [data-plan-surface] .report-heading nav button.primary { background:var(--planner-blue-soft); border-color:var(--planner-blue); color:var(--planner-blue); }
.hp .report-heading .workspace-extra { margin-top:12px; }
.hp .report-metrics { gap:12px; margin:14px 0; }
.hp .report-metrics > div { position:relative; padding:16px 18px; background:var(--guide-surface); box-shadow:var(--planner-shadow); }
.hp .report-metrics strong { font-size:30px; line-height:1.25; font-variant-numeric:tabular-nums; }
.hp .report-metrics .metric-icon { position:absolute; right:16px; top:16px; display:grid; place-items:center; width:32px; height:32px; border-radius:9px; color:var(--planner-blue); background:var(--planner-blue-soft); }
.hp .report-metrics > div:nth-child(2) .metric-icon { color:var(--planner-lilac); background:var(--planner-lilac-soft); }
.hp .report-metrics > div:nth-child(3) .metric-icon { color:var(--planner-amber); background:var(--planner-amber-soft); }
.hp .workspace-report-card > header h3 { color:var(--hp-ink); }
.hp .report-empty { display:flex; align-items:center; gap:16px; padding:14px 0; }
.hp .report-empty > .planner-icon { width:34px; height:34px; color:var(--planner-amber); }
.hp .report-empty > div { flex:1; }
.hp .report-empty h4 { margin:0 0 4px; font-family:inherit; font-size:15px; }
.hp .report-empty p { font-size:12px; margin:0; }
.hp .report-empty button,.hp .report-empty .button { white-space:nowrap; font-size:12px; }
@media (hover:hover) { .hp .template-card:hover { border-color:var(--planner-blue); } .hp nav.planning-nav button:not([aria-current="page"]):hover { color:var(--hp-ink); background:var(--planner-blue-soft); } }
@media (max-width:900px) { .hp .welcome-horizon { right:5%; opacity:.6; } .hp .session-welcome { padding:22px; } .hp .collection-heading { align-items:flex-start; } }
@media (max-width:650px) {
  .hp .planning-heading h2 { font-size:20px; }
  .hp .planning-rhythm { display:none; }
  .hp nav.planning-nav { width:100%; gap:2px; }
  .hp nav.planning-nav button { flex:1; min-width:0; padding:8px 5px; gap:6px; font-size:12px; }
  .hp .session-welcome { flex-direction:column; align-items:flex-start; gap:10px; padding:20px; }
  .hp .session-welcome .welcome-copy { max-width:100%; }
  .hp .session-welcome h2 { font-size:25px; }
  .hp .session-welcome p { font-size:13px; margin-bottom:12px; }
  .hp .welcome-date span { display:block; margin-top:2px; }
  .hp .welcome-horizon { right:-60px; top:48px; opacity:.22; }
  .hp .welcome-journal { align-self:flex-start; }
  .hp .session-card { padding:16px; }
  .hp .session-cards { gap:10px; }
  .hp .session-card > header { flex-direction:row; align-items:center; margin-bottom:12px; }
  .hp .session-card h3 { font-size:20px; }
  .hp .collection-intro h3 { font-size:17px; }
  .hp .collection-heading { padding:14px; gap:14px; }
  .hp .collection-symbol { width:36px; height:36px; border-radius:10px; }
  .hp .collection-heading > .row-actions { justify-content:flex-start; }
  .hp .template-search label { flex:1; }
  .hp .workspace-history { padding:14px; }
  .hp .workspace-history .history-controls > label:first-child { flex:1; }
  .hp .report-heading { padding:14px; }
  .hp .report-heading .flow-toolbar > nav { flex:1 0 100%; flex-wrap:nowrap; }
  .hp .report-heading .flow-toolbar > nav button { flex:1; padding:6px 8px; }
  .hp .report-heading .flow-toolbar > label { display:flex; align-items:center; gap:10px; flex:1; }
  .hp .report-heading .flow-toolbar > label select { margin:0; }
  .hp .report-heading > header { flex-direction:row; flex-wrap:wrap; gap:14px; }
  .hp .report-metrics { gap:6px; }
  .hp .report-metrics > div { padding:12px 10px; }
  .hp .report-metrics .metric-icon { position:static; width:27px; height:27px; margin-bottom:5px; }
  .hp .report-metrics strong { font-size:25px; }
  .hp .report-empty { flex-wrap:wrap; gap:10px; }
  .hp .report-empty > div { flex-basis:calc(100% - 44px); }
  .hp .report-empty > button,.hp .report-empty > .button { margin-left:44px; }
}

.hp .planning-topbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:8px 0 20px; }
.hp .planning-topbar .planning-heading { display:block; margin:0; }
.hp .planning-topbar .planning-heading h2 { margin:0 0 5px; }
.hp .planning-topbar nav.planning-nav { margin:0; }
@media (max-width:650px) { .hp .planning-topbar { flex-direction:column; align-items:stretch; gap:12px; margin-bottom:16px; } .hp .planning-topbar .planning-heading h2 { margin:0; } }

/* Keep shared site styles from washing out private workspace controls. */
.hp .panel { box-shadow:none; }
.hp input:not([type="checkbox"]), .hp select, .hp textarea, .hp .badge { border-color:var(--hp-line); }
.hp input::placeholder,.hp textarea::placeholder { color:var(--hp-muted); opacity:1; }
.hp .template-library { overflow:visible; border:1px solid var(--hp-line); border-radius:16px; background:var(--guide-surface); box-shadow:var(--planner-shadow); }
.hp .template-library-heading { padding:22px 24px; margin:0; border-radius:16px 16px 0 0; background:linear-gradient(115deg,var(--planner-blue-soft),var(--guide-surface) 75%); }
.hp .template-library-heading .planner-kicker { display:block; margin-bottom:6px; font-size:10px; font-weight:700; letter-spacing:1.4px; color:var(--planner-blue); }
.hp .template-library-heading h3 { font-size:23px; line-height:1.25; letter-spacing:-.5px; margin:0; }
.hp .template-library-heading p { margin:6px 0 0; font-size:13px; }
.hp .template-library-heading .row-actions { flex:none; }
.hp .template-library-search { display:flex; align-items:center; gap:14px; padding:16px 24px; border-bottom:1px solid var(--hp-line); }
.hp .template-library-search label { display:flex; align-items:center; gap:12px; flex:1; margin:0; font-size:12px; }
.hp .template-library-search input { width:320px; max-width:100%; margin:0; }
.hp .template-library-search .flow-meta { white-space:nowrap; }
.hp .template-list { padding:0 24px; }
.hp .template-entry { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; padding:22px 0; }
.hp .template-entry + .template-entry { border-top:1px solid var(--hp-line); }
.hp .template-entry header { flex-direction:row; justify-content:flex-start; align-items:center; gap:10px; margin:0 0 12px; }
.hp .template-entry h3 { margin:0; font-size:16px; line-height:1.4; overflow-wrap:anywhere; }
.hp .template-tags { display:flex; gap:6px; flex-wrap:wrap; }
.hp .template-tags span { padding:3px 8px; background:var(--planner-blue-soft); border-radius:5px; color:var(--hp-muted); font-size:11px; }
.hp .template-entry .actions { margin:16px 0 0; align-items:center; gap:7px; }
.hp .template-entry .workspace-more { margin-left:4px; }
.hp .template-entry-preview { padding:14px 16px; border:1px solid var(--hp-line); border-radius:10px; background:color-mix(in srgb,var(--planner-blue-soft) 35%,var(--guide-surface)); align-self:start; }
.hp .template-entry-preview h4 { font-size:11px; font-weight:600; color:var(--hp-muted); margin:0 0 10px; }
.hp .template-contents { margin:0; font-size:12px; }
.hp .template-contents > div { display:grid; grid-template-columns:82px minmax(0,1fr); gap:12px; }
.hp .template-contents > div + div { margin-top:10px; }
.hp .template-contents dt { color:var(--planner-blue); font-weight:600; }
.hp .template-contents dd { margin:0; overflow-wrap:anywhere; }
.hp .template-contents dd span,.hp .template-contents dd small { display:block; }
.hp .template-contents dd span + span { margin-top:4px; }
.hp .template-contents small { color:var(--hp-muted); margin-top:4px; }
.hp .template-no-content { font-size:12px; margin:0; }
.hp .template-library-footer { display:flex; align-items:center; gap:10px; margin:0; padding:14px 24px; border-top:1px solid var(--hp-line); color:var(--hp-muted); font-size:12px; }
.hp .template-library-footer > .planner-icon { color:var(--planner-blue); flex:none; }
.hp .template-library-footer > span { flex:1; }
.hp .template-library-footer button { white-space:nowrap; }
.hp [data-plan-surface] .template-library button.primary { background:var(--planner-blue); border-color:var(--planner-blue); color:var(--guide-surface); font-weight:600; }
.hp .workspace-tools { margin-top:20px; border-top:1px solid var(--hp-line); padding-top:14px; }
.hp .workspace-tools-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.hp .workspace-tools-bar h3 { font-size:13px; margin:0; color:var(--hp-muted); }
.hp .workspace-tools-bar .actions { margin:0; gap:6px; align-items:center; }
.hp .workspace-tools-bar :is(button,.button) { font-size:12px; padding:7px 10px; }
.hp .plan-utilities { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.hp .plan-utility { border:1px solid var(--hp-line); border-radius:11px; background:var(--guide-surface); margin:0; padding:0; min-width:0; }
.hp .plan-utility > summary { padding:13px 15px; color:var(--hp-ink); }
.hp .plan-utility > summary > span { display:inline-flex; flex-direction:column; vertical-align:middle; gap:3px; }
.hp .plan-utility > summary strong { font-size:13px; }
.hp .plan-utility > summary small { color:var(--hp-muted); font-size:11px; font-weight:400; }
.hp .plan-utility[open] > summary { border-bottom:1px solid var(--hp-line); }
.hp .plan-utility-body { padding:12px 15px; font-size:12px; }
.hp .plan-utility-body p { margin:6px 0 10px; }
.hp .plan-utility-body h4 { font-family:inherit; font-size:13px; color:var(--hp-ink); margin:0 0 6px; }
.hp .plan-utility-body button { font-size:12px; padding:7px 10px; }
.hp .utility-scroll { max-height:240px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
.hp .utility-scroll:focus-visible { outline:2px solid var(--planner-blue); outline-offset:3px; }
.hp .activity-row { padding:9px 0; margin:0; border:0; border-bottom:1px solid var(--hp-line); }
.hp .activity-row:last-child { border-bottom:0; }
.hp .activity-row :is(span,time) { color:var(--hp-muted); font-size:11px; }
.hp .activity-row > span { display:block; }
.hp .activity-row > summary time { display:block; margin:3px 0 0 13px; font-weight:400; }
.hp .autosave-day { display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; }
.hp .compact-disclosure { border:0; border-top:1px solid var(--hp-line); margin:10px 0 0; padding:10px 0 0; }
.hp .compact-disclosure > summary { color:var(--hp-ink); font-size:12px; }
.hp .compact-disclosure > summary > span { float:right; font-weight:400; color:var(--hp-muted); }
.hp .notification-settings { margin-top:12px; border-top:1px solid var(--hp-line); padding-top:12px; }
.hp .device-alert-row { display:flex; align-items:center; gap:12px; }
.hp .device-alert-row p { flex:1; margin:0; }
.hp .device-alert-row button { flex:none; }
.hp .plan-utility .reminder-options { grid-template-columns:1fr; gap:12px; }
.hp .plan-utility .reminder-options article { padding:0; border:0; border-radius:0; }
.hp .plan-utility .reminder-options article + article { padding-top:12px; border-top:1px solid var(--hp-line); }
.hp .quiet-toggle { display:flex; align-items:center; gap:7px; margin:10px 0; }
.hp .quiet-toggle input { width:16px; height:16px; margin:0; accent-color:var(--planner-blue); }
.hp .quiet-fields { gap:8px; }
.hp .quiet-fields label { margin:0; }
.hp .quiet-fields .wide { grid-column:1/-1; }
.hp .quiet-fields input { margin:4px 0 8px; }
.hp .device-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
@media(max-width:760px) {
  .hp .template-library-heading { flex-wrap:wrap; padding:18px; gap:14px; }
  .hp .template-library-heading h3 { font-size:20px; }
  .hp .template-library-heading .row-actions { justify-content:flex-start; }
  .hp .template-library-search { padding:14px 18px; align-items:flex-end; }
  .hp .template-library-search label { display:block; min-width:0; }
  .hp .template-library-search input { margin-top:4px; width:100%; }
  .hp .template-list { padding:0 18px; }
  .hp .template-entry { grid-template-columns:1fr; gap:14px; padding:18px 0; }
  .hp .template-library-footer { flex-wrap:wrap; padding:14px 18px; }
  .hp .template-library-footer > span { flex-basis:calc(100% - 32px); }
  .hp .template-library-footer button { margin-left:30px; }
  .hp .workspace-tools-bar { flex-wrap:wrap; }
  .hp .workspace-tools-bar .actions { flex-wrap:wrap; }
  .hp .plan-utilities { grid-template-columns:1fr; }
}
