.duo-decisions {display:none;}
html:root.ivy-duo-mode .timing__panel {--dd-paper:#f2f2f7;--dd-card:#fff;--dd-text:#1c1c1e;--dd-muted:#767681;--dd-line:#e5e5eb;--dd-blue:#007aff;background:var(--dd-paper)!important;border:0!important;box-shadow:none!important;filter:none!important;backdrop-filter:none!important;}
html:root.ivy-duo-mode.dark-mode .timing__panel {--dd-paper:#101114;--dd-card:#1c1e24;--dd-text:#f5f5f7;--dd-muted:#a3a5b0;--dd-line:#32353f;--dd-blue:#69b6ff;}
html:root.ivy-duo-mode .timing__panel>*:not(.duo-decisions) {display:none!important;}
html:root.ivy-duo-mode .timing__panel .duo-decisions {display:flex!important;position:absolute;inset:0;flex-direction:column;color:var(--dd-text);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;overflow:hidden;container-type:inline-size;}
html:root.ivy-duo-mode .duo-decisions :is(div,span,p,strong,small,h1,h2,label,button,input,select,form,section,nav,header) {font-family:inherit!important;font-style:normal!important;letter-spacing:normal!important;text-transform:none!important;box-sizing:border-box;}
html:root.ivy-duo-mode .duo-decisions :is(h1,h2,p) {margin:0;}
html:root.ivy-duo-mode .duo-decisions .dd-header {flex:none;padding:clamp(20px,5cqw,34px) 24px 18px;}
html:root.ivy-duo-mode .duo-decisions .dd-eyebrow {font-size:10px!important;font-weight:650;letter-spacing:1.5px!important;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions h1 {font-size:clamp(25px,6.6cqw,40px);line-height:1.13;letter-spacing:-1.2px!important;font-weight:750;margin:8px 0!important;color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions h2 {font-size:18px;line-height:1.35;font-weight:650;color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions .dd-muted {color:var(--dd-muted);font-size:12px;line-height:1.55;font-weight:400;}
html:root.ivy-duo-mode .duo-decisions .dd-screen {flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 20px 24px;scrollbar-width:thin;}
html:root.ivy-duo-mode .duo-decisions .dd-card {background:var(--dd-card);border-radius:22px;padding:20px;margin-bottom:14px;min-width:0;border:1px solid #9399a50a;}
html:root.ivy-duo-mode .duo-decisions :is(button,input,select) {position:static!important;inset:auto!important;transform:none!important;translate:none!important;scale:none!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;max-width:100%;min-width:0;box-shadow:none!important;text-shadow:none!important;filter:none!important;}
html:root.ivy-duo-mode .duo-decisions button {cursor:pointer;border:0!important;min-height:44px;font-size:14px;border-radius:13px;padding:10px 14px;background:var(--dd-card);color:var(--dd-blue);font-weight:600;transition:background-color 160ms;}
html:root.ivy-duo-mode .duo-decisions button:focus-visible,html:root.ivy-duo-mode .duo-decisions :is(input,select):focus-visible {outline:2px solid var(--dd-blue);outline-offset:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-primary {background:#007aff!important;color:#fff!important;width:100%;}
html:root.ivy-duo-mode .duo-decisions .dd-link {background:transparent!important;padding:6px 0;text-align:left;}
html:root.ivy-duo-mode .duo-decisions .dd-welcome {margin-top:4px;padding:30px 24px;display:flex;flex-direction:column;gap:20px;}
html:root.ivy-duo-mode .duo-decisions .dd-welcome h2 {font-size:26px;letter-spacing:-.7px!important;}
html:root.ivy-duo-mode .duo-decisions .dd-orbit {display:grid;place-items:center;width:64px;height:64px;border-radius:22px;font-size:34px;color:#3382bf;background:linear-gradient(145deg,#eaf5fc,#dce9f4 60%,#ede4f8);box-shadow:inset 0 1px 0 #fff;}
html:root.ivy-duo-mode .duo-decisions .dd-tabs {flex:none;display:flex;gap:5px;margin:0;padding:12px 18px 46px;border-top:1px solid var(--dd-line);background:var(--dd-paper);}
html:root.ivy-duo-mode .duo-decisions .dd-tab {flex:1;font-size:12px;color:var(--dd-muted);background:transparent;padding:8px 5px;}
html:root.ivy-duo-mode .duo-decisions .dd-tab[aria-current=page] {color:var(--dd-blue);background:var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-import {display:flex;flex-direction:column;gap:9px;}
html:root.ivy-duo-mode .duo-decisions .dd-form {display:flex;flex-direction:column;gap:18px;}
html:root.ivy-duo-mode .duo-decisions .dd-field {display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--dd-muted);min-width:0;}
html:root.ivy-duo-mode .duo-decisions :is(input,select) {width:100%!important;height:46px!important;padding:10px 12px!important;border:1px solid transparent!important;border-radius:11px!important;font-size:16px!important;line-height:1.2!important;background:var(--dd-paper)!important;color:var(--dd-text)!important;-webkit-text-fill-color:var(--dd-text)!important;}
html:root.ivy-duo-mode .duo-decisions .dd-pair {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-form-actions {display:flex;gap:12px;align-items:center;margin-top:4px;}
html:root.ivy-duo-mode .duo-decisions .dd-form-actions .dd-primary {flex:1;width:auto;}
html:root.ivy-duo-mode .duo-decisions .dd-choice {display:flex;flex-direction:column;gap:8px;margin:4px 4px 18px;}
html:root.ivy-duo-mode .duo-decisions .dd-choice select {background:transparent!important;padding:0!important;font-size:18px!important;font-weight:650;}
html:root.ivy-duo-mode .duo-decisions .dd-hero {padding:24px 20px 18px;display:flex;flex-direction:column;gap:9px;background:linear-gradient(145deg,#afdcfb12,transparent 60%),var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-amount {font-size:clamp(28px,8cqw,48px);line-height:1.15;letter-spacing:-1.4px!important;font-weight:730;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .duo-decisions .dd-difference {font-size:12px;color:var(--dd-blue);}
html:root.ivy-duo-mode .duo-decisions .dd-chart {width:100%;margin:6px 0 0;}
html:root.ivy-duo-mode .duo-decisions .dd-chart svg {display:block;width:100%;height:auto;overflow:visible;}
html:root.ivy-duo-mode .duo-decisions .dd-chart-axis {display:flex;justify-content:space-between;color:var(--dd-muted);font-size:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-legend {display:flex;flex-wrap:wrap;gap:12px;font-size:11px;color:var(--dd-muted);margin:6px 0;}
html:root.ivy-duo-mode .duo-decisions .dd-accent {color:#238cce;}
html:root.ivy-duo-mode .duo-decisions .dd-horizons {display:flex;background:var(--dd-paper);padding:3px;border-radius:12px;margin-top:10px;gap:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-chip {flex:1;min-height:34px;padding:5px;background:transparent;font-size:12px;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-chip[aria-pressed=true] {background:var(--dd-card);color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions .dd-facts {padding:0 18px;}
html:root.ivy-duo-mode .duo-decisions .dd-fact {display:grid;grid-template-columns:1fr auto;gap:7px 12px;padding:16px 0;font-size:12px;align-items:baseline;}
html:root.ivy-duo-mode .duo-decisions .dd-fact+.dd-fact {border-top:1px solid var(--dd-line);}
html:root.ivy-duo-mode .duo-decisions .dd-fact strong {text-align:right;font-weight:600;overflow-wrap:anywhere;max-width:165px;}
html:root.ivy-duo-mode .duo-decisions .dd-fact small {grid-column:1/-1;font-size:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-section-title {margin:24px 4px 14px!important;}
html:root.ivy-duo-mode .duo-decisions .dd-templates {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-template {display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;padding:18px;color:var(--dd-text);border-radius:20px;}
html:root.ivy-duo-mode .duo-decisions .dd-template-icon {color:var(--dd-blue);font-size:24px;font-weight:400;}
html:root.ivy-duo-mode .duo-decisions .dd-template strong {font-size:14px;line-height:1.35;}
html:root.ivy-duo-mode .duo-decisions .dd-template small {font-size:11px;}
html:root.ivy-duo-mode .duo-decisions .dd-inline-actions {display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;}
html:root.ivy-duo-mode .duo-decisions .dd-comparison {display:flex;flex-direction:column;gap:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-comparison-amount {font-size:28px;font-weight:650;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .duo-decisions .dd-danger {color:#dc4054;}
html:root.ivy-duo-mode .duo-decisions .dd-notice {padding:14px;border-radius:14px;background:#1686dd12;color:var(--dd-blue);font-size:12px;line-height:1.5;margin-bottom:14px!important;}
html:root.ivy-duo-mode .duo-decisions .dd-error {font-size:13px;color:#d13b4e;line-height:1.5;}
@container(max-width:300px){html:root.ivy-duo-mode .duo-decisions .dd-pair,html:root.ivy-duo-mode .duo-decisions .dd-templates {grid-template-columns:1fr;}html:root.ivy-duo-mode .duo-decisions .dd-screen {padding-inline:12px;}html:root.ivy-duo-mode .duo-decisions .dd-fact {grid-template-columns:1fr;}html:root.ivy-duo-mode .duo-decisions .dd-fact strong {text-align:left;max-width:none;}}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .duo-decisions button {transition:none;}}

html:root.ivy-duo-mode .duo-decisions .dd-quick {display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 4px 8px;}
html:root.ivy-duo-mode .duo-decisions .dd-quick .dd-link {font-size:12px;}

html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-header {padding-bottom:8px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-header :is(.dd-eyebrow,p) {display:none;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-hero {text-align:center;align-items:center;padding:48px 20px 22px;gap:14px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-hero .dd-amount {font-size:clamp(40px,14cqw,80px);letter-spacing:-2.5px!important;line-height:1.1;}
html:root.ivy-duo-mode .duo-decisions .dd-arrival {font-size:22px;font-weight:550;letter-spacing:-.5px!important;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-hero .dd-horizons {align-self:stretch;margin-top:28px;}
/* Five-year overview and decision timeline. */
html:root.ivy-duo-mode .duo-decisions .dd-header {position:relative;}
html:root.ivy-duo-mode .duo-decisions .dd-setup {background:transparent;padding:6px 0;font-size:12px;min-height:36px;}
html:root.ivy-duo-mode .duo-decisions .dd-setup[hidden] {display:none!important;}
html:root.ivy-duo-mode .duo-decisions .dd-year-pager {display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;gap:8px;font-size:13px;}
html:root.ivy-duo-mode .duo-decisions .dd-year-pager button {width:44px;font-size:24px;}
html:root.ivy-duo-mode .duo-decisions .dd-year-pager button:disabled {opacity:.3!important;cursor:default;}
html:root.ivy-duo-mode .duo-decisions .dd-year-list {padding:0 20px;}
html:root.ivy-duo-mode .duo-decisions .dd-year-row {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:23px 0;}
html:root.ivy-duo-mode .duo-decisions .dd-year-row+.dd-year-row {border-top:1px solid var(--dd-line);}
html:root.ivy-duo-mode .duo-decisions .dd-year-row>div {display:flex;flex-direction:column;gap:5px;min-width:0;}
html:root.ivy-duo-mode .duo-decisions .dd-year-label {font-size:14px;font-weight:600;}
html:root.ivy-duo-mode .duo-decisions .dd-year-row .dd-muted {font-size:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-year-amount {font-size:clamp(24px,8cqw,42px);letter-spacing:-1px!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right;min-width:0;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-graph {display:flex;flex-direction:column;gap:9px;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-strip {display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 0 12px;margin-bottom:6px;scrollbar-width:thin;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chip {flex:none;display:flex;flex-direction:column;gap:6px;max-width:200px;text-align:left;padding:13px 16px;color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chip strong {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;font-size:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chip[aria-pressed=true] {background:#007aff14;color:var(--dd-blue);box-shadow:inset 0 0 0 1px #007aff35!important;}
html:root.ivy-duo-mode .duo-decisions .dd-selected-decision {display:flex;flex-direction:column;gap:12px;margin-top:16px;}
html:root.ivy-duo-mode .duo-decisions .dd-chart-marker {cursor:pointer;}
html:root.ivy-duo-mode .duo-decisions .dd-chart-marker:focus-visible circle {stroke:var(--dd-text);stroke-width:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-tab {font-size:11px;overflow-wrap:anywhere;}
@container(max-width:300px){html:root.ivy-duo-mode .duo-decisions .dd-tabs {padding-inline:8px;gap:1px;}html:root.ivy-duo-mode .duo-decisions .dd-tab {font-size:10px;padding-inline:2px;}}
html:root.ivy-duo-mode .duo-decisions .dd-tabs {display:grid;grid-template-columns:.85fr .85fr 1.3fr;}
html:root.ivy-duo-mode .duo-decisions .dd-tab {white-space:nowrap;overflow-wrap:normal;}
@container(max-width:300px){html:root.ivy-duo-mode .duo-decisions h1 {font-size:22px;}}
html:root.ivy-duo-mode .duo-decisions .dd-year-pager button {flex:none;}
html:root.ivy-duo-mode .duo-decisions .dd-year-pager .dd-year-select {flex:1;width:auto!important;text-align:center;font-weight:600;background:transparent!important;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-hero {padding-bottom:44px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-curve {width:100%;margin:8px 0 2px;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-overview-curve svg {display:block;width:100%;height:auto;overflow:visible;cursor:crosshair;touch-action:pan-y;border-radius:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-curve svg:focus-visible {outline:2px solid var(--dd-blue);outline-offset:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-curve-axis {display:flex;justify-content:space-between;gap:8px;text-align:left;font-size:10px;font-variant-numeric:tabular-nums;}
html:root.ivy-duo-mode .duo-decisions .dd-curve-axis span:last-child {text-align:right;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-curve>p {font-size:10px;margin-top:14px;}
/* A single expanding surface for one-off and recurring decision costs. */
html:root.ivy-duo-mode .duo-decisions .dd-cost-editor {padding:18px;border-radius:18px;background:var(--dd-paper);overflow:hidden;transition:background-color 300ms;}
html:root.ivy-duo-mode .duo-decisions .dd-cost-editor.is-recurring {background:color-mix(in srgb,var(--dd-blue) 7%,var(--dd-paper));}
html:root.ivy-duo-mode .duo-decisions :is(.dd-cost-one,.dd-cost-recurring) {display:flex;flex-direction:column;gap:18px;}
html:root.ivy-duo-mode .duo-decisions .dd-cost-editor [hidden] {display:none!important;}
html:root.ivy-duo-mode .duo-decisions .dd-cost-editor input {background:var(--dd-card)!important;}
html:root.ivy-duo-mode .duo-decisions .dd-recurring-toggle {display:block;width:100%;text-align:left;background:transparent;padding:10px 0;margin-top:10px;}
html:root.ivy-duo-mode .duo-decisions .is-recurring .dd-recurring-toggle {margin:0 0 10px;}
html:root.ivy-duo-mode .duo-decisions .dd-cost-summary {padding-top:12px;font-size:11px;}
html:root.ivy-duo-mode .duo-decisions :is(.dd-insight,.dd-insight-hero,.dd-billie-future) {display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-insight-hero {padding:26px 22px;background:linear-gradient(130deg,#45a9ec18,#9988ee0c),var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-insight-hero h2 {font-size:24px;letter-spacing:-.7px!important;}
html:root.ivy-duo-mode .duo-decisions .dd-insight-source {font-size:10px;color:var(--dd-muted);border-top:1px solid var(--dd-line);padding-top:12px;width:100%;}
html:root.ivy-duo-mode .duo-decisions .dd-insight-symbol {display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#007aff0c;color:var(--dd-blue);font-size:22px;}
html:root.ivy-duo-mode .duo-decisions .dd-insight-value {font-size:clamp(22px,7cqw,34px);font-weight:650;letter-spacing:-.8px!important;overflow-wrap:anywhere;max-width:100%;}
html:root.ivy-duo-mode .duo-decisions .dd-billie-future {background:transparent;border:1px solid var(--dd-line);}
@media(prefers-reduced-motion:reduce){html:root.ivy-duo-mode .duo-decisions .dd-cost-editor {transition:none;}}
/* Keep the complete overview card above the tab bar at phone heights. */
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:16px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-header .dd-setup {flex:none;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-screen {display:flex;flex-direction:column;gap:10px;padding-bottom:12px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-year-pager {flex:none;margin:0;}
html:root.ivy-duo-mode .duo-decisions .dd-projection-note {flex:none;text-align:center;font-size:10px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-hero {flex:0 1 540px;min-height:320px;padding:clamp(18px,4cqw,30px) 20px 18px;gap:10px;margin-bottom:0;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-curve {display:flex;flex-direction:column;flex:1;min-height:100px;margin:0;width:100%;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-curve svg {flex:1;min-height:55px;height:0;width:100%;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-curve-axis {flex:none;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-curve>p {flex:none;margin-top:8px;}
html:root.ivy-duo-mode .duo-decisions .dd-routine-options {display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--dd-line);padding-top:14px;}
html:root.ivy-duo-mode .duo-decisions .dd-routine-options[hidden] {display:none!important;}
html:root.ivy-duo-mode .duo-decisions .dd-repeat-month {width:100%;text-align:left;background:var(--dd-paper);}
html:root.ivy-duo-mode .duo-decisions .dd-repeat-month[aria-pressed=true] {background:#24c58b16;color:#17946b;}
html:root.ivy-duo-mode .duo-decisions .dd-history-zoom {display:flex;flex:none;gap:4px;border-radius:12px;background:var(--dd-paper);padding:3px;margin-bottom:6px;}
html:root.ivy-duo-mode .duo-decisions .dd-history-zoom button {flex:1;min-height:32px;}
html:root.ivy-duo-mode .duo-decisions .dd-history-legend {display:flex;flex:none;justify-content:center;gap:16px;font-size:10px;padding-top:8px;}
html:root.ivy-duo-mode .duo-decisions .dd-history-legend span::before {content:'';display:inline-block;width:14px;height:3px;vertical-align:middle;margin-right:5px;border-radius:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-expectation-label::before {background:#fff;box-shadow:0 0 0 1px #7a879966;}
html:root.ivy-duo-mode .duo-decisions .dd-recorded-label::before {background:#24c58b;}
html:root.ivy-duo-mode .duo-decisions .dd-recorded-summary {flex:none;font-size:10px;line-height:1.5;}
html:root.ivy-duo-mode .duo-decisions .dd-routine-chart svg {cursor:default;height:clamp(180px,30vh,260px);}

html:root.ivy-duo-mode .duo-decisions .dd-cash-caption {flex:none;font-size:10px;text-align:left;margin:2px 0 4px;}
/* The graph remains a complete first screen; the number breakdown follows it. */
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-screen {display:block;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-primary {display:flex;flex-direction:column;gap:8px;height:100%;min-height:0;padding-bottom:12px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-primary .dd-overview-hero {flex:1;min-height:300px;max-height:540px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-note {display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;}
html:root.ivy-duo-mode .duo-decisions .dd-details-link {flex:none;font-size:10px;min-height:24px;padding:0;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-details {display:flex;flex-direction:column;gap:12px;padding:18px 0 8px;scroll-margin-top:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-details-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:2px;}
html:root.ivy-duo-mode .duo-decisions .dd-details-heading h2 {font-size:20px;}
html:root.ivy-duo-mode .duo-decisions .dd-details-heading .dd-link {font-size:10px;min-height:32px;}
html:root.ivy-duo-mode .duo-decisions :is(.dd-overview-cash,.dd-overview-target) {display:flex;flex-direction:column;gap:10px;margin:0;padding:20px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-cash {background:linear-gradient(135deg,#21ac8310,transparent 70%),var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-state {font-size:13px;font-weight:600;margin-top:4px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-difference {font-size:clamp(30px,10cqw,44px);font-weight:700;letter-spacing:-1.2px!important;line-height:1.1;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-details .is-positive {color:#16825f;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-details .is-negative {color:#c63e54;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-overview-details .is-positive {color:#42dba0;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-overview-details .is-negative {color:#ff8297;}
html:root.ivy-duo-mode .duo-decisions .dd-cash-breakdown {display:flex;flex-direction:column;gap:12px;border-top:1px solid var(--dd-line);padding-top:14px;margin-top:3px;}
html:root.ivy-duo-mode .duo-decisions .dd-cash-breakdown>div {display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-cash-breakdown span {color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-cash-breakdown strong {font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;text-align:right;}
html:root.ivy-duo-mode .duo-decisions .dd-cash-context {font-size:10px;line-height:1.5;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-overview-metrics {display:grid;grid-template-columns:1fr 1fr;gap:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-metric {display:flex;flex-direction:column;gap:10px;min-width:0;border-radius:18px;padding:16px;background:var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-metric-label {font-size:11px;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-overview-metric strong {font-size:clamp(21px,6cqw,30px);font-weight:650;letter-spacing:-.5px!important;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-metric small {font-size:10px;line-height:1.5;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-metrics-note {color:var(--dd-muted);font-size:10px;text-align:center;}
html:root.ivy-duo-mode .duo-decisions .dd-target-heading {display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap;}
html:root.ivy-duo-mode .duo-decisions .dd-target-heading strong {font-size:14px;}
html:root.ivy-duo-mode .duo-decisions .dd-target-percent {font-size:38px;font-weight:700;letter-spacing:-1px!important;line-height:1.15;}
html:root.ivy-duo-mode .duo-decisions .dd-target-progress {height:6px;overflow:hidden;border-radius:6px;background:var(--dd-line);margin:6px 0;}
html:root.ivy-duo-mode .duo-decisions .dd-target-progress>span {display:block;height:100%;border-radius:inherit;background:var(--dd-blue);}
@container(max-width:300px){html:root.ivy-duo-mode .duo-decisions .dd-overview-metric {padding:13px;gap:8px;}html:root.ivy-duo-mode .duo-decisions :is(.dd-overview-cash,.dd-overview-target) {padding:16px;}}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse {flex:none;border-radius:20px;padding:5px 10px;background:color-mix(in srgb,var(--dd-blue) 8%,transparent);color:var(--dd-blue);font-size:10px;font-weight:600;line-height:1.3;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse.is-positive {background:#21ac8314;color:#16825f;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse.is-negative {background:#dc405414;color:#c63e54;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-overview-pulse.is-positive {color:#42dba0;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-overview-pulse.is-negative {color:#ff8297;}

html:root.ivy-duo-mode .duo-decisions .dd-overview-units {margin:0;background:var(--dd-card);}
html:root.ivy-duo-mode .duo-decisions .dd-overview-units .dd-chip[aria-pressed=true] {background:var(--dd-paper);}
html:root.ivy-duo-mode .duo-decisions .dd-overview-units button:disabled {cursor:default;}
html:root.ivy-duo-mode .duo-decisions.dd-is-overview .dd-overview-primary .dd-overview-hero {min-height:270px;}
html:root.ivy-duo-mode .duo-decisions .dd-arrival {font-size:clamp(16px,5.7cqw,22px);}

/* Focus the decision graph on one month or year, with readable chart labels. */
html:root.ivy-duo-mode .duo-decisions .dd-decision-controls {width:100%;margin-bottom:4px;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-controls .dd-year-pager {margin:6px 0 0;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-controls button:disabled {cursor:default;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chart svg {height:clamp(220px,33vh,300px);color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-plan-label::before {background:#269cde;}
html:root.ivy-duo-mode .duo-decisions .dd-template-custom {grid-column:1/-1;display:grid;grid-template-columns:32px 1fr;column-gap:12px;row-gap:5px;background:color-mix(in srgb,var(--dd-blue) 7%,var(--dd-card));}
html:root.ivy-duo-mode .duo-decisions .dd-template-custom .dd-template-icon {grid-row:1/3;align-self:center;}
html:root.ivy-duo-mode .duo-decisions .dd-template-custom small {grid-column:2;}

html:root.ivy-duo-mode .duo-decisions.dd-is-compare .dd-header {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px 12px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-compare .dd-header :is(.dd-eyebrow,p) {display:none;}
html:root.ivy-duo-mode .duo-decisions.dd-is-compare .dd-header .dd-setup {flex:none;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chart .dd-history-legend {gap:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-decision-chart .dd-history-legend span {white-space:nowrap;}

/* Live, unsaved comparison within the decision editor. */
html:root.ivy-duo-mode .duo-decisions .dd-draft-preview {padding:14px;border-radius:16px;background:var(--dd-paper);min-width:0;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-heading {display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-heading strong {font-size:16px;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-preview>p {font-size:10px;margin:5px 0 8px;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-plot svg {display:block;width:100%;height:110px;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-draft-legend {display:flex;justify-content:center;gap:12px;font-size:10px;margin-top:7px;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-legend span::before {content:'';display:inline-block;width:12px;margin-right:4px;vertical-align:middle;border-top:2px solid #269cde;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-legend .dd-draft-before::before {border-top:2px dashed #8a93a1;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-facts {display:flex;justify-content:space-between;gap:10px;margin-top:10px;font-size:10px;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-facts>div {display:flex;flex-direction:column;gap:4px;min-width:0;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-facts strong {font-size:12px;overflow-wrap:anywhere;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-heading .is-positive {color:#16825f;}
html:root.ivy-duo-mode .duo-decisions .dd-draft-heading .is-negative {color:#c63e54;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-draft-heading .is-positive {color:#42dba0;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-draft-heading .is-negative {color:#ff8297;}

html:root.ivy-duo-mode .duo-decisions .dd-start-date {display:flex;flex-direction:row;align-items:center;gap:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-start-date>span {flex:none;font-size:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-start-date input {flex:1;min-width:0;width:0!important;padding:10px!important;font-size:12px!important;min-height:38px;}

/* Starting point: compact grouped rows, with secondary assumptions one level deeper. */
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-header {padding: max(20px,env(safe-area-inset-top)) 24px 12px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-header :is(.dd-eyebrow,p) {display:none;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline h1 {font-size:26px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-tabs {display:none;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-screen {padding-bottom:64px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-form {padding:0;background:transparent;border:0;gap:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group {background:var(--dd-card);border-radius:16px;padding:0 16px;margin-bottom:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group h2 {font-size:12px;color:var(--dd-muted);padding:14px 0 4px;margin:0;font-weight:500;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group .dd-field {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);align-items:center;gap:8px;min-height:52px;color:var(--dd-text);font-size:14px;border-bottom:1px solid var(--dd-line);}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group .dd-field:last-child {border-bottom:0;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group :is(input,select) {min-width:0;max-width:100%;box-sizing:border-box;text-align:right;background:transparent!important;padding:8px 0!important;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group input::-webkit-date-and-time-value {min-width:0;text-align:right;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-group small {grid-column:1/-1;padding-bottom:10px;font-size:11px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-note {font-size:12px;color:var(--dd-muted);margin:0 16px 16px;line-height:1.4;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-option {width:100%;text-align:left;min-height:50px;border-radius:16px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-advanced {background:var(--dd-card);padding:16px;border-radius:16px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-advanced .dd-field {margin:16px 0;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-form [hidden] {display:none!important;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-import {padding:16px;gap:4px;border-radius:16px;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-import h2 {font-size:16px;margin:0;}
html:root.ivy-duo-mode .duo-decisions.dd-is-baseline .dd-import p {font-size:12px;margin:4px 0;}

/* Overview polish: system picker, restrained Clear glass and icon tabs. */
html:root.ivy-duo-mode .duo-decisions .dd-symbol {width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
html:root.ivy-duo-mode .duo-decisions .dd-tabs {padding-top:6px;grid-template-columns:1fr 1fr 1.35fr;}
html:root.ivy-duo-mode .duo-decisions .dd-tabs .dd-tab {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:6px 3px;font-size:10px;line-height:1.2;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-picker {position:relative;align-self:center;width:auto;min-width:134px;padding:0;border-radius:22px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-picker .dd-year-select {appearance:none;-webkit-appearance:none;display:block;min-height:44px;width:100%!important;padding:8px 36px 8px 18px!important;cursor:pointer;border:0!important;color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions .dd-picker-chevron {position:absolute;right:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;pointer-events:none;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-units {padding:3px;background:color-mix(in srgb,var(--dd-muted) 9%,transparent);border-radius:16px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-units .dd-chip {min-height:38px;border-radius:13px;color:var(--dd-text);}
html:root.ivy-duo-mode .duo-decisions :is(.dd-overview-picker,.dd-overview-units .dd-chip[aria-pressed=true]) {
 background:radial-gradient(ellipse at 28% 12%,#ffffffa0,transparent 62%),linear-gradient(155deg,#e8e8eb55,#d9d9df30)!important;
 box-shadow:inset 0 1px 1px #ffffffe0,inset 0 -1px 2px #71819520,0 0 0 1px #a4a4ad25!important;
 -webkit-backdrop-filter:var(--duo-clear-filter,none)!important;backdrop-filter:var(--duo-clear-filter,none)!important;
}
html:root.ivy-duo-mode.dark-mode .duo-decisions :is(.dd-overview-picker,.dd-overview-units .dd-chip[aria-pressed=true]) {background:radial-gradient(ellipse at 28% 12%,#ffffff25,transparent 62%),linear-gradient(155deg,#52545e50,#35374030)!important;box-shadow:inset 0 1px 1px #ffffff45,0 0 0 1px #ffffff20!important;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse {display:inline-flex;align-items:center;gap:5px;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse.is-negative {color:#b42339;background:#b423390a;}
html:root.ivy-duo-mode.dark-mode .duo-decisions .dd-overview-pulse.is-negative {color:#ff95a4;background:#ff95a40a;}
html:root.ivy-duo-mode .duo-decisions .dd-overview-pulse .dd-symbol {width:14px;height:14px;stroke-width:2;}
html:root.ivy-duo-mode .duo-decisions .dd-details-link {display:inline-flex;align-items:center;gap:4px;min-height:32px;}
html:root.ivy-duo-mode .duo-decisions .dd-details-link .dd-symbol {width:13px;height:13px;}
@media(prefers-reduced-transparency:reduce) {
 html:root.ivy-duo-mode .duo-decisions :is(.dd-overview-picker,.dd-overview-units .dd-chip[aria-pressed=true]) {background:var(--dd-card)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;}
}
/* The shared moving lens owns the segment's glass; labels stay above it. */
html:root.ivy-duo-mode .duo-decisions .dd-overview-units.duo-lens-nav .dd-chip {
 position:relative!important;z-index:1;background:transparent!important;box-shadow:none!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
/* Decisions uses the same compact period picker and moving lens as Overview. */
html:root.ivy-duo-mode .duo-decisions .dd-decision-controls .dd-overview-picker {width:fit-content;max-width:100%;margin:8px auto 0;}

/* Keep the starting-point source explicit in both editable and linked states. */
html:root.ivy-duo-mode .duo-decisions .dd-source-heading {display:grid;gap:5px;}
html:root.ivy-duo-mode .duo-decisions .dd-source-badge {font-size:11px;font-weight:500;color:var(--dd-muted);}
html:root.ivy-duo-mode .duo-decisions .dd-import .dd-source-heading h2 {font-size:18px;margin:0;}
html:root.ivy-duo-mode .duo-decisions .dd-import>.dd-link {min-height:44px;margin-right:12px;}
html:root.ivy-duo-mode .duo-decisions .dd-routine-options {border-top:1px solid var(--dd-line);padding-top:10px;margin-top:4px;}
html:root.ivy-duo-mode .duo-decisions .dd-baseline-form input[readonly] {color:var(--dd-muted)!important;cursor:default;}

/* Open Duo: keep navigation within thumb reach at the panel's right edge. */
html:root.ivy-duo-mode.ivy-duo-layout--canvas .timing__panel .duo-decisions {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 144px;
  grid-template-rows:auto minmax(0,1fr);
  padding-bottom:30px;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-header {grid-column:1;grid-row:1;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-screen {grid-column:1;grid-row:2;min-width:0;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-tabs {
  grid-column:2;grid-row:1 / -1;align-self:center;
  display:flex;flex-direction:column;gap:8px;
  margin:0 12px 0 0;padding:6px;border:0;border-radius:29px;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-tabs .dd-tab {
  flex:none;min-height:72px;padding:12px 4px;gap:7px;border-radius:23px;
  font-size:10px;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-baseline {grid-template-columns:minmax(0,1fr);}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-baseline .dd-tabs {display:none;}

/* Open Duo period controls surround the section rail. */
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-overview .dd-header {display:none;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-overview .dd-screen {grid-row:1 / -1;padding-top:24px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions > .dd-overview-units {
  position:absolute;right:12px;top:calc(50% - 205px);width:132px;display:flex;gap:2px;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions > .dd-overview-units .dd-chip {font-size:11px;padding:5px 3px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions > .dd-overview-picker {
  position:absolute;right:12px;top:calc(50% + 128px);width:132px;min-width:0;margin:0;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions > .dd-overview-picker .dd-year-select {font-size:14px!important;padding-left:8px!important;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions > .dd-setup {
  position:absolute!important;inset:auto 18px 24px auto!important;width:126px;text-align:center;
}

/* Open Duo: one complete breakdown directly after the graph. */
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-note {display:none;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-details {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  grid-template-rows:auto auto auto auto;align-content:start;gap:12px;
  min-height:100%;padding:16px 0 20px;scroll-margin-top:0;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-details-heading {grid-column:1 / -1;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-cash {grid-column:1;grid-row:2;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-target {grid-column:2;grid-row:2;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-metrics {grid-column:1 / -1;grid-row:3;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-metrics-note {grid-column:1 / -1;grid-row:4;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions :is(.dd-overview-cash,.dd-overview-target) {padding:16px;gap:8px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-cash-breakdown {gap:8px;padding-top:10px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-overview-metric {gap:6px;padding:14px 16px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-tabs {background:#e7e7ed;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas.dark-mode .duo-decisions .dd-tabs {background:#25262c;}

html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-compare .dd-header {display:none;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-compare .dd-screen {grid-row:1 / -1;padding-top:24px;}

/* Saved decisions and their details follow the graph as one compact section. */
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-decision-breakdown {
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 18px;
  align-content:start;padding:16px 0 24px;
}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-decision-breakdown > :is(.dd-decision-strip,.dd-muted,.dd-selected-decision) {grid-column:1 / -1;margin:0;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-decision-breakdown .dd-selected-decision {display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;padding:18px;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-selected-decision > :is(h2,.dd-inline-actions) {grid-column:1 / -1;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions .dd-add-decision {grid-column:2;width:auto;padding-inline:24px;}

html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-recommendations .dd-header {display:none;}
html:root.ivy-duo-mode.ivy-duo-layout--canvas .duo-decisions.dd-is-recommendations .dd-screen {grid-row:1 / -1;padding-top:24px;}
