/* Shared CashBinder instrument surfaces, including the embedded Count panel. */
html:root[data-theme],html:root.jarvis-count{
  color-scheme:dark;--bg:#07121c;--bg2:#0e202c;--bg-secondary:#102330;--bg-elevated:#122734;
  --card:#102330;--text:#eaf6fb;--text-secondary:#a1b9c7;--muted:#a1b9c7;
  --border:#2c4959;--border-strong:#447082;--cyan:#83e5fa;--amber:#efbc75;
  --green:#79dca5;--green-soft:#102f2c;--blue:#7ed5f1;--soft:#12303c;
  --radius-sm:2px;--radius-md:2px;--radius-lg:2px;--radius-xl:2px;
  --mono:ui-monospace,"SFMono-Regular",Consolas,monospace;
  --face:linear-gradient(116deg,#132e3e,#0d202d 53%,#0b1b28);
  --cut-face:polygon(0 0,calc(100% - 13px) 0,100% 13px,100% 100%,13px 100%,0 calc(100% - 13px));
}
html[data-theme] body{
  background:radial-gradient(ellipse 85% 360px at 68% 0%,#14394788,transparent),
    linear-gradient(#6497ad0a 1px,transparent 1px),linear-gradient(90deg,#6497ad0a 1px,transparent 1px),var(--bg) !important;
  background-size:auto,32px 32px,32px 32px,auto !important;color:var(--text);
}
html.jarvis-count,html.jarvis-count body{background:#091722!important}
html[data-theme] .container>.app-header{border-bottom:1px solid var(--border);padding-bottom:12px!important}
html.jarvis-count .container>.app-header{padding-block:4px!important}
.app-header #cashbinderTitle{color:var(--text)!important;text-transform:uppercase;letter-spacing:-.025em!important}
html[data-theme] .app-header #cashbinderLogo,.top .logo{
  background:#174053!important;box-shadow:inset 0 0 0 1px #6faebe!important;border-radius:0!important;
  clip-path:polygon(0 7px,7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%);
}
#binderSpine stop{stop-color:#176480}#binderPage stop{stop-color:#d4f6ff}#cashbinderLogo path[stroke="#2EA54E"]{stroke:#2486a4}
html[data-theme] .app-header>.tabs,html[data-theme] #topControlsRoot>#topControlsMenu{
  border-radius:1px!important;border-color:#304f5d!important;background:#091a26!important;
}
html[data-theme] .app-header .tabs .tab-btn,html[data-theme] #topControlsRoot :is(.top-signin-btn,.mobile-top-menu-toggle,.settings-wheel,.top-language-select){
  border-radius:1px!important;background:#102532!important;color:#c5dce7!important;
  border-color:#2e5364!important;text-shadow:none!important;box-shadow:none!important;
}
html[data-theme] .app-header .tabs .tab-btn{font-family:var(--mono)!important;letter-spacing:.035em!important}
html[data-theme] .app-header .tabs .tab-btn.active{
  background:linear-gradient(110deg,#21485a,#163443)!important;color:#bcf4ff!important;box-shadow:inset 3px 0 var(--cyan)!important;
}
html[data-theme] #topControlsRoot .settings-panel,html[data-theme] .secondary-currency-menu{
  border:1px solid #4a7082!important;border-radius:2px!important;background:#0e222f!important;color:var(--text)!important;
}
html[data-theme] :is(.bottom-setting-card,.auth-card,.legal-panel,.planner-table-wrap,.table-wrap,.note,.box,.ad-safe-note){
  border-radius:2px!important;border-color:var(--border)!important;background-color:#10212c!important;
}
html[data-theme] .tab-panel :is(.stat-card,.fun-card),
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-card,
.paper .hero,.paper .card,.paper main.wrap{
  border:1px solid #365a6c!important;border-radius:0!important;clip-path:var(--cut-face);
  background:linear-gradient(45deg,transparent 8px,#5795a8 8.5px 9.6px,transparent 10px) bottom left / 15px 15px no-repeat,
    linear-gradient(45deg,transparent 8px,#5795a8 8.5px 9.6px,transparent 10px) top right / 15px 15px no-repeat,var(--face)!important;
  box-shadow:none!important;
}
html[data-theme] .tab-panel .stat-card .label,html[data-theme] .tab-panel .section-title,.paper .kicker{
  color:#b2dce8!important;font-family:var(--mono)!important;text-transform:uppercase;letter-spacing:.09em!important;
}
html[data-theme] .tab-panel :is(.value,.val,.planner-formula-value),
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean input{font-family:var(--mono)!important;font-variant-numeric:tabular-nums}
html[data-theme] :is(.panel-shell,.soft-card,.account-section,.account-row,.edit-details-card,.btn,.pill,.compound-projection-toggle,.related a,.top nav a,.back){border-radius:2px!important}
html[data-theme] .tab-panel :is(.edit-details-card,.income-config-card,.planner-shell){background-color:#0d202b!important;border-color:var(--border)!important}
html[data-theme] .tab-panel :is(.secondary,.compound-projection-toggle){background-color:#18313f!important;color:#bbecf7!important;border-color:#355969!important}
html[data-theme] .tab-panel :is(select,input):not([type=range]):not([type=checkbox]),html[data-theme] .settings-panel :is(select,input){border-radius:2px!important;accent-color:var(--cyan)}
html[data-theme] .planner-table th{background:#122d3d!important;color:#cfedf7!important}
html[data-theme] .planner-table td{border-color:var(--border)!important}
html[data-theme] :focus-visible{outline:2px solid var(--cyan)!important;outline-offset:2px}
.console-heading{position:relative;margin:0 0 16px;padding:22px 22px 24px;border-block:1px solid #315666;background:linear-gradient(100deg,#12313f,#0b1d2a 85%);overflow:hidden}
.console-heading h2,.paper h1{position:relative;z-index:1;font:750 clamp(26px,4.2vw,46px)/1.08 var(--font-display,system-ui);color:#edfbff;letter-spacing:-.045em}
.console-heading::before{content:"";position:absolute;inset:0 0 0 auto;width:30%;background:repeating-linear-gradient(135deg,transparent 0 14px,#61bdd22e 14px 15px,transparent 15px 22px);mask-image:linear-gradient(90deg,transparent,#000)}
.console-heading::after{content:"";position:absolute;left:22px;bottom:0;width:46px;height:3px;transform:skew(-38deg);background:repeating-linear-gradient(90deg,var(--amber) 0 6px,transparent 6px 10px)}
html[data-theme] #tab-currency .converter-card-clean{width:min(100%,850px)!important;max-width:100%!important;margin-inline:auto!important}
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;width:100%!important;max-width:none!important;
}
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-card{
  width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;height:68px!important;padding:0 18px!important;
}
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-card:focus-within{border-color:var(--cyan)!important;box-shadow:inset 3px 0 var(--cyan)!important}
html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-card input{color:var(--cyan)!important;min-width:0!important}
.paper .top{padding-bottom:14px;border-bottom:1px solid var(--border)}
.paper .brand,.paper a:not(.btn,.back,nav a,.related a){color:var(--cyan)}
.paper .note{border-left-color:var(--amber)}.paper .hero h1{margin-bottom:14px}
.paper .back,.paper nav a,.paper .related a{border-radius:1px;color:var(--text);background:#132937}
.paper>p:last-child{max-width:900px;margin-inline:auto}.paper{overflow-wrap:break-word}
@media(max-width:700px){
  html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-grid{grid-template-columns:minmax(0,1fr)!important;gap:8px!important}
  html[data-theme] body[data-active-tab] #tab-currency .converter-card-clean .currency-input-card{height:55px!important;padding-inline:14px!important}
  .console-heading{padding:16px 14px 18px}.console-heading::after{left:14px}
}

html[data-theme] #tab-tracker .combined-asset-section .minimal-shared-row,
html[data-theme] #tab-tracker .income-config-card :is(.minimal-shared-row,.monthly-income-row){
  border-radius:2px!important;border-color:#30505e!important;background:#0e212e!important;
}
html[data-theme] #tab-tracker :is(.section-head,.account-title-row) :is(.section-title,.label){
  font-family:var(--mono)!important;color:#b3ddeb!important;letter-spacing:.05em!important;
}
@media(max-width:450px){
  #tab-compound .compound-bottom-projection-stack--under-controls :is(.compound-projection-options,.compound-projection-toggles,.compound-projection-toggle){
    min-width:0!important;width:100%!important;max-width:100%!important;
  }
  #tab-compound .compound-bottom-projection-stack--under-controls .compound-projection-toggle span{white-space:normal!important;min-width:0!important;flex:1 1 auto!important}
}
