/* Shared working surfaces for billing and source management. */
:is(.account-refresh,.billing-refresh,.sources-refresh){--ops-soft:#102219;--ops-panel:#0b1710;--ops-line:#294333;--ops-muted:#a1b4a7;--ops-text:#eef5ef;--ops-accent:#ccff67;--ops-button-ink:#10200c;--ops-shadow:rgba(0,0,0,.12)}
html[data-sums-theme="light"] :is(.account-refresh,.billing-refresh,.sources-refresh){--ops-soft:#f6f9f7;--ops-panel:#fff;--ops-line:#dce6df;--ops-muted:#52675b;--ops-text:#183329;--ops-accent:#38621f;--ops-button-ink:#fff;--ops-shadow:rgba(24,51,41,.05)}
:is(.account-refresh,.billing-refresh,.sources-refresh) h1{font-size:clamp(1.8rem,3.5vw,2.65rem);line-height:1.15;letter-spacing:-.045em}
:is(.account-refresh,.billing-refresh,.sources-refresh) .eyebrow,.card-kicker{font-size:.75rem;letter-spacing:.12em;font-weight:750;color:var(--ops-muted)}
.page-jumps{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:6px;border:1px solid var(--ops-line);border-radius:14px;background:var(--ops-panel);margin:0 0 24px;width:fit-content;max-width:100%}
.page-jumps[hidden],.page-jumps a[hidden]{display:none!important}
.page-jumps a{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;min-height:44px;border-radius:10px;color:var(--ops-muted);font-size:.875rem;font-weight:600;text-decoration:none}
.page-jumps svg{width:18px;height:18px;flex:none}
.page-jumps a:hover{background:var(--ops-soft);color:var(--ops-text)}
.page-jumps a[aria-current="location"]{background:var(--ops-soft);color:var(--ops-accent)}
.page-jumps a:focus-visible{outline:2px solid var(--ops-accent);outline-offset:2px}
:is(.account-refresh,.billing-refresh,.sources-refresh) [data-nav-section]{scroll-margin-top:24px}
:is(.account-refresh,.billing-refresh,.sources-refresh) :is(.card,.subscription,.history){border-color:var(--ops-line);background:var(--ops-panel);box-shadow:0 12px 36px var(--ops-shadow);border-radius:18px}
:is(.account-refresh,.sources-refresh) .card{padding:26px;margin-bottom:20px}
:is(.account-refresh,.sources-refresh) .card h2{font-size:1.25rem;letter-spacing:-.025em;line-height:1.3}
.account-refresh .hero{padding:32px 0 24px}
.account-refresh .hero p{font-size:1rem}
.account-refresh :is(.workspace-plan-row,.payment-row,.unit-row){background:var(--ops-soft);border:1px solid var(--ops-line);padding:18px;border-radius:13px}
.account-refresh :is(.workspace-plan-row,.payment-row,.unit-row) strong{font-size:1rem}
.account-refresh :is(.workspace-plan-row,.payment-row,.unit-row) :is(span,small){line-height:1.55}
.account-refresh .row span{font-size:.875rem}
.account-refresh .plan-count{color:var(--ops-accent);font-size:2.5rem}
.account-refresh .access-head{align-items:center}
.account-refresh .access-head p{font-size:.875rem;line-height:1.65}
.account-refresh .modal-card{background:var(--ops-panel);border-color:var(--ops-line);border-radius:20px}
.account-refresh :is(.subscription-card,.modal-summary-row){background:var(--ops-soft);border-color:var(--ops-line)}
.account-refresh .modal-card h2{font-size:1.65rem;letter-spacing:-.035em}
.account-refresh :is(.btn,.field input,.field select){min-height:46px}
.account-refresh .grid{gap:20px}
.billing-refresh .layout>aside{background:var(--ops-panel);padding:30px 18px;border-color:var(--ops-line)}
.billing-refresh aside>a:not(.brand){min-height:46px;border-radius:11px;font-size:.875rem;line-height:1.5;padding:12px 14px}
.billing-refresh aside .active{background:var(--ops-soft);color:var(--ops-accent)!important}
.billing-refresh .brand{font-size:1.4rem;letter-spacing:.13em;margin:0 12px 34px}
.billing-refresh .brand span{font-size:.75rem;letter-spacing:.12em}
.billing-refresh .aside-bottom{font-size:.875rem}
.billing-refresh header{margin-bottom:26px;align-items:center}
.billing-refresh header>a{padding:11px 15px;border:1px solid var(--ops-line);border-radius:10px;font-size:.875rem;color:var(--ops-text);background:var(--ops-panel)}
.billing-refresh .subscription{padding:28px;gap:28px}
.billing-refresh .subscription h2{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.04em}
.billing-refresh .renewal{padding-left:28px}
.billing-refresh .history{padding:26px;margin-top:22px}
.billing-refresh .history h2{font-size:1.3rem}
.billing-refresh :is(.muted,.renewal label,td){font-size:.875rem}
.billing-refresh th{font-size:.75rem;background:var(--ops-soft)}
.billing-refresh td small{font-size:.8125rem}
.billing-refresh td button{font-size:.8125rem;min-height:44px}
.billing-refresh .badge{font-size:.8125rem;background:var(--ops-soft);color:var(--ops-accent)}
.billing-refresh :is(button,.primary){min-height:46px}
.billing-refresh .notice{background:var(--ops-soft);font-size:.875rem}
.sources-refresh .data-hero{padding:28px 0 24px;max-width:780px}
.sources-refresh .data-hero h1{margin:10px 0 12px}
.sources-refresh .data-hero p{font-size:1rem;line-height:1.65;margin:0}
.sources-refresh .data-topbar{border-color:var(--ops-line)}
.sources-refresh .data-topbar nav{gap:10px}
.sources-refresh .data-topbar nav>a{padding:10px 14px;border:1px solid var(--ops-line);border-radius:10px;font-size:.875rem;min-height:44px;color:var(--ops-text)}
.sources-refresh .card-kicker{margin-bottom:8px}
.sources-refresh .source-steps{gap:22px;padding:0 0 22px;flex-wrap:wrap;font-size:.875rem}
.sources-refresh .source-steps b{background:var(--ops-soft);border-color:var(--ops-line);color:var(--ops-text);font-size:.8125rem}
.sources-refresh label{font-size:.875rem;line-height:1.55}
.sources-refresh :is(.muted,.source-note p,.connection-panel p){font-size:.875rem;line-height:1.65}
.sources-refresh #workspaceCard>p{margin-bottom:0}
.sources-refresh #workspaceCard>select{max-width:580px}
.sources-refresh :is(input:not([type=checkbox]),select){min-height:48px;border-color:var(--ops-line);background:var(--ops-soft)}
.sources-refresh .source-tabs{gap:6px;padding:6px;margin:20px 0 22px;background:var(--ops-soft);border:1px solid var(--ops-line);border-radius:13px;width:fit-content;max-width:100%}
.sources-refresh .source-tabs button{border-color:transparent;border-radius:9px;padding:11px 20px;min-height:46px;font-size:.875rem;background:transparent;color:var(--ops-muted)}
.sources-refresh .source-tabs button[aria-selected=true]{background:var(--ops-accent);color:var(--ops-button-ink);border-color:var(--ops-accent)}
.sources-refresh #file{padding:28px 22px;border:1px dashed var(--ops-line);background:var(--ops-soft);font-size:.875rem}
.sources-refresh #file::file-selector-button{background:var(--ops-panel);color:var(--ops-text);border:1px solid var(--ops-line);font:inherit}
.sources-refresh .source-advanced{margin-top:0;padding-top:0;border:0}
.sources-refresh .source-advanced summary{font-size:.875rem;color:var(--ops-muted);padding:4px 0}
.sources-refresh :is(.connection-panel,.source-note,.completeness-card){background:var(--ops-soft);border-color:var(--ops-line);border-radius:13px}
.sources-refresh .connection-methods{gap:16px}
.sources-refresh button.connection-method{background:var(--ops-panel);color:var(--ops-text);border:1px solid var(--ops-line);border-radius:16px;padding:24px;text-align:left}
.sources-refresh button.connection-method.recommended{border-color:var(--ops-accent);background:var(--ops-soft)}
.sources-refresh .connection-method strong{font-size:1.125rem;letter-spacing:-.02em}
.sources-refresh .connection-method small{font-size:.875rem;line-height:1.65;color:var(--ops-muted)}
.sources-refresh .connection-method .method-cta{color:var(--ops-accent);font-size:.875rem}
.sources-refresh .method-badge{background:var(--ops-soft);border-color:var(--ops-line);color:var(--ops-accent)}
.sources-refresh .connections-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:28px 0 0;align-items:center}
.sources-refresh .connections-heading[hidden]{display:none}
.sources-refresh .connections-heading h3{margin:0;font-size:1.125rem}
.sources-refresh .connections-heading span{font-size:.875rem;color:var(--ops-muted)}
.sources-refresh #sheetsConnections .connection-item{background:var(--ops-panel);border-color:var(--ops-line);padding:20px}
.sources-refresh #sheetsConnections .connection-item>p{font-size:.875rem}
.sources-refresh :is(.unit-modal-card,.sheet-disconnect-card,.sheet-review-progress-card){background:var(--ops-panel);border-color:var(--ops-line)}
.sources-refresh :is(.mapping-table th,.mapping-table td){font-size:.875rem}
.sources-refresh .status{font-size:.875rem;line-height:1.6}
.sources-refresh .mapping-wrap{border-color:var(--ops-line)}
@media(hover:hover) and (pointer:fine){:is(.account-refresh,.billing-refresh,.sources-refresh) :is(.btn,.primary,.source-tabs button,.connection-method){transition:transform .18s,border-color .18s,box-shadow .18s}:is(.account-refresh,.billing-refresh,.sources-refresh) :is(.btn,.primary,.connection-method):hover{transform:translateY(-1px)}}
@media(max-width:850px){.billing-refresh .layout>aside{padding:16px;gap:8px}.billing-refresh .brand{margin:0 16px 0 0}.billing-refresh .renewal{padding:24px 0 0}.billing-refresh header{align-items:flex-start}.billing-refresh .subscription{padding:24px}}
@media(max-width:600px){.page-jumps{width:100%;gap:4px;margin-bottom:20px}.page-jumps a{padding:9px 10px;font-size:.8125rem;gap:6px}.page-jumps svg{width:16px;height:16px}:is(.account-refresh,.sources-refresh) .card{padding:20px}.account-refresh .access-head{align-items:stretch}.billing-refresh .history{padding:20px 16px}.billing-refresh td{padding:0}.sources-refresh .source-tabs{width:100%}.sources-refresh .source-tabs button{flex:1;padding-inline:12px}.sources-refresh #file{padding:20px 14px}.sources-refresh #file::file-selector-button{display:block;margin:0 0 12px}.sources-refresh button.connection-method{padding:20px}.sources-refresh .data-topbar nav{justify-content:flex-start}.sources-refresh .source-steps{gap:12px}.sources-refresh .source-steps span{display:flex;align-items:center}}
@media(prefers-reduced-motion:reduce){:is(.account-refresh,.billing-refresh,.sources-refresh) :is(.btn,.primary,.source-tabs button,.connection-method){transition:none!important;transform:none!important}}
