:root{--bg:#f7f8f8;--surface:#fff;--surface-alt:#f1f4f3;--text:#101719;--muted:#687477;--primary:#109792;--primary-dark:#087a77;--primary-soft:#e7f7f6;--border:#e4e9e8;--success:#4fa957;--warning:#d2a11e;--danger:#c84a4a;--info:#2b7889;--shadow:0 12px 36px rgba(16,23,25,.07);--radius:18px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text)}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}.brand-mark{width:44px;height:44px;border-radius:14px;background:var(--primary);color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:0 10px 28px rgba(16,151,146,.22)}.eyebrow{color:var(--primary-dark);font-size:11px;font-weight:850;letter-spacing:.12em;text-transform:uppercase}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(340px,.9fr) minmax(460px,1.1fr)}.login-brand{background:#0f2626;color:#fff;padding:56px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-brand:after{content:"";position:absolute;width:480px;height:480px;border-radius:50%;right:-190px;bottom:-210px;background:rgba(16,151,146,.16)}.login-copy{max-width:480px;position:relative;z-index:1}.login-copy .eyebrow{color:#79d7d1}.login-copy h1{margin:10px 0 16px;font-size:clamp(42px,6vw,72px);line-height:.95;letter-spacing:-.055em}.login-copy p{margin:0;color:rgba(255,255,255,.68);font-size:17px;line-height:1.55;max-width:420px}.login-foot{position:relative;z-index:1;font-size:12px;color:rgba(255,255,255,.42)}.login-form-wrap{display:grid;place-items:center;padding:48px;background:radial-gradient(circle at 75% 15%,#e7f7f6 0,transparent 38%)}.login-form{width:min(430px,100%)}.login-form h2{font-size:34px;letter-spacing:-.035em;margin:0 0 8px}.login-form>p{margin:0 0 28px;color:var(--muted);line-height:1.5}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-size:12px;font-weight:800;color:#344144}.field input,.field select,.field textarea{width:100%;border:1px solid #ccd6d4;border-radius:12px;background:#fff;padding:12px 14px;outline:none}.field textarea{min-height:104px;resize:vertical}.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(16,151,146,.10)}.password-wrap{position:relative}.password-wrap input{padding-right:64px}.show-password{position:absolute;right:7px;top:7px;height:36px;border:0;border-radius:9px;padding:0 10px;background:var(--surface-alt);color:var(--muted);font-size:11px;font-weight:800;cursor:pointer}.primary-button,.secondary-button,.danger-button,.ghost-button{border:0;border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer}.primary-button{background:var(--primary);color:#fff}.primary-button:hover{background:var(--primary-dark)}.secondary-button{background:var(--primary-soft);color:var(--primary-dark)}.danger-button{background:#fff0f0;color:#8d2929}.ghost-button{background:var(--surface-alt);color:var(--text)}.login-button{width:100%;height:50px;border:0;border-radius:12px;background:var(--primary);color:#fff;font-weight:850;cursor:pointer;box-shadow:0 8px 20px rgba(16,151,146,.18)}.login-error,.app-error{padding:12px 14px;border-radius:11px;background:#fff0f0;border:1px solid #f1caca;color:#8d2929;font-size:13px;line-height:1.4}.app{min-height:100vh;display:grid;grid-template-columns:260px 1fr}.sidebar{height:100vh;position:sticky;top:0;background:#0f2626;color:#fff;padding:22px 16px;display:flex;flex-direction:column;gap:18px;overflow:auto}.brand{display:flex;align-items:center;gap:12px;padding:0 6px}.brand strong{display:block;font-size:15px}.brand span{display:block;color:rgba(255,255,255,.52);font-size:10px;margin-top:2px}.nav{display:grid;gap:4px}.nav button{display:flex;gap:9px;align-items:center;border:0;border-radius:11px;padding:10px 11px;background:transparent;color:rgba(255,255,255,.7);font-weight:700;text-align:left;cursor:pointer}.nav button.active,.nav button:hover{background:rgba(255,255,255,.1);color:#fff}.nav-icon{width:20px;text-align:center}.sidebar-spacer{flex:1}.cloud{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.055);padding:12px;border-radius:13px;font-size:11px;color:rgba(255,255,255,.65)}.cloud strong{color:#fff}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#95a2a2;margin-right:7px}.dot.good{background:#72c77a;box-shadow:0 0 0 4px rgba(114,199,122,.12)}.account{padding:0 7px;font-size:11px;color:rgba(255,255,255,.62)}.account strong{display:block;color:#fff;margin-bottom:7px}.logout{border:0;padding:0;background:none;color:rgba(255,255,255,.62);cursor:pointer;text-decoration:underline;text-underline-offset:3px}.main{padding:30px 36px 58px;min-width:0}.top{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:24px}.top h1{font-size:40px;letter-spacing:-.05em;line-height:1;margin:6px 0 7px}.top p{margin:0;color:var(--muted)}.pill{background:var(--primary-soft);color:var(--primary-dark);padding:8px 11px;border-radius:999px;font-size:11px;font-weight:850;white-space:nowrap}.toolbar{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:18px}.toolbar .field{margin:0;min-width:150px}.toolbar input,.toolbar select{height:40px;padding:8px 11px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--border);border-radius:17px;padding:17px;box-shadow:var(--shadow)}.stat-label{font-size:11px;font-weight:800;color:var(--muted)}.stat-value{font-size:32px;font-weight:900;letter-spacing:-.04em;margin-top:7px}.stat-note{font-size:10px;color:var(--muted);margin-top:2px}.grid-2{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.panel{background:#fff;border:1px solid var(--border);border-radius:17px;box-shadow:var(--shadow);overflow:hidden}.panel+.panel{margin-top:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}.panel-head h2{margin:0;font-size:16px}.panel-head span{font-size:10px;color:var(--muted)}.panel-body{padding:16px 18px}.list-row{padding:13px 18px;border-bottom:1px solid var(--border)}.list-row:last-child{border-bottom:0}.row-flex{display:flex;gap:12px;align-items:flex-start}.row-main{min-width:0;flex:1}.row-title{font-weight:760;line-height:1.35}.meta{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.45}.actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.mini-button{border:0;border-radius:9px;padding:6px 9px;background:var(--surface-alt);color:var(--text);font-size:10px;font-weight:800;cursor:pointer}.mini-button.primary{background:var(--primary-soft);color:var(--primary-dark)}.mini-button.danger{background:#fff0f0;color:#8d2929}.status-dot{width:9px;height:9px;border-radius:50%;background:var(--info);margin-top:5px;flex:none}.status-dot.done{background:var(--success)}.status-dot.milestone{background:var(--warning)}.status-dot.high{background:var(--danger)}.empty{padding:32px 18px;text-align:center;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--text);margin-bottom:5px}.module{display:none}.module.active{display:block}.section-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;font-weight:850;color:var(--primary-dark);margin:18px 0 8px}.week-grid{display:grid;grid-template-columns:repeat(7,minmax(160px,1fr));gap:10px;overflow:auto;padding-bottom:8px}.day-column{background:var(--surface);border:1px solid var(--border);border-radius:15px;min-height:220px;padding:11px}.day-column.today{border-color:var(--primary);box-shadow:0 0 0 2px rgba(16,151,146,.08)}.day-title{font-weight:850;font-size:12px}.day-date{font-size:10px;color:var(--muted);margin-bottom:10px}.day-task{padding:8px;border-radius:10px;background:var(--surface-alt);font-size:11px;margin-bottom:7px}.day-task.done{opacity:.55;text-decoration:line-through}.binder-card,.feature-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:15px;box-shadow:var(--shadow)}.binder-card h3,.feature-card h3{margin:0 0 4px;font-size:15px}.progress{height:7px;background:var(--surface-alt);border-radius:99px;overflow:hidden;margin-top:10px}.progress span{display:block;height:100%;background:var(--primary)}.quick-capture{display:flex;gap:8px}.quick-capture input{flex:1;height:44px;border:1px solid #ccd6d4;border-radius:11px;padding:0 12px}.journal-entry{white-space:pre-wrap}.health-hero,.money-hero{padding:18px;border-radius:18px;background:var(--primary-soft);margin-bottom:14px}.money-hero{background:#fff1f1}.health-value,.money-value{font-size:30px;font-weight:900;letter-spacing:-.04em}.money-value{color:var(--danger)}.vehicle-strip{display:flex;gap:10px;overflow:auto;padding-bottom:8px}.vehicle-card{min-width:180px;background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;box-shadow:var(--shadow)}.vehicle-icon{height:72px;border-radius:13px;background:var(--primary-soft);display:grid;place-items:center;font-size:34px;margin-bottom:9px}.packing-group{margin-bottom:14px}.packing-item{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.packing-item:last-child{border-bottom:0}.packing-item.packed .row-title{text-decoration:line-through;opacity:.55}.check-button{width:26px;height:26px;border-radius:8px;border:1px solid #bdd0cd;background:#fff;cursor:pointer}.check-button.checked{background:var(--primary);color:#fff;border-color:var(--primary)}.timetable-board{display:grid;grid-template-columns:110px repeat(var(--spaces,1),minmax(160px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:14px;overflow:auto}.tt-cell{background:#fff;padding:9px;min-height:54px}.tt-head{font-weight:800;background:var(--primary-soft)}.tt-time{font-size:10px;color:var(--muted)}.tt-entry{background:var(--surface-alt);border-left:4px solid var(--primary);border-radius:8px;padding:8px;font-size:11px;margin-bottom:6px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.settings-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:16px;box-shadow:var(--shadow)}.settings-card h3{margin:0 0 12px}.modal-backdrop{position:fixed;inset:0;background:rgba(6,21,21,.46);display:none;align-items:center;justify-content:center;padding:20px;z-index:100}.modal-backdrop.open{display:flex}.modal{width:min(620px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:18px;box-shadow:0 30px 80px rgba(0,0,0,.22)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border-bottom:1px solid var(--border)}.modal-head h2{margin:0;font-size:18px}.modal-body{padding:18px}.modal-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:16px}.close-button{border:0;background:var(--surface-alt);width:34px;height:34px;border-radius:10px;cursor:pointer}.toast{position:fixed;right:20px;bottom:20px;background:#102727;color:#fff;border-radius:12px;padding:12px 15px;font-size:12px;font-weight:700;box-shadow:0 12px 32px rgba(0,0,0,.2);opacity:0;transform:translateY(10px);pointer-events:none;transition:.18s;z-index:120}.toast.show{opacity:1;transform:translateY(0)}@media(max-width:1050px){.stats{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.grid-3{grid-template-columns:repeat(2,1fr)}}@media(max-width:820px){.app{grid-template-columns:1fr}.sidebar{position:static;height:auto;max-height:none;padding:12px 13px}.brand{margin-bottom:2px}.nav{display:flex;overflow:auto;padding-bottom:3px}.nav button{white-space:nowrap}.cloud,.account{display:none}.main{padding:22px 15px 42px}.top h1{font-size:34px}.pill{display:none}.settings-grid{grid-template-columns:1fr}.login-page{grid-template-columns:1fr}.login-brand{min-height:260px;padding:34px}.login-copy h1{font-size:46px}.login-form-wrap{padding:36px 22px}}@media(max-width:560px){.stats,.grid-3{grid-template-columns:1fr}.top{margin-bottom:18px}.top h1{font-size:30px}.quick-capture{flex-direction:column}.actions{justify-content:flex-start}.row-flex{flex-direction:column}.login-brand{min-height:220px;padding:27px}.login-copy h1{font-size:39px}.login-copy p{font-size:14px}.login-foot{display:none}.login-form-wrap{padding:28px 18px}.login-form h2{font-size:29px}}

/* Money: chart lives inside the existing runway hero, not a separate panel. */
.money-runway-hero{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(320px,1.5fr);align-items:stretch;gap:24px}
.money-runway-summary{min-width:0}
.money-candles{min-width:0;display:flex;flex-direction:column;gap:10px;padding-left:22px;border-left:1px solid rgba(255,255,255,.12)}
.money-candles-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.money-candles-heading strong{font-size:14px;color:var(--text,#fff)}
.money-candles-heading span{font-size:11px;opacity:.7}
.money-candles-empty{position:relative;min-height:130px;display:flex;align-items:center;justify-content:center;text-align:center}
.money-candles-empty svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.money-candles-empty span{position:relative;max-width:270px;font-size:12px;line-height:1.5;opacity:.75}
@media(max-width:850px){.money-runway-hero{grid-template-columns:1fr}.money-candles{padding-left:0;padding-top:16px;border-left:0;border-top:1px solid rgba(255,255,255,.12)}}

.money-weekly-net{display:flex;align-items:end;gap:8px;min-height:118px;overflow-x:auto;padding:4px 0}
.money-weekly-net-column{flex:1;min-width:28px;max-width:62px;display:flex;flex-direction:column;align-items:center;gap:5px}
.money-weekly-net-column small{font-size:10px;opacity:.75}
.money-weekly-net-bars{height:96px;display:flex;align-items:end;justify-content:center;gap:3px;width:100%;border-bottom:1px solid rgba(255,255,255,.2)}
.money-weekly-net-actual{width:11px;background:#39b69e;border-radius:2px 2px 0 0}
.money-weekly-net-forecast{width:11px;border:2px solid #e1b56d;border-bottom:0;border-radius:2px 2px 0 0;box-sizing:border-box}

/* Real Money OHLC candles and transaction history */
.money-candles-actions{display:flex;justify-content:flex-end}
.money-candles-actions .secondary-button{font-size:12px}
.money-candle-scroll{width:100%;overflow-x:auto;overflow-y:hidden;padding-bottom:4px}
.money-candle{cursor:pointer;outline:none}
.money-candle:focus-visible{filter:drop-shadow(0 0 3px #fff)}
.money-ledger{margin-top:18px}
.money-ledger-filter{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-bottom:1px solid var(--border)}
.money-ledger .row-main{min-width:0}

.money-pup-overlay{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.58);display:grid;place-items:center;padding:16px}
.money-pup{width:min(500px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#121c1d;color:#e2eeee;border:1px solid #286064;border-radius:12px;box-shadow:0 20px 65px #0008}
.money-pup-head{padding:20px 22px;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #2a3d3e}
.money-pup-head h2{font-size:20px;margin:4px 0 0;font-weight:600}
.money-pup-close{border:0;background:transparent;color:#b6c7c7;font-size:27px;cursor:pointer}
.money-pup-body{display:grid;gap:16px;padding:22px}
.money-pup-body label{display:grid;gap:7px;font-size:13px;font-weight:600}
.money-pup-body input,.money-pup-body select{width:100%;box-sizing:border-box;border:1px solid #354d4f;border-radius:7px;background:#162122;color:#f0f5f5;padding:12px;font:inherit;font-weight:400;min-height:43px}
.money-pup-help{margin:-7px 0 0;color:#a7c2c2;font-size:12px;line-height:1.5}
.money-pup-error{color:#ffaaaa;font-size:13px;margin:0}
.money-pup-foot{display:flex;justify-content:flex-end;gap:12px;padding:15px 22px;border-top:1px solid #2a3d3e}
.money-pup-status[hidden],.money-pup-error[hidden]{display:none}

.money-position{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}
.money-position>div{background:var(--surface,#172324);border:1px solid var(--border,#304143);border-radius:10px;padding:14px;display:flex;flex-direction:column;gap:7px;min-width:0}
.money-position span{font-size:12px;color:var(--muted,#a9b9b9)}
.money-position strong{font-size:19px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.money-commitments{margin-bottom:16px}
.money-ledger-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.money-ledger-actions button{font-size:11px}
@media(max-width:900px){.money-position{grid-template-columns:repeat(2,minmax(0,1fr))}}

.money-candle-legend{display:flex;flex-wrap:wrap;gap:7px 14px;padding:6px 0 10px;font-size:11px}
.money-candle-legend span{display:inline-flex;align-items:center;gap:6px;color:var(--text,#e5eded)}
.money-candle-legend span:before{content:"";display:inline-block;width:9px;height:9px;background:var(--money-key);border-radius:2px}

/* Money forecast rollover and selectable series */
.money-rollover-guide{opacity:0;pointer-events:none}.money-rollover:hover .money-rollover-guide,.money-rollover:focus .money-rollover-guide{opacity:1}.money-rollover{outline:none}.money-candle-legend label{cursor:pointer;display:inline-flex;align-items:center;gap:5px}.money-candle-legend input{accent-color:var(--money-key);cursor:pointer}

/* Money chart reference-style rollover */
.money-chart-host{width:100%;overflow:visible}.money-interactive-chart{display:block;min-height:300px}.money-rollover.active .money-rollover-guide,.money-rollover:focus .money-rollover-guide{opacity:1}.money-floating-tooltip{display:none;position:absolute;top:28%;width:175px;z-index:5;padding:12px;background:#292c2d;border:1px solid #424a4c;border-radius:10px;box-shadow:0 6px 22px #0008;color:#f5f5f5;font-size:12px;pointer-events:none}.money-floating-tooltip strong{display:block;margin-bottom:8px}.money-floating-tooltip div{display:flex;align-items:center;gap:7px;margin-top:5px}.money-floating-tooltip i{display:inline-block;width:9px;height:9px;border-radius:50%;flex-shrink:0}.money-floating-tooltip b{margin-left:auto;font-weight:600}.money-candle-legend label{font-size:12px}

/* Money: compact runway heading, full-width financial forecast */
.money-runway-hero{display:flex;flex-direction:column;gap:12px}.money-runway-hero .money-runway-summary{display:grid;grid-template-columns:auto 1fr auto;align-items:center;column-gap:18px;row-gap:3px;min-height:0}.money-runway-hero .money-runway-summary .eyebrow{grid-column:1;grid-row:1}.money-runway-hero .money-runway-summary .money-value{grid-column:1;grid-row:2;font-size:24px}.money-runway-hero .money-runway-summary .meta{grid-column:2;grid-row:2}.money-runway-hero .money-runway-summary button{grid-column:3;grid-row:1/3;margin:0!important}.money-runway-hero .money-candles{border-left:0;border-top:1px solid rgba(255,255,255,.12);padding:14px 0 0;width:100%}.money-runway-hero .money-chart-host{width:100%}.money-runway-hero .money-interactive-chart{width:100%;height:auto}
@media(max-width:650px){.money-runway-hero .money-runway-summary{grid-template-columns:1fr auto}.money-runway-hero .money-runway-summary .meta{grid-column:1;grid-row:3}.money-runway-hero .money-runway-summary button{grid-column:2;grid-row:1/4}}

/* Keep the Money chart compact on wide dashboard panels. */
.money-runway-hero .money-chart-host{height:270px;max-height:270px;overflow:hidden}
.money-runway-hero .money-interactive-chart{display:block;width:100%;height:270px;min-height:0;max-height:270px;preserveAspectRatio:none}
.money-runway-hero .money-candles{gap:7px}
@media(max-width:650px){.money-runway-hero .money-chart-host{height:220px;max-height:220px}.money-runway-hero .money-interactive-chart{height:220px;max-height:220px}}

/* Money chart: use the available panel width, scrolling only the day plot. */
.money-runway-hero{min-width:0}
.money-candles{width:100%;min-width:0;box-sizing:border-box}
.money-bar-scroll{display:block;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin}
.money-bar-scroll svg{display:block;max-width:none;flex:none}
@media(max-width:600px){.money-bar-scroll{width:100%}.money-candles-heading{gap:5px}}

/* Fit the full 30-day forecast to its container; no horizontal scrollbar. */
.money-bar-scroll{width:100%;max-width:100%;overflow-x:hidden;overflow-y:hidden;padding-bottom:0}
.money-bar-scroll svg{display:block;width:100%;max-width:100%;height:352px;min-width:0}

/* Instant, colour-specific Money bar tooltips */
.money-chart-tooltip-host{position:relative;overflow:visible}
.money-bar-segment{cursor:crosshair;outline:none}
.money-bar-segment:hover,.money-bar-segment:focus-visible{filter:brightness(1.2)}
.money-bar-tooltip{display:none;position:absolute;z-index:30;width:210px;max-width:calc(100% - 12px);padding:11px 12px;background:#292d2f;border:1px solid #444c4f;border-radius:10px;box-shadow:0 8px 24px #0009;color:#f5f6f6;font-size:12px;pointer-events:none;line-height:1.4}
.money-bar-tooltip.visible{display:block}
.money-bar-tooltip>strong{display:block;font-size:12px;margin-bottom:9px}
.money-bar-tooltip-line{display:flex;align-items:center;gap:8px}
.money-bar-tooltip-line i{width:10px;height:10px;flex-shrink:0;border-radius:50%}
.money-bar-tooltip-line b,.money-bar-tooltip-detail b{margin-left:auto;font-weight:650;white-space:nowrap}
.money-bar-tooltip-detail{margin-top:9px;padding-top:7px;border-top:1px solid #53595b;color:#cbd1d1}
.money-bar-tooltip-detail>div{display:flex;align-items:baseline;gap:8px;margin:4px 0}
.money-bar-tooltip-detail span{min-width:0;overflow-wrap:anywhere}

/* Money: neutral panel, only the runway gap uses the danger colour. */
.money-runway-hero.money-hero{background:var(--surface,#141b1c);border:1px solid var(--border,rgba(255,255,255,.12));}
.money-runway-hero .money-value{color:var(--danger)}
/* Use the full centre column and close excess right-hand internal spacing. */
.money-runway-hero{width:100%;max-width:none;box-sizing:border-box;padding-right:16px;padding-left:16px}
.money-runway-hero .money-candles{padding-right:0;margin-right:0;gap:5px}
.money-runway-hero .money-candles-actions{margin:0}
.money-runway-hero .money-bar-scroll{width:100%;max-width:100%;margin-right:0}

/* Money panel: match adjacent dark cards, without a red wash. */
body .money-hero.money-runway-hero{
  background:#121a1b;
  background-color:#121a1b;
  border:1px solid rgba(255,255,255,.12);
}
/* Match the chart's outer left/right insets. */
body .money-hero.money-runway-hero{padding-left:16px;padding-right:16px}
body .money-runway-hero .money-candles{width:100%;padding-left:0;padding-right:0}
body .money-runway-hero .money-bar-scroll{width:100%;padding:0;margin:0}

/* Money: balance the OUTER gutter to the contextual right rail.
   The chart's SVG padding is separate and must not be used to fix this. */
@media(min-width:851px){
  .main:has(.money-runway-hero){padding-right:16px}
}

/* Compact Money forecast after removing redundant chart legend. */
.money-runway-hero .money-bar-scroll svg{height:290px}
.money-runway-hero .money-candles{gap:4px}

/* Money: compact shared header actions */
.money-runway-hero .money-runway-summary{position:relative;padding-right:98px;min-height:40px}
.money-runway-actions{position:absolute;right:0;top:0;display:flex;gap:6px;align-items:center}
.money-runway-actions .money-icon-action{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border-radius:9px}
.money-runway-hero .money-candles{margin-top:8px}
@media(max-width:540px){.money-runway-hero .money-runway-summary{padding-right:88px}.money-runway-actions .money-icon-action{width:32px;height:32px;min-width:32px}}


/* Approved Book Money rolling Runway (v4.5 behaviour in contemporary dark theme). */
.mr-work-panel{min-width:0;background:#101a1c;color:#f4f9f9}
.mr-planner{padding:14px;display:grid;gap:12px}
.mr-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mr-target{background:#142326;border:1px solid #2a4144;border-radius:10px;padding:13px;display:grid;gap:5px;min-width:0}
.mr-target small,.mr-metrics small,.mr-pay-dates small{font-size:10px;letter-spacing:.02em;color:#9eb8bc}
.mr-target strong{font-size:22px;line-height:1.2;color:#ff8086}
.mr-target:nth-child(2) strong{color:#f4f9f9}
.mr-target span,.mr-hint{font-size:11px;line-height:1.45;color:#9eb8bc}
.mr-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.mr-metrics>div{border-radius:8px;background:#183332;padding:9px;display:grid;gap:5px;min-width:0}
.mr-metrics strong{font-size:14px;color:#f4f9f9}
.mr-positive{color:#75e0b1!important}
.mr-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mr-block{background:#101a1c;border:1px solid #2a4144;border-radius:10px;padding:11px;min-width:0}
.mr-block-title{display:flex;align-items:start;justify-content:space-between;gap:7px;margin-bottom:12px}
.mr-block-title>div{display:grid;gap:3px;min-width:0}
.mr-block-title strong{font-size:13px;color:#f4f9f9}
.mr-block-title small{font-size:10px;color:#9eb8bc;line-height:1.3}
.mr-arrows{display:flex;gap:4px;flex-shrink:0}
.mr-arrows button,.mr-week-caption button{background:#183332;color:#8bdedc;border:1px solid #305052;border-radius:7px;cursor:pointer;font-size:17px;padding:2px 9px;min-height:29px}
.mr-week-caption{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:9px;font-size:11px;font-weight:600;color:#edf7f7}
.mr-week-caption button{font-size:10px;min-height:25px;padding:2px 7px}
.mr-days{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.mr-day{display:grid;justify-items:center;gap:6px;padding:9px 2px;background:#17272a;border:1px solid #304449;border-radius:8px;min-width:0;color:#fff;cursor:pointer}
.mr-day small{font-size:10px;color:#adc3c5}.mr-day strong{font-size:20px;line-height:1}.mr-day span{font-size:9px;overflow-wrap:anywhere}
.mr-day--booked{background:#183d41;border-color:#107f82}.mr-day--worked{background:#1a4a39;border-color:#349b75}
.mr-day--lost{background:#4a292d;border-color:#a85259}.mr-day--paid{background:#21425e;border-color:#527ca3}
.mr-day:hover,.mr-day:focus-visible{outline:2px solid #6ccbc9;outline-offset:2px}
.mr-hint{margin:9px 0 0}
.mr-jobs{background:#142628;border-radius:8px;margin-top:11px;padding:9px}
.mr-line{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:#e4eeee;font-size:11px;margin-bottom:9px}
.mr-line span{min-width:0;overflow-wrap:anywhere;color:#a9c0c3}.mr-line strong{flex-shrink:0;color:#f4f9f9}
.mr-pay-dates{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:12px 0}
.mr-pay-dates>div{background:#142628;border-radius:8px;padding:8px;display:grid;gap:5px}
.mr-pay-dates strong{font-size:12px;color:#f3f9f9}
.mr-status{font-size:10px;color:#80d5cf;background:#183332;padding:5px 7px;border-radius:100px;white-space:nowrap}
.mr-action{width:100%;padding:9px 10px;border-radius:8px;background:#107f82;border:1px solid #209ca0;color:white;font-size:12px;font-weight:650;cursor:pointer}
.mr-action:hover{background:#14989c}
.mr-history-row{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:9px;background:#142628;border-radius:7px;margin-bottom:6px;font-size:11px}
.mr-history-row span{color:#e5eeee}
@media(max-width:1250px){.mr-work-grid{grid-template-columns:1fr}}
@media(max-width:700px){.mr-overview{grid-template-columns:1fr 1fr}.mr-planner{padding:10px}.mr-target strong{font-size:18px}.mr-metrics{grid-template-columns:1fr 1fr}.mr-metrics>div:last-child{grid-column:1/-1}}

/* Money desktop: make the containing panel's heading compact.
   The SVG chart, its axes and monetary values retain their existing dimensions. */
@media (min-width:701px){
  body .money-hero.money-runway-hero{
    padding-top:10px;
    padding-bottom:10px;
    gap:6px;
  }
  .money-runway-hero .money-runway-summary{
    min-height:32px;
    padding-right:84px;
    row-gap:0;
  }
  .money-runway-hero .money-runway-summary .money-value{
    font-size:20px;
    line-height:1.15;
  }
  .money-runway-hero .money-runway-summary .meta{
    font-size:11px;
    line-height:1.25;
  }
  .money-runway-hero .money-runway-actions .money-icon-action{
    width:32px;
    height:32px;
    min-width:32px;
  }
  .money-runway-hero .money-candles{
    margin-top:0;
    padding-top:7px;
  }
}
