/* Shared layout and live-data pages for the approved agency workbench. */
html body [hidden]{display:none!important}
html:root{--sidebar-expanded:208px}
html .app-shell .sidebar{background:#132134}
html .app-shell .sidebar .storage-panel>span{color:#b7cae5}
html .app-shell .brand-logo-full,html .app-shell[data-active-module="home"] .brand-logo-full{content:normal;width:172px;height:32px;object-fit:contain;color-scheme:dark}
html .app-shell .brand-logo-mark{color-scheme:dark}
html .app-shell .brand{background:transparent;border:0;box-shadow:none}
html .app-shell .sidebar-section{font-size:11px;text-transform:none;letter-spacing:0}
html .app-shell .nav{gap:5px;align-content:start}
html .app-shell .nav button{min-height:42px;border-radius:8px;font-size:12px}
.agency-icon{display:block;width:20px;height:20px;flex:none}
html .app-shell .theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-width:36px;padding:0;border-radius:9px}
html .app-shell .content-panel{max-width:1600px;margin:0 auto;background:var(--surface-1);border:1px solid var(--border);border-radius:10px;box-shadow:none}
html .app-shell .content-panel th{background:var(--surface-2);color:var(--text-secondary);font-size:11px;text-transform:none;letter-spacing:0;line-height:1.5}
html .app-shell .content-panel td{font-size:12px;line-height:1.6}
html .app-shell .content-panel :is(th,td){padding:12px 16px;border-color:var(--border)}
html .app-shell .content-panel .cell-number{text-align:right;font-variant-numeric:tabular-nums}
html .app-shell #listSearch{min-height:36px;min-width:0;max-width:360px;width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:var(--surface-1);font:12px var(--font-body);appearance:none}
html .app-shell #listSearch:focus{outline:2px solid var(--accent);outline-offset:1px}
html .app-shell #tablePagination button{min-width:68px;white-space:nowrap;flex:none;padding:0 10px}
html .app-shell #tablePagination select{width:130px;min-width:0;max-width:100%;flex:none}
html .app-shell .toolbar button{flex:none;white-space:nowrap}
html .app-shell #moduleTabs{display:none!important}
#agencyNavigation,.agency-page,.agency-dashboard{width:100%;max-width:1600px;margin:0 auto 20px}
.agency-dashboard{display:block}
.agency-page[hidden],#agencyView[hidden],#agencyNavigation[hidden]{display:none!important}
.agency-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.agency-tabs button,.agency-tabs>span{font-size:12px;line-height:1.5;min-height:36px;padding:8px 12px;color:var(--text-secondary);border:1px solid transparent;background:transparent;border-radius:7px;white-space:nowrap}
.agency-tabs [aria-current=page]{color:var(--accent);background:var(--accent-soft);border-color:var(--border)}
.agency-vendors{border-bottom:1px solid var(--border);padding-bottom:10px}
.agency-dashboard button,.agency-page button,.agency-guide button{font:inherit}
.agency-dashboard button[data-agency-module],.agency-page button[data-agency-module],.agency-link{border:0;background:transparent;box-shadow:none;color:var(--accent);font-size:12px;cursor:pointer;padding:5px 0}
.agency-dashboard button:hover,.agency-page button:hover{text-decoration:underline}
.agency-dashboard :is(button,select):focus-visible,.agency-tabs button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.agency-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px;color:var(--text-secondary);font-size:12px}
.agency-filters label{display:flex;align-items:center;gap:9px}.agency-filters>span{margin-left:auto;font-size:11px}
.agency-filters select{min-height:36px;border:1px solid var(--border);border-radius:7px;background:var(--surface-1);color:var(--text);padding:7px 12px;max-width:100%}
.agency-section-title{font-size:14px;font-weight:600;margin:0 0 16px}
.agency-consumption{display:grid;grid-template-columns:1.65fr 1fr;border:1px solid var(--border);border-radius:10px;overflow:hidden;margin-bottom:14px;background:var(--surface-1)}
.agency-consumption>section{padding:26px 24px}.agency-consumption>section:first-child{background:linear-gradient(110deg,var(--accent-soft),transparent)}
.agency-consumption>section+section{border-left:1px solid var(--border)}
.agency-consumption section>div{font-size:13px;font-weight:600}.agency-consumption small{font-size:10px;color:var(--text-secondary);font-weight:400;margin-left:9px}
.agency-consumption strong{display:block;margin:18px 0 12px;font-size:40px;line-height:1.2;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:-.8px}
.agency-consumption section+section strong{font-size:30px}.agency-consumption p{font-size:11px;color:var(--text-secondary);margin:8px 0}
.agency-cloud-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}
.agency-cloud-card{min-width:0;border:1px solid var(--border);border-radius:10px;padding:17px 18px;background:var(--surface-1);display:flex;flex-direction:column}
.agency-cloud-card header{display:flex;align-items:center;justify-content:space-between;height:42px;margin-bottom:15px;gap:12px}
.agency-cloud-card header img{display:block;width:auto;max-width:142px;height:auto;max-height:27px;object-fit:contain;background:transparent}
.agency-status{font-size:10px;color:var(--text-secondary);background:var(--surface-2);border-radius:5px;padding:4px 7px;white-space:normal}
.agency-currencies{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.agency-currency{min-width:0}.agency-currencies .agency-currency+.agency-currency{border-left:1px solid var(--border);padding-left:22px}
.agency-currency-label{font-size:11px;line-height:17px;color:var(--text-secondary)}.agency-currency-label span{font-size:10px;margin-left:6px}
.agency-value{display:block;font-size:24px;line-height:30px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap;margin:8px 0 4px;letter-spacing:-.5px}
.agency-cost-line,.agency-day-line{font-size:10px;color:var(--text-secondary);line-height:20px;min-height:20px;white-space:nowrap}
.agency-cost-line .agency-link{font-size:10px;padding:0;margin-left:3px}
.agency-cloud-card footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--border);padding-top:12px;margin-top:13px}
.agency-cloud-card footer>div{display:flex;gap:18px}.agency-cloud-card footer button{font-size:11px}
.agency-card-strip{display:flex;align-items:center;gap:16px;padding:18px;border:1px solid var(--border);background:var(--surface-1);border-radius:10px;margin-bottom:24px}
.agency-card-strip>div{flex:1}.agency-card-strip strong{font-size:13px}.agency-card-strip p{color:var(--text-secondary);font-size:11px;margin:6px 0 0}
.agency-card-strip>.agency-icon,.agency-card-strip>span{color:var(--accent)}
.agency-panel{border:1px solid var(--border);background:var(--surface-1);border-radius:10px;padding:18px;margin-bottom:18px;min-width:0}
.agency-panel header,.agency-panel footer{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.agency-panel h3,.agency-intro h3,.agency-source h3{font-size:15px;font-weight:600;margin:0}
.agency-panel p,.agency-intro p{font-size:12px;line-height:1.7;color:var(--text-secondary)}
.agency-panel header>span{font-size:11px;color:var(--text-secondary)}.agency-panel footer{border-top:1px solid var(--border);padding-top:12px}
.agency-chart{width:100%;height:245px;margin-top:14px}.agency-chart line{stroke:var(--border);stroke-dasharray:3 5}.agency-chart path{fill:none;stroke:var(--accent);stroke-width:2.3}.agency-chart text{fill:var(--text-secondary);font:10px var(--font-body)}
.agency-intro{margin:0 0 22px}.agency-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.agency-source{padding:20px;border:1px solid var(--border);background:var(--surface-1);border-radius:10px;display:flex;flex-direction:column;min-width:0}
.agency-source header{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:12px}.agency-source p{font-size:12px;line-height:1.7;color:var(--text-secondary);min-height:42px}
.agency-source dl,.agency-guide dl{margin:14px 0 20px;font-size:12px;line-height:1.7}.agency-source dl>div,.agency-guide dl>div{margin-bottom:13px}
.agency-source dt,.agency-guide dt{font-weight:600}.agency-source dd,.agency-guide dd{margin:4px 0 0;color:var(--text-secondary);overflow-wrap:anywhere}
.agency-source footer{margin-top:auto;padding-top:12px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:10px}.agency-source footer span{font-size:10px;color:var(--text-secondary)}
.agency-empty{padding:44px 24px;text-align:center}.agency-empty p{max-width:620px;margin:14px auto;line-height:1.8}
.agency-guide{width:min(800px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border);border-radius:12px;background:var(--surface-1);color:var(--text)}
.agency-guide::backdrop{background:#06101aaa;backdrop-filter:blur(4px)}
.agency-guide>header,.agency-guide>footer{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 24px;border-bottom:1px solid var(--border)}
.agency-guide h3{font-size:20px;margin:5px 0 0}.agency-guide small,.agency-guide footer span{color:var(--text-secondary);font-size:11px;line-height:1.7}
.agency-guide>footer{border:0;border-top:1px solid var(--border)}.agency-guide-body{padding:8px 24px 20px;font-size:13px;line-height:1.8}.agency-guide-body h4{font-size:14px;margin:20px 0 9px}.agency-guide-body li{margin-bottom:7px}.agency-guide-body a{color:var(--accent)}
.agency-guide button{border:1px solid var(--border);border-radius:7px;padding:7px 12px;background:var(--surface-2);color:var(--text);cursor:pointer}
@media(max-width:1180px){.agency-sources{grid-template-columns:1fr}.agency-source p{min-height:0}.agency-currencies{gap:14px}.agency-currencies .agency-currency+.agency-currency{padding-left:14px}.agency-value{font-size:20px}.agency-cost-line{white-space:normal}.agency-cost-line .agency-link{display:block;margin:0}}
@media(max-width:760px){.agency-cloud-grid{grid-template-columns:1fr}.agency-consumption{grid-template-columns:1fr}.agency-consumption>section+section{border:0;border-top:1px solid var(--border)}.agency-consumption>section{padding:22px}.agency-consumption strong{font-size:34px}.agency-filters{gap:10px}.agency-filters>span{width:100%;margin:0}.agency-tabs{flex-wrap:nowrap;overflow:auto;padding-bottom:5px}.agency-tabs>*{flex:none}.agency-card-strip{flex-wrap:wrap;gap:12px}.agency-card-strip>div{min-width:180px}.agency-card-strip>button{margin-left:32px}.agency-guide>header,.agency-guide>footer{padding:16px}.agency-guide-body{padding:0 16px 16px}.agency-guide>footer{flex-wrap:wrap}.agency-chart{height:210px}.agency-cost-line .agency-link{display:inline;margin-left:3px}.agency-cost-line{white-space:nowrap}}
@media(max-width:380px){.agency-value{font-size:18px}.agency-currencies{gap:10px}.agency-currencies .agency-currency+.agency-currency{padding-left:10px}.agency-cost-line .agency-link{display:block;margin:0}.agency-cloud-card footer>div{gap:10px}}

@media(min-width:761px) and (max-width:1180px){.agency-cost-line{min-height:40px}}
@media(max-width:380px){.agency-cost-line{min-height:40px}}

.agency-chart circle{fill:var(--accent);stroke:var(--accent)}.agency-chart circle.agency-estimate{fill:var(--surface-1)}
@media(max-width:760px){html .app-shell .topbar{flex-direction:row;align-items:flex-start;gap:12px}html .app-shell .topbar .toolbar{width:auto;max-width:55%;justify-content:flex-end;flex-wrap:wrap}}
@media(max-width:620px){html .app-shell .topbar{flex-wrap:wrap}html .app-shell .topbar .toolbar{max-width:100%;gap:8px}html .app-shell .topbar .toolbar .user-pill{max-width:105px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}html .app-shell #tablePagination{gap:8px}html .app-shell #tablePagination>span:first-child{flex-basis:100%}}

/* Settings use the available workspace width, including tablet/sidebar layouts. */
.admin-panel,.admin-dashboard-grid,.email-test-panel,.email-test-grid,.email-field-block{min-width:0}
.admin-console-tabs{flex-wrap:wrap;overflow:visible;gap:6px;padding-bottom:6px}
.admin-console-tabs button{border-bottom:1px solid var(--border);border-radius:7px}
.option-config-row{grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto}
.option-config-row input{min-width:0}
.option-config-row>small{grid-column:2 / -1;color:var(--text-secondary);line-height:1.6}
.email-field-block :is(input,select),.email-test-grid :is(input,select){min-width:0;max-width:100%}
.email-center-panel{grid-template-columns:minmax(0,1fr)}
.email-center-panel>*,.email-config-fields,.email-field-block>*,.alert-settings-grid>label{min-width:0}
.email-history-section{grid-template-columns:minmax(0,1fr)}
.email-history-head,.email-history-head>div,.email-history-tools{min-width:0}
.alert-recipient-add input{min-width:0}
@media(max-width:960px){.option-config-row{grid-template-columns:1fr}.option-config-row>small{grid-column:auto}.admin-panel-head{flex-wrap:wrap}.admin-panel-head>div{min-width:0}.email-history-head{flex-direction:column;align-items:stretch}.email-history-tools{width:100%}.email-history-tools select{flex:1;min-width:0}}
@media(max-width:620px){.email-page-status{white-space:normal}.admin-console-tabs button{font-size:12px;padding:0 10px}}

/* Approved classic-blue analysis layout. Titles and panel edges share grid rows. */
html:root,html:root[data-theme="night"]{--surface-0:#192738;--surface-1:#192738;--surface-2:#203145;--border:#34465c;--text:#e8eff8;--text-secondary:#a9bbd1;--text-tertiary:#a9bbd1;--accent:#a1c3ff;--accent-soft:#293f61;--control-border:#748ca7}
html:root[data-theme="day"]{--bg:#f4f6f9;--surface-0:#fff;--surface-1:#fff;--surface-2:#f3f6fa;--border:#dde4ec;--text:#192b43;--text-secondary:#52657c;--text-tertiary:#52657c;--accent:#285fc4;--accent-soft:#eaf1ff;--control-border:#8492a5}

/* MarsWallex preparation extends the existing source-settings dialog. */
.mw-setup[open]{display:flex;flex-direction:column;width:min(720px,calc(100vw - 32px));overflow:hidden}
.mw-setup>header,.mw-setup>footer{flex:none}
.mw-setup>header{align-items:flex-start}
.mw-setup>header p{margin:8px 0 0;font-size:14px;color:var(--text-secondary);line-height:1.6}
.mw-setup>header>button{flex:none;min-width:44px}
.mw-setup>.agency-guide-body{overflow:auto;min-height:0;font-size:14px;scrollbar-color:var(--control-border) var(--surface-1)}
.mw-form section+section,.mw-credentials{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.mw-form label{display:block;margin:18px 0 7px;font-size:14px;font-weight:600}
.mw-form :is(input,textarea,select){display:block;width:100%;min-width:0;padding:10px 12px;border:1px solid var(--control-border);border-radius:7px;background:var(--surface-2);color:var(--text);font:14px/1.6 var(--font-body);caret-color:var(--accent)}
.mw-form input{min-height:44px}
.mw-form textarea{resize:vertical}
.mw-form .mw-key{font-family:var(--font-mono);font-size:12px;overflow-wrap:anywhere;word-break:break-all}
.mw-form :is(input,textarea)::placeholder{color:var(--text-secondary);opacity:1}
.mw-form :is(input,textarea):read-only{background:var(--surface-1)}
.mw-form :is(input,textarea)::selection{background:var(--accent-soft);color:var(--text)}
.mw-form .mw-help{margin:8px 0 0;color:var(--text-secondary);font-size:14px;line-height:1.65}
.mw-copy{display:flex;gap:8px;align-items:stretch}
.mw-copy input{flex:1}
.mw-copy button{flex:none}
.mw-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.mw-setup button{min-height:44px;font-size:14px;transition:background-color .15s ease-out}
.mw-setup button:hover{background:var(--accent-soft)}
.mw-setup :is(button,input,textarea,select,summary,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.mw-setup button:disabled{opacity:.65;cursor:wait}
.mw-setup footer{gap:12px;flex-wrap:wrap;justify-content:flex-end}
.mw-setup .primary-button{background:var(--accent);color:var(--surface-1);border-color:var(--accent);font-weight:600}
.mw-setup footer .primary-button:hover{filter:brightness(.94)}
.mw-credentials summary{min-height:44px;padding:9px 0;cursor:pointer;font-weight:600;color:var(--accent)}
.mw-setup footer .mw-message{flex-basis:100%;min-height:24px;margin:0;color:var(--text-secondary);font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.mw-setup footer .mw-message.mw-error{color:var(--text);font-weight:600}
.mw-receipt p{margin:8px 0 0}
.mw-setup [hidden]{display:none!important}
.mw-panel-nav{display:flex;gap:8px;margin:0 0 24px;border-bottom:1px solid var(--border);padding-bottom:12px}
.mw-panel-nav [aria-pressed="true"]{color:var(--accent);background:var(--accent-soft);border-color:var(--accent);font-weight:600}
.mw-date-range{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.mw-date-range>div{min-width:0}
.mw-history-status,.mw-history-records{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.mw-setup .mw-help{color:var(--text-secondary);font-size:14px;line-height:1.65}
.mw-setup .mw-history-status p{margin:8px 0;line-height:1.6;overflow-wrap:anywhere}
.mw-setup summary{cursor:pointer;min-height:44px;padding:10px 0;color:var(--accent)}
.mw-table-scroll{overflow:auto;max-height:400px;scrollbar-color:var(--control-border) var(--surface-1);margin-top:16px}
.mw-history-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.5;min-width:560px;font-variant-numeric:tabular-nums}
.mw-history-table th{position:sticky;top:0;background:var(--surface-2);text-align:left;z-index:1}
.mw-history-table :is(th,td){padding:12px 10px;border-bottom:1px solid var(--border);vertical-align:top}
.mw-history-table small{display:block;color:var(--text-secondary);font-size:12px;overflow-wrap:anywhere;max-width:180px}
.mw-history-table .mw-number{text-align:right;white-space:nowrap}
.mw-history-table pre{white-space:pre-wrap;overflow-wrap:anywhere;max-width:240px;font:12px/1.6 var(--font-mono);margin:8px 0;color:var(--text)}
.mw-page-label{align-self:center;color:var(--text-secondary)}
.mw-run-list{padding-left:20px;margin:0;color:var(--text-secondary);line-height:1.7}
.mw-run-list li{margin-bottom:12px}
.mw-empty{padding:16px 0;line-height:1.65;color:var(--text-secondary)}
.mw-scroll-help{display:none}
@media(max-width:620px){.mw-date-range{grid-template-columns:1fr;gap:0}.mw-history-table{min-width:520px}.mw-panel-nav{margin-bottom:20px}.mw-scroll-help{display:block}}
@media(max-width:620px){.mw-setup[open]{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.mw-setup footer span{flex-basis:100%}.mw-setup footer{justify-content:flex-end}.mw-setup>header h3{font-size:18px}.mw-copy{flex-wrap:wrap}.mw-copy input{flex-basis:100%}.mw-setup .agency-guide-body h4{font-size:15px}}
html .app-shell .sidebar{background:#142238}
html .app-shell .nav button.active{background:#263f62;border-color:transparent}
html .app-shell .nav button{font-size:14px;min-height:44px}
html .app-shell .content-panel th{font-size:12px}
html .app-shell .content-panel td{font-size:14px}
html .app-shell .topbar h2{letter-spacing:-.025em}
html .app-shell[data-active-module="home"] .workspace{padding:24px}
html .app-shell[data-active-module="home"] .topbar{margin-bottom:24px}
html .app-shell[data-active-module="home"] #todayText{display:none}
html .app-shell .content-panel{border-radius:12px}
html :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--accent);outline-offset:3px}
html ::selection{background:var(--accent-soft);color:var(--text)}
html input,html textarea{caret-color:var(--accent)}
html .agency-dashboard{font-size:14px;line-height:1.6}
.agency-analysis{display:grid;gap:24px}
.agency-analysis>*,.agency-pair>*,.agency-section-head>*{min-width:0}
.agency-analysis>*,.agency-analysis .agency-cloud-grid{margin:0}
.agency-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;min-height:36px}
.agency-section-head h3{margin:0;font-size:16px;font-weight:650}
.agency-section-head>span{color:var(--text-secondary);font-size:12px}
.agency-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto minmax(0,1fr);gap:0 24px}
.agency-pair>section{display:grid;grid-template-rows:subgrid;grid-row:1/span 2}
.agency-pair>section:first-child{grid-column:1}
.agency-pair>section:last-child{grid-column:2}
.agency-pair-single>section:last-child{grid-column:1/-1}
.agency-filters{align-items:flex-end;margin-bottom:24px;font-size:12px}
.agency-filters label{flex-direction:column;align-items:flex-start;gap:6px}
.agency-filters select{min-height:40px;min-width:128px;border-color:var(--control-border);font:14px var(--font-body)}
.agency-filters>span{font-size:12px;padding-bottom:8px}
.agency-pair .agency-consumption{grid-template-columns:minmax(0,1fr);grid-template-rows:1fr auto;border-radius:12px;margin:0}
.agency-pair .agency-consumption>section{padding:20px 24px;background:none}
.agency-pair .agency-consumption>section+section{border-left:0;border-top:1px solid var(--border)}
.agency-consumption strong{margin:12px 0 8px}
.agency-consumption p,.agency-consumption small{font-size:12px}
.agency-breakdown{margin-top:20px;color:var(--text-secondary);font-size:12px!important;font-weight:400!important}
.agency-breakdown b{margin-left:10px;color:var(--text);font-weight:500}
.agency-day{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:center;gap:4px 16px}
.agency-day>div,.agency-day>p,.agency-day>button{grid-column:1;margin:0;justify-self:start}
.agency-day>strong{grid-column:2;grid-row:1/span 3;align-self:center;margin:0;font-size:28px!important}
.agency-benefits,.agency-trend,.agency-funds,.agency-customer-panel{border:1px solid var(--border);border-radius:12px;background:var(--surface-1);overflow:hidden;min-width:0}
.agency-benefits{display:grid;grid-template-rows:1fr 1fr auto}
.agency-benefits:has(>article:only-of-type){grid-template-rows:1fr auto}
.agency-benefit{display:flex;flex-direction:column;padding:16px 20px;min-width:0}
.agency-benefit+.agency-benefit{border-top:1px solid var(--border)}
.agency-benefit header,.agency-benefit footer{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.agency-benefit header h4{margin:0;font-size:14px;font-weight:600}
.agency-benefit header>span,.agency-benefit footer>span{font-size:12px;color:var(--text-secondary)}
.agency-benefit strong{display:block;font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;margin:8px 0}
.agency-benefit footer{margin-top:auto}
.agency-panel-scope{padding:12px 20px;border-top:1px solid var(--border);margin:0;color:var(--text-secondary);font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.agency-cloud-grid{gap:24px}
.agency-cloud-card{display:grid;grid-template-rows:auto minmax(0,1fr) auto;border-radius:12px;padding:20px 24px}
.agency-cloud-card footer{min-height:48px;margin-top:16px}
.agency-currency-label,.agency-currency-label span,.agency-cost-line,.agency-day-line,.agency-status{font-size:12px}
.agency-cost-line{white-space:normal;min-height:28px}
.agency-cost-line .agency-link{font-size:12px}
.agency-card-strip{border-radius:12px;padding:16px 20px}
.agency-card-strip p{font-size:12px;line-height:1.7}
.agency-trend{display:flex;flex-direction:column}
.agency-trend>div{padding:16px;flex:1;display:flex;align-items:center;min-width:0}
.agency-trend .agency-chart{display:block;margin:0;height:auto;min-height:232px}
.agency-trend footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 20px;min-height:64px;border-top:1px solid var(--border);font-size:12px;color:var(--text-secondary)}
.agency-funds{display:grid;grid-template-rows:repeat(3,minmax(0,1fr)) auto}
.agency-funds article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding:16px 20px;align-items:center}
.agency-funds article+article{border-top:1px solid var(--border)}
.agency-funds article>span,.agency-funds small{font-size:12px;color:var(--text-secondary)}
.agency-funds strong{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.agency-funds [data-agency-funds=overdue]{color:var(--warning)}
.agency-funds small{grid-column:1/-1}
.agency-funds footer{min-height:64px}
.agency-table-wrap{max-width:100%;overflow:auto;scrollbar-color:var(--control-border) transparent}
.agency-table-wrap table{border-collapse:collapse;width:100%;font-size:14px;white-space:normal}
.agency-table-wrap :is(th,td){padding:16px 20px;text-align:left;border-bottom:1px solid var(--border)}
.agency-table-wrap th{background:var(--surface-2);color:var(--text-secondary);font-size:12px;font-weight:500}
.agency-table-wrap tbody tr:last-child td{border-bottom:0}
.agency-table-wrap .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.agency-table-wrap small{display:block;font-size:12px;color:var(--text-secondary)}
.agency-table-wrap strong{font-weight:600}
.agency-customers table{min-width:780px}
.agency-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.agency-dashboard button[data-agency-module],.agency-dashboard .agency-link{font-size:12px;min-height:36px}
@media(max-width:1199px){
  .agency-pair{grid-template-columns:minmax(0,1fr);grid-template-rows:auto;row-gap:24px}
  .agency-pair>section:first-child,.agency-pair>section:last-child{grid-column:1;grid-row:auto;grid-template-rows:auto minmax(0,1fr)}
  .agency-analysis .agency-cloud-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:760px){
  html .app-shell[data-active-module="home"] .workspace{padding:20px 16px}
  .agency-filters label{flex:1;min-width:0}.agency-filters select{min-width:0;width:100%;min-height:44px}
  .agency-pair .agency-consumption>section,.agency-cloud-card{padding:20px 16px}
  .agency-day{grid-template-columns:minmax(0,1fr)}.agency-day>strong{grid-column:1;grid-row:auto}
  .agency-day>div{order:-1}.agency-day>strong{order:0}.agency-day>p,.agency-day>button{order:1}
  .agency-dashboard button[data-agency-module],.agency-dashboard .agency-link,.agency-tabs button{min-height:44px}
  .agency-trend .agency-chart{min-height:180px}
  .agency-funds strong{font-size:22px}
}
