/* Perspectives: generated views (hex-scenes.js). Each card keeps its size;
   views stack in the same surface and the prompt pill follows the Hex shape:
   content width, white double rim, warm gradient, return key. */
.hx-perspectives .hx-artifact-surface { padding: 0; }
.hx-perspectives .hx-view { position: absolute; inset: 0; padding: 18px 17px 25px; visibility: hidden; }
.hx-perspectives .hx-view.is-on { visibility: visible; }
.hx-perspectives .hx-view > footer {
  position: absolute; bottom: 25px; left: 17px; right: 17px; display: flex; justify-content: space-between; gap: 7px;
  padding-top: 8px; border-top: 1px solid #e5deeb; color: #ad9fb4; font: 5.5px/1.7 'DM Mono', monospace;
}
.hx-perspectives .hx-view > footer > span { font-family: Inter, Arial, sans-serif; }
.hx-perspectives .hx-month-table { margin-top: 6px; }
.hx-perspectives .hx-month-table :is(th, td) { padding-block: 2px !important; line-height: 1.2 !important; }

/* Prompt pill (Hex shape). */
html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt {
  left: -7px; right: auto; bottom: -7px; width: auto; max-width: calc(100% - 4px);
  display: inline-flex; justify-content: flex-start; gap: 10px;
  min-height: 42px; padding: 5px 15px; border: 2px solid #fff; border-radius: 22px;
  background: linear-gradient(79deg, #f8e8ef 0%, #fdf6f9 45%, #fff 100%);
  box-shadow: 0 0 0 1px #ead6e0, 0 0 0 5px rgba(48, 26, 73, .03), 0 4px 7px rgba(60, 22, 44, .08);
  color: #3d3547; font: 400 14px/1.2 Inter, Arial, sans-serif !important;
}
html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt::before { display: none; }
html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt svg { width: 16px; height: 16px; color: #c49aaf; }
html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt .hx-prompt-text > span {
  min-width: 0; padding-inline-end: 2px; white-space: normal; overflow-wrap: anywhere;
}
html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt:hover { background: linear-gradient(79deg, #f4dde8 0%, #fbeef4 45%, #fff 100%); }
@media (max-width: 620px) {
  html[data-querio-preview][data-fusion] .hx-perspectives .hx-prompt { left: -4px; bottom: -7px; right: auto; min-height: 44px; padding-inline: 13px; font-size: 13px !important; }
}

/* Map views: where the buyers are (light) and the control room (dark). */
.hxv-map-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hxv-map-head h3 { margin: 0 0 4px; color: #2d2438; font: 600 16px/1.15 Inter, sans-serif; letter-spacing: -.02em; }
.hxv-map-head span { color: #9a8daa; font: 400 7px/1.5 'DM Mono', monospace; letter-spacing: .05em; }
.hxv-map-head strong { text-align: right; color: #2d2438; font: 500 30px/1 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.04em; }
.hxv-map-head strong small { display: block; margin-top: 4px; color: #9a8daa; font: 400 8px/1 Inter, sans-serif; letter-spacing: 0; }
.hxv-map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 46%; align-items: center; gap: 12px; margin-top: 6px; }
.hxv-br { display: block; width: auto; max-width: 100%; height: 166px; margin: 0 auto; overflow: visible; }
.hxv-br stop { stop-color: #7b5fc7; }
.hxv-br--dark stop { stop-color: #3fe0bf; }
.hxv-br path { fill: #e4dcf2; stroke: #fbf9fe; stroke-width: .8; stroke-linejoin: round; }
.hxv-br .hxv-heats { color: #7b5fc7; }
.hxv-br .hxv-heat { opacity: var(--a); mix-blend-mode: multiply; }
.hxv-br .hxv-pin circle { fill: #fff; stroke: #6d55b1; stroke-width: 1.2; }
.hxv-br .hxv-pin text { fill: #3a2a5c; font: 700 7px Inter, sans-serif; }
.hxv-rank { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.hxv-rank li { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 8px; padding: 8px 9px 9px; border: 1px solid #e8e1f1; border-radius: 5px; background: #fff; }
.hxv-rank li span { color: #7d6f8e; font: 500 9px/1.2 Inter, sans-serif; }
.hxv-rank li b { color: #2d2438; font: 500 19px/1 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.03em; }
.hxv-rank li i { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: linear-gradient(90deg, #7b5fc7 var(--w), #ece6f6 var(--w)); }

.hx-revenue[data-view="2"] .hx-artifact-surface { background: radial-gradient(120% 90% at 30% 70%, #142531 0%, #0d161e 70%); border-color: #1f2b37; }
.hxv-map-head--dark h3, .hxv-map-head--dark strong { color: #eef6f8; }
.hxv-map-head--dark span, .hxv-map-head--dark strong small { color: #6d8594; }
.hxv-br--dark path { fill: #1c2b37; stroke: #2a3b48; }
.hxv-br--dark .hxv-heats { color: #3fe0bf; }
.hxv-br--dark .hxv-heat { mix-blend-mode: screen; filter: blur(.4px); }
.hxv-br--dark .hxv-pin circle { fill: #0f1b24; stroke: #3fe0bf; }
.hxv-br--dark .hxv-pin text { fill: #d6fff4; }
.hxv-rank--dark li { border-color: #22313d; background: #121f29; }
.hxv-rank--dark li span { color: #9fb3bf; }
.hxv-rank--dark li b { color: #f2fbfd; }
.hxv-rank--dark li i { background: linear-gradient(90deg, #3fe0bf var(--w), #22313d var(--w)); box-shadow: 0 0 10px rgba(63, 224, 191, .25); }

/* Key takeaway first (quarter) */
.hxv-takeaway { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.hxv-takeaway h3 { margin: 0; color: #2f2620; font: 400 33px/.95 'Instrument Serif', Georgia, serif; letter-spacing: -.015em; text-wrap: balance; }
.hxv-takeaway p { margin: 2px 0 0; text-align: right; }
.hxv-takeaway strong { display: block; color: #2f2620; font: 400 46px/.9 'Instrument Serif', Georgia, serif; }
.hxv-takeaway span { color: #8a7c70; font: 400 11px/1.2 Georgia, serif; }
.hxv-columns, .hxv-weeks { display: flex; align-items: flex-end; gap: 16px; height: 104px; margin-top: 14px; padding: 0 6px; border-bottom: 1px solid #e3d9cd; }
.hxv-columns { height: 86px; margin-top: 10px; }
.hxv-columns > div, .hxv-weeks > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.hxv-columns b, .hxv-weeks b { color: #5d5047; font: 500 11px/1 Inter, sans-serif; }
.hxv-columns i, .hxv-weeks i { flex-shrink: 0; width: 72%; height: calc(var(--h) * .66); border-radius: 2px 2px 0 0; background: #54473f; }
.hxv-columns .is-key i { background: #d9805e; }
.hxv-columns .is-key b { color: #c0643f; }
.hxv-columns span, .hxv-weeks span { margin-bottom: -18px; color: #9a8b7e; font: 400 10px/1 Inter, sans-serif; }

/* Goal / weekly headers */
.hxv-goal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.hxv-goal-head span { display: block; margin-bottom: 4px; color: #a8998b; font: 400 7px/1.5 'DM Mono', monospace; letter-spacing: .05em; }
.hxv-goal-head strong { color: #2f2620; font: 400 34px/1 'Instrument Serif', Georgia, serif; }
.hxv-goal-head em { padding: 4px 9px; border-radius: 999px; background: #fbe4d8; color: #b25a37; font: 500 10px/1 Inter, sans-serif; font-style: normal; white-space: nowrap; }
.hx-payments .hxv-goal-head span { color: #9a8daa; }
.hx-payments .hxv-goal-head strong { color: #2d2438; font: 600 28px/1 Inter, sans-serif; letter-spacing: -.04em; }
.hx-payments .hxv-goal-head em { background: #ebe4fa; color: #5b3fae; }

/* Line with goal */
.hxv-line { margin-top: 8px; }
.hxv-line svg { display: block; width: 100%; height: 118px; overflow: visible; }
.hxv-line .hxv-grid { stroke: #ebe3d8; fill: none; }
.hxv-line .hxv-goal { stroke: #d9805e; stroke-dasharray: 4 4; fill: none; }
.hxv-line text { fill: #c0643f; font: 500 9px Inter, sans-serif; }
.hxv-line .hxv-area { fill: rgba(84, 71, 63, .08); }
.hxv-line .hxv-stroke { stroke: #54473f; stroke-width: 2.2; fill: none; }
.hxv-line circle { fill: #54473f; }
.hxv-line circle.is-key { fill: #d9805e; stroke: #fff; stroke-width: 2; }
.hxv-line-x { display: flex; justify-content: space-between; margin-top: 4px; color: #9a8b7e; font: 400 10px/1 Inter, sans-serif; }

/* Scenarios side by side (payments) */
.hxv-scen-head { display: flex; justify-content: center; align-items: center; gap: 26px; }
.hxv-scen-head > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hxv-scen-head strong { color: #1f1b27; font: 600 34px/1 Inter, sans-serif; letter-spacing: -.045em; }
.hxv-scen-head span { color: #8b8296; font: 400 11px/1 Inter, sans-serif; }
.hxv-scen-head i { width: 1px; height: 42px; background: #ddd6e8; }
.hxv-scen-slider { position: relative; width: 72%; height: 12px; margin: 16px auto 0; border: 1px solid #ddd5ea; border-radius: 6px; background: #f0ecf8; }
.hxv-scen-thumb { position: absolute; left: 54%; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #c9bedf; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(48, 26, 73, .15); transform: translate(-50%, -50%); color: #2d2438; font: 600 8px/1 Inter, sans-serif; }
.hxv-scen-slider small { position: absolute; left: 54%; top: 17px; padding: 3px 6px; border-radius: 3px; background: #231f2b; color: #fff; font: 500 8px/1 Inter, sans-serif; white-space: nowrap; transform: translateX(-50%); }
.hxv-scen { display: block; width: 100%; height: 104px; margin-top: 20px; overflow: visible; }
.hxv-scen .hxv-band { fill: rgba(123, 103, 178, .16); }
.hxv-scen .hxv-past { stroke: #6f5bb0; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.hxv-scen .hxv-future { stroke: #6f5bb0; stroke-width: 2.4; stroke-dasharray: 6 5; fill: none; stroke-linecap: round; }
.hxv-scen .hxv-future--low { stroke: #c79ab9; }
.hxv-scen .hxv-today { stroke: #ddd6e8; }
.hxv-scen text { fill: #8b8296; font: 400 9px Inter, sans-serif; }
.hxv-weeks { margin-top: 18px; border-color: #e3dcef; }
.hxv-weeks i { background: #a594cf; }
.hxv-weeks .is-key i { background: #5f45ae; }
.hxv-weeks b { color: #4c405a; }
.hxv-weeks span { color: #8b7d96; }

/* Timeline (plan) */
.hxv-gantt { margin-top: 14px; }
.hxv-gantt-days, .hxv-gantt-row { display: grid; grid-template-columns: 62px 1fr 66px; align-items: center; }
.hxv-gantt-days { grid-template-columns: 62px repeat(5, 1fr) 66px; color: #93a38f; font: 400 9px/1 'DM Mono', monospace; }
.hxv-gantt-days span:first-child { grid-column: 2; }
.hxv-gantt-row { margin-top: 13px; padding-bottom: 11px; border-bottom: 1px dashed #d7e0d4; color: #3f4d3c; font: 500 11px/1 Inter, sans-serif; }
.hxv-gantt-row i { position: relative; height: 16px; margin-left: calc(var(--s) / 6 * 100%); width: calc((var(--e) - var(--s)) / 6 * 100%); border-radius: 8px; background: #b9cdb3; }
.hxv-gantt-row.is-key i { background: #5f8f63; }
.hxv-gantt-row small { color: #7f8f7c; font: 400 9px/1 Inter, sans-serif; text-align: right; }

/* Warmer plan: priorities in soft colored columns */
.hx-plan[data-view="2"] .hx-artifact-surface { background: #fdf8f3; border-color: #eedfd2; }
.hxv-pri-label { margin: 0 0 10px; color: #a08c7c; font: 500 9px/1 'DM Mono', monospace; letter-spacing: .12em; }
.hxv-pri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.hxv-pri section { padding: 9px 8px 10px; border-radius: 8px; }
.hxv-pri .is-review { background: #efe8fb; }
.hxv-pri .is-ready { background: #fde7d8; }
.hxv-pri .is-next { background: #e4f0e2; }
.hxv-pri h4 { margin: 0 0 8px; color: #4b3f3a; font: 500 10px/1.2 Inter, sans-serif; }
.hxv-pri article { display: flex; flex-direction: column; gap: 6px; padding: 10px 9px; border-radius: 6px; background: #fff; box-shadow: 0 2px 6px rgba(120, 80, 50, .08); }
.hxv-pri strong { color: #2f2620; font: 600 13px/1.1 Inter, sans-serif; }
.hxv-pri em { align-self: flex-start; padding: 3px 7px; border-radius: 4px; background: #fbefc9; color: #8a6a17; font: 500 8px/1.2 Inter, sans-serif; font-style: normal; }
.hxv-pri dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; margin: 2px 0 0; color: #8c7f76; font: 400 9px/1.2 Inter, sans-serif; }
.hxv-pri dd { margin: 0; color: #3f3530; }
@media (max-width: 620px) {
  .hxv-pri { gap: 6px; }
  .hxv-pri section { padding: 7px 6px 8px; }
  .hxv-pri article { padding: 8px 7px; }
  .hxv-pri strong { font-size: 11px; overflow-wrap: anywhere; }
  .hxv-pri dl { grid-template-columns: 1fr; gap: 1px; }
}

/* Share of revenue (donut) */
.hxv-donut-layout { display: grid; grid-template-columns: minmax(0, .72fr) minmax(max-content, 1fr); align-items: center; gap: clamp(8px, 1.1vw, 16px); margin-top: 12px; }
.hxv-donut { display: block; width: 100%; max-width: 150px; height: auto; margin-inline: auto; transform: rotate(-90deg); }
.hxv-donut text { transform: rotate(90deg); transform-origin: 60px 60px; }
.hxv-donut-track { fill: none; stroke: #f0ecf6; stroke-width: 16; }
.hxv-donut-seg { fill: none; stroke-width: 16; }
.hxv-donut-seg.s1, .hxv-donut-legend .s1 { stroke: #6d55b1; background: #6d55b1; }
.hxv-donut-seg.s2, .hxv-donut-legend .s2 { stroke: #a594cf; background: #a594cf; }
.hxv-donut-seg.s3, .hxv-donut-legend .s3 { stroke: #d6cbee; background: #d6cbee; }
.hxv-donut-total { fill: #2d2438; font: 600 13px Inter, sans-serif; letter-spacing: -.02em; }
.hxv-donut-sub { fill: #9a8daa; font: 400 6.5px Inter, sans-serif; }
.hxv-donut-legend { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hxv-donut-legend li { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; gap: 5px; padding-bottom: 8px; border-bottom: 1px solid #ece6f3; }
.hxv-donut-legend i { width: 7px; height: 7px; border-radius: 2px; }
.hxv-donut-legend span { color: #6f6380; font: 500 11px/1.2 Inter, sans-serif; overflow-wrap: anywhere; }
.hxv-donut-legend b { color: #2d2438; font: 500 clamp(13px, 1.4vw, 18px)/1 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -.03em; }
