/* v6.3 — layout único e adaptável. As regras de cor continuam nos temas. */
html{scroll-padding-top:110px}
html body.authenticated-view #app{--layout-gutter:clamp(22px,2.4vw,42px);--layout-sidebar:230px;min-width:0}
#app .navigation-toggle,#app .navigation-close,#app .mobile-navigation,#app .sidebar-logout{display:none}
#app .navigation-toggle svg,#app .navigation-close svg,#app .mobile-navigation svg,#refresh-button svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
#refresh-button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
#refresh-button svg{width:18px;height:18px}
html body.authenticated-view #app .sidebar{position:fixed;inset:0 auto 0 0;width:var(--layout-sidebar);height:100vh;height:100dvh;display:flex;flex-direction:column;padding:28px 16px 20px;overflow:auto;overscroll-behavior:contain;z-index:40}
html body.authenticated-view #app .sidebar nav{display:flex;flex-direction:column;flex-wrap:nowrap;gap:2px}
html body.authenticated-view #app .sidebar .brand{font-size:22px;gap:10px;padding:0 4px 28px;flex-shrink:0}
html body.authenticated-view #app .brand>div{display:block;min-width:0}
html body.authenticated-view #app .sidebar .brand>div>span{font-size:8px;line-height:1.6;letter-spacing:.1px}
html body.authenticated-view #app .sidebar .nav{width:100%;flex:0 0 auto;min-width:0;min-height:46px;display:flex;flex-direction:row;justify-content:flex-start;gap:12px;margin:2px 0;padding:12px;font-size:12px;text-align:left;white-space:normal}
html body.authenticated-view #app .sidebar .nav>span:last-child{display:block}
html body.authenticated-view #app .nav-label{display:block;margin:20px 12px 9px;font-size:9px}
html body.authenticated-view #app #admin-nav-section:not(.hidden){display:block;flex:none}
html body.authenticated-view #app .sidebar-bottom{display:block;margin-top:auto;padding:18px 0 0;flex-shrink:0}
html body.authenticated-view #app .workspace{min-width:0;width:calc(100% - var(--layout-sidebar));margin-left:var(--layout-sidebar)}
html body.authenticated-view #app main{width:100%;max-width:1920px;margin:0 auto;padding:32px var(--layout-gutter) 24px;min-width:0}
html body.authenticated-view #app #view{min-width:0}
html body.authenticated-view #app .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;position:sticky;top:0;min-height:78px;padding:13px var(--layout-gutter);z-index:30}
html body.authenticated-view #app .topbar-left{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
html body.authenticated-view #app .breadcrumb{display:block;max-width:100%;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.authenticated-view #app .breadcrumb-separator{padding:0 7px}
html body.authenticated-view #app .topbar-status{display:block;max-width:100%;min-width:0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0;padding:0;border:0;font-size:10px;line-height:1.7}
html body.authenticated-view #app .top-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:8px;min-width:0;flex:none}
html body.authenticated-view #app .top-user-copy{min-width:0;max-width:140px}
html body.authenticated-view #app .top-user-copy b,html body.authenticated-view #app .top-user-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.authenticated-view #app .user-pill{margin:0;padding-left:12px;flex-shrink:0}
html body.authenticated-view #app .display-controls{margin:0;gap:2px}
html body.authenticated-view #app .logout-button{min-height:38px}
html body.authenticated-view #app :is(.cb-heading,.page-heading){gap:20px;align-items:center}
html body.authenticated-view #app :is(.cb-heading,.page-heading)>div{min-width:0}
html body.authenticated-view #app :is(.page-actions,.button-row,.toolbar){flex-wrap:wrap;max-width:100%}
html body.authenticated-view #app :is(.cb-kpis,.income-metrics){grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html body.authenticated-view #app :is(.cb-kpi,.income-metric){min-width:0;container-type:inline-size}
html body.authenticated-view #app .cb-kpi>strong{font-size:clamp(23px,1.85vw,32px);font-weight:550;line-height:1.25;overflow-wrap:normal;white-space:nowrap;letter-spacing:-.8px}
html body.authenticated-view #app .income-metric>strong{overflow-wrap:normal;white-space:nowrap}
html body.authenticated-view #app .premium-summary-grid strong{display:block;max-width:100%;white-space:nowrap;overflow-wrap:normal}
html body.authenticated-view #app .income-dashboard-strip strong{display:block;max-width:100%;white-space:nowrap}
html body.authenticated-view #app :is(.cb-chart-grid,.cb-secondary-grid,.income-workspace,.premium-sale-grid,.premium-settings-grid,.premium-help-grid){min-width:0}
html body.authenticated-view #app :is(.cb-panel,.card,.premium-section,.premium-sale-lot,.income-panel,.multi-group){min-width:0}
html body.authenticated-view #app :is(.cb-table-scroll,.table-wrap,.asset-details-scroll){max-width:100%;min-width:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
html body.authenticated-view #app .multi-group summary{grid-template-columns:36px minmax(110px,1.25fr) repeat(3,minmax(100px,1fr)) 16px;gap:12px}
html body.authenticated-view #app .multi-group summary>span{min-width:0}
html body.authenticated-view #app .multi-group summary b{overflow-wrap:normal;white-space:nowrap}
html body.authenticated-view #app .multi-group .multi-class-name b{white-space:normal}
html body.authenticated-view #app .disclaimer{flex-wrap:wrap;gap:8px 20px}
html body.authenticated-view #modal{max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px)}
html body.authenticated-view #modal :is(.field,.form-grid,.asset-details-stats>div,.income-asset-metrics>div){min-width:0}
html body.authenticated-view #modal :is(input,select,textarea){max-width:100%;box-sizing:border-box}
html body.authenticated-view #modal .modal-heading .icon-button{width:44px;height:44px;flex:0 0 44px}
html body.authenticated-view #modal :is(.asset-details-stats strong,.income-asset-metrics strong,.sale-live-summary strong){display:block;max-width:100%;white-space:nowrap}
@media(min-width:1800px){
  html body.authenticated-view #app{--layout-sidebar:250px}
  html body.authenticated-view #app main{padding-top:42px}
  html body.authenticated-view #app .cb-chart-grid{grid-template-columns:minmax(0,1.9fr) minmax(340px,1fr)}
  html body.authenticated-view #app .cb-line-chart{height:290px}
}
@media(max-width:1399px){
  html body.authenticated-view #app .top-user-copy{display:none}
  html body.authenticated-view #app .topbar .btn{font-size:11px}
  html body.authenticated-view #app .topbar #refresh-button .refresh-copy{display:none}
  html body.authenticated-view #app .topbar #refresh-button{width:42px;height:42px;padding:10px}
}
@media(min-width:1100px) and (max-width:1299px){
  html body.authenticated-view #app{--layout-sidebar:210px;--layout-gutter:24px}
  html body.authenticated-view #app .sidebar{padding-left:12px;padding-right:12px}
  html body.authenticated-view #app :is(.cb-kpis,.income-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.authenticated-view #app .income-workspace{grid-template-columns:1fr}
  html body.authenticated-view #app .income-distribution{display:block}
}
@media(max-width:1099px){
  html body.authenticated-view #app{--layout-sidebar:0px;--layout-gutter:24px;display:block}
  html body.authenticated-view #app .workspace{margin:0;width:100%;min-height:100dvh}
  html body.authenticated-view #app .sidebar{width:min(320px,86vw);height:100dvh;inset:0 auto 0 0;padding:24px 18px calc(22px + env(safe-area-inset-bottom));transform:translateX(-105%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:12px 0 40px #0004!important;z-index:100}
  html body.authenticated-view #app[data-navigation-open="true"] .sidebar{transform:translateX(0);visibility:visible}
  html body.authenticated-view #app .sidebar .brand{padding:7px 40px 25px 0;font-size:22px;align-items:center;gap:9px}
  html body.authenticated-view #app .sidebar .sidebar-logo{display:inline-flex;width:32px;height:32px}
  html body.authenticated-view #app .sidebar .nav{min-height:48px;font-size:13px}
  html body.authenticated-view #app .sidebar .nav-icon{display:grid;width:22px;height:22px;flex-basis:22px}
  html body.authenticated-view #app .sidebar-bottom .profile{display:flex;padding:16px 0;margin-top:0}
  html body.authenticated-view #app .sidebar-logout{display:flex;width:100%;min-height:44px;justify-content:center;order:2}
  html body.authenticated-view #app .sidebar-bottom{display:flex;flex-direction:column;margin-top:auto}
  html body.authenticated-view #app .navigation-close{display:grid;place-items:center;width:40px;height:40px;padding:9px;position:absolute;right:12px;top:22px;border:1px solid var(--cb-border);border-radius:9px;background:var(--cb-soft);color:var(--cb-text);cursor:pointer}
  html body.authenticated-view #app .nav-scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:90;background:#0009;backdrop-filter:blur(3px)}
  body.authenticated-view.navigation-is-open{overflow:hidden}
  html body.authenticated-view #app .navigation-toggle{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;padding:10px;border:1px solid var(--cb-border);border-radius:10px;background:var(--cb-soft);color:var(--cb-text);cursor:pointer;grid-column:1;grid-row:1}
  html body.authenticated-view #app .topbar{grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:44px auto;gap:3px 10px;min-height:0;padding:10px var(--layout-gutter) 9px}
  html body.authenticated-view #app .topbar-left{display:contents}
  html body.authenticated-view #app .breadcrumb{grid-column:2;grid-row:1;font-size:13px;line-height:1.4}
  html body.authenticated-view #app .breadcrumb-root{display:block;font-size:9px;margin-bottom:2px;color:var(--cb-muted)}
  html body.authenticated-view #app .breadcrumb-separator{display:none}
  html body.authenticated-view #app .topbar-status{grid-column:1/-1;grid-row:2;padding-left:3px;line-height:1.7;font-size:10px}
  html body.authenticated-view #app .top-actions{grid-column:3;grid-row:1;gap:6px}
  html body.authenticated-view #app .topbar .user-pill,html body.authenticated-view #app .topbar [data-do="buy"]{display:none}
  html body.authenticated-view #app .topbar #refresh-button{display:inline-flex;width:40px;min-height:40px;height:40px;padding:9px;border-radius:10px}
  html body.authenticated-view #app .display-controls{gap:0}
  html body.authenticated-view #app :is(.cb-kpis,.income-metrics){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.authenticated-view #app .cb-chart-grid{grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr)}
  html body.authenticated-view #app .income-workspace{grid-template-columns:1fr}
  html body.authenticated-view #app .income-distribution{display:grid}
  html body.authenticated-view #app .multi-group summary{grid-template-columns:34px minmax(110px,1fr) minmax(125px,1fr) minmax(110px,1fr) 16px}
  html body.authenticated-view #app .multi-group summary>span:nth-last-child(2){display:none}
  html body.authenticated-view #app .multi-group-result{display:block}
}
@media(max-width:767px){
  html body.authenticated-view #app{--layout-gutter:18px}
  html body.authenticated-view #app main{padding-top:24px}
  html body.authenticated-view #app :is(.cb-chart-grid,.cb-secondary-grid,.premium-settings-grid,.premium-help-grid){grid-template-columns:1fr}
  html body.authenticated-view #app .premium-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.authenticated-view #app .premium-summary-grid.three{grid-template-columns:1fr}
  html body.authenticated-view #app .multi-group summary{grid-template-columns:32px minmax(70px,1fr) minmax(120px,1fr) 14px;gap:10px}
  html body.authenticated-view #app .multi-group-result{display:none}
  html body.authenticated-view #app .multi-group summary .multi-class-name b{font-size:14px}
  html body.authenticated-view #app .multi-group-toolbar{flex-direction:column;align-items:flex-start}
  html body.authenticated-view #app .multi-group summary>span:nth-child(3){text-align:right}
  html body.authenticated-view #app .multi-group summary>span:nth-child(3) b{font-size:13px}
  html body.authenticated-view #app .cb-panel-head{flex-wrap:wrap}
  html body.authenticated-view #app .income-dashboard-strip{grid-template-columns:1fr 1fr}
  html body.authenticated-view #app .income-dashboard-strip>div:nth-child(3),html body.authenticated-view #app .income-dashboard-strip>.btn{grid-column:1/-1}
}
@media(max-width:699px){
  html{scroll-padding-top:100px}
  html body.authenticated-view #app main{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  html body.authenticated-view #app .mobile-navigation{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:50;padding:5px max(10px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));background:var(--cb-paper);border-top:1px solid var(--cb-border);box-shadow:0 -8px 25px #0001}
  html body.authenticated-view #app .mobile-navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:50px;max-width:100%;padding:6px 4px;border:0;border-radius:9px;background:none;color:var(--cb-muted);font:inherit;font-size:10px;cursor:pointer}
  html body.authenticated-view #app .mobile-navigation button.active,html body.authenticated-view #app .mobile-navigation button[aria-expanded="true"]{background:color-mix(in srgb,var(--amber) 10%,var(--cb-paper));color:var(--income-accent-text,var(--amber))}
  html[data-color-mode="soft"] body.authenticated-view #app .mobile-navigation button.active{color:#785719}
  html body.authenticated-view #toast{bottom:calc(80px + env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}
}
@media(max-width:639px){
  html body.authenticated-view #app{--layout-gutter:16px}
  html body.authenticated-view #app .topbar{padding:8px 12px 7px;gap:3px 8px}
  html body.authenticated-view #app .topbar .display-icon-button{width:40px;height:40px;flex-basis:40px;padding:9px}
  html body.authenticated-view #app .topbar .display-icon-button svg{width:22px;height:22px}
  html body.authenticated-view #app .top-actions{gap:4px}
  html body.authenticated-view #app :is(.cb-heading,.page-heading){align-items:flex-start;gap:16px;margin:0 0 22px;flex-direction:column}
  html body.authenticated-view #app :is(.cb-heading h1,.premium-page-heading h1){font-size:clamp(25px,6.1vw,30px);line-height:1.18;letter-spacing:-.7px;margin-top:7px}
  html body.authenticated-view #app :is(.cb-heading p,.subtitle){font-size:12px;line-height:1.65;margin-top:9px}
  html body.authenticated-view #app :is(.cb-heading-actions,.page-actions){width:100%;display:flex;gap:8px;flex-wrap:wrap}
  html body.authenticated-view #app :is(.cb-heading-actions .cb-button,.page-actions>.btn){flex:1;min-height:44px;font-size:11px!important;padding:10px 8px}
  html body.authenticated-view #app :is(.cb-kpis,.income-metrics){gap:12px;margin-bottom:18px}
  html body.authenticated-view #app .cb-kpi{padding:17px 15px;min-height:0}
  html body.authenticated-view #app .cb-kpi:first-child,html body.authenticated-view #app .cb-kpi:last-child{grid-column:1/-1}
  html body.authenticated-view #app .cb-kpi-label{font-size:11px;line-height:1.5;align-items:flex-start}
  html body.authenticated-view #app .cb-kpi>strong{font-size:23px;margin:12px 0 8px;letter-spacing:-.65px}
  html body.authenticated-view #app .cb-kpi-feature{padding:22px}
  html body.authenticated-view #app .cb-kpi-feature>strong{font-size:32px;line-height:1.2;margin:16px 0 12px}
  html body.authenticated-view #app .cb-kpi small{font-size:10px;line-height:1.6}
  html body.authenticated-view #app .cb-kpi:not(:first-child):not(:last-child) .cb-kpi-label .cb-icon{display:none}
  html body.authenticated-view #app .income-metric{padding:17px 14px}
  html body.authenticated-view #app .income-metric-label{font-size:10px;min-height:30px}
  html body.authenticated-view #app .income-metric>strong{font-size:22px}
  html body.authenticated-view #app .income-metric small{font-size:10px}
  html body.authenticated-view #app .premium-summary-grid{gap:10px}
  html body.authenticated-view #app .premium-summary-grid>article{padding:18px 15px}
  html body.authenticated-view #app .premium-summary-grid>article:last-child{grid-column:1/-1}
  html body.authenticated-view #app .premium-summary-grid>article strong{font-size:26px}
  html body.authenticated-view #app .income-dashboard-strip{padding:18px 16px;gap:18px 12px}
  html body.authenticated-view #app .income-dashboard-strip strong{font-size:19px}
  html body.authenticated-view #app .income-dashboard-strip>div:nth-child(3) strong{font-size:16px}
  html body.authenticated-view #app :is(.cb-panel-head,.premium-section-head,.premium-table-title){padding:19px 16px 12px;flex-wrap:wrap;gap:12px}
  html body.authenticated-view #app .cb-chart-summary{padding:10px 16px}
  html body.authenticated-view #app .cb-chart-summary strong{font-size:27px;white-space:nowrap}
  html body.authenticated-view #app .cb-chart-foot{margin:0 16px;font-size:10px}
  html body.authenticated-view #app .cb-segmented button{min-height:36px}
  html body.authenticated-view #app .cb-movers{grid-template-columns:1fr;gap:13px}
  html body.authenticated-view #app .cb-movers>div{display:flex;flex-direction:row;justify-content:space-between}
  html body.authenticated-view #app .cb-total-result{padding:18px 16px;flex-direction:column;align-items:flex-start}
  html body.authenticated-view #app .cb-total-result strong{font-size:26px;white-space:nowrap}
  html body.authenticated-view #app .multi-groups{padding:0 12px 14px}
  html body.authenticated-view #app .multi-group{border-radius:9px;margin:12px 0}
  html body.authenticated-view #app .multi-group summary{padding:16px 12px}
  html body.authenticated-view #app .multi-group summary small{font-size:10px}
  html body.authenticated-view #app .multi-group-toolbar{padding:12px}
  html body.authenticated-view #app .multi-group-toolbar p{font-size:11px;line-height:1.8}
  html body.authenticated-view #app .multi-actions{width:100%;gap:7px}
  html body.authenticated-view #app .multi-actions .btn,html body.authenticated-view #app .multi-actions .cb-row-button{min-height:40px;flex:1;font-size:11px}
  html body.authenticated-view #app .income-distribution{display:block}
  html body.authenticated-view #app .income-filterbar label{font-size:11px}
  html body.authenticated-view #app .income-filterbar select{font-size:14px;min-height:44px}
  html body.authenticated-view #app .income-calendar-scroll{margin:0 16px;box-shadow:inset -9px 0 12px -13px #0008}
  html body.authenticated-view #app .income-chart-note,html body.authenticated-view #app .income-calendar-note{font-size:10px}
  html body.authenticated-view #app .income-agenda-items small{font-size:10px}
  html body.authenticated-view #app .income-table-panel{scroll-margin-top:104px}
  html body.authenticated-view #app .income-table-panel .income-tabs button{min-height:44px}
  html body.authenticated-view #app .premium-sale-grid{padding:0 12px 14px;grid-template-columns:1fr}
  html body.authenticated-view #app .premium-sale-head{padding:16px}
  html body.authenticated-view #app .premium-sale-head .btn{width:100%;min-height:44px}
  html body.authenticated-view #app .premium-sale-metrics{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px;gap:14px 10px}
  html body.authenticated-view #app .premium-sale-metrics b{font-size:12px;overflow-wrap:anywhere}
  html body.authenticated-view #app .premium-month-chart{overflow-x:auto;justify-content:flex-start;padding-left:16px;padding-right:16px;gap:12px}
  html body.authenticated-view #app .premium-month-col{flex:0 0 30px;min-width:30px}
  html body.authenticated-view #app :is(.premium-setting-card,.premium-help-card){padding:22px 18px}
  html body.authenticated-view #app .setting-actions{flex-wrap:wrap}
  html body.authenticated-view #app .setting-actions>*{width:100%;min-height:44px;justify-content:center}
  html body.authenticated-view #app .button-row{display:flex;flex-wrap:wrap;width:100%;gap:8px}
  html body.authenticated-view #app .button-row .btn{flex:1;min-height:44px;font-size:11px}
  html body.authenticated-view #app .button-row .badge{flex-basis:100%;width:max-content}
  html body.authenticated-view #app .admin-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Cada registro mantém todos os campos e ações, em cartões legíveis. */
  html body.authenticated-view :is(#app,#modal) table.responsive-records{display:block;width:100%;min-width:0!important;white-space:normal;border-collapse:separate;font-size:12px}
  html body.authenticated-view :is(#app,#modal) .responsive-records thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html body.authenticated-view :is(#app,#modal) .responsive-records tbody{display:grid;gap:12px;padding:12px}
  html body.authenticated-view :is(#app,#modal) .responsive-records tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;padding:16px;border:1px solid var(--cb-border);border-radius:9px;background:var(--cb-paper)!important}
  html body.authenticated-view :is(#app,#modal) .responsive-records tbody tr>td{display:block;min-width:0;max-width:100%;padding:0!important;text-align:left!important;border:0!important;background:transparent!important;white-space:normal;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
  html body.authenticated-view :is(#app,#modal) .responsive-records tbody td:before{content:attr(data-label);display:block;font-size:10px;font-weight:400;color:var(--cb-muted);line-height:1.5;margin-bottom:5px}
  html body.authenticated-view :is(#app,#modal) .responsive-records tbody td:first-child{grid-column:1/-1;border-bottom:1px solid var(--cb-border)!important;padding-bottom:12px!important}
  html body.authenticated-view :is(#app,#modal) .responsive-records td[data-actions="true"],html body.authenticated-view :is(#app,#modal) .responsive-records td[data-full-row="true"]{grid-column:1/-1}
  html body.authenticated-view :is(#app,#modal) .responsive-records td[data-actions="true"]:before,html body.authenticated-view :is(#app,#modal) .responsive-records td[data-full-row="true"]:before{display:none}
  html body.authenticated-view :is(#app,#modal) .responsive-records .row-actions{justify-content:flex-start;flex-wrap:wrap;gap:7px;margin-top:3px}
  html body.authenticated-view :is(#app,#modal) .responsive-records .btn,html body.authenticated-view :is(#app,#modal) .responsive-records .cb-row-button{min-height:40px;font-size:11px;white-space:normal}
  html body.authenticated-view :is(#app,#modal) .responsive-records .admin-user-cell small{font-size:10px;max-width:100%;overflow-wrap:anywhere;white-space:normal}
  html body.authenticated-view #app .disclaimer{font-size:10px;line-height:1.7;margin-top:22px}
  html body.authenticated-view #modal{width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0;padding:0;overflow:auto;overscroll-behavior:contain}
  html body.authenticated-view #modal form{min-height:100%;display:flex;flex-direction:column}
  html body.authenticated-view #modal .modal-heading{position:sticky;top:0;z-index:5;align-items:center;padding:16px;gap:12px}
  html body.authenticated-view #modal .modal-heading h2{font-size:20px;line-height:1.3}
  html body.authenticated-view #modal #modal-body{padding:20px 16px;flex:1}
  html body.authenticated-view #modal .modal-footer{position:sticky;bottom:0;z-index:5;margin-top:auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom));display:flex;gap:10px}
  html body.authenticated-view #modal .modal-footer .btn{flex:1;min-height:46px}
  html body.authenticated-view #modal .form-grid{grid-template-columns:1fr;gap:16px}
  html body.authenticated-view #modal .field{grid-column:1/-1}
  html body.authenticated-view #modal :is(input,select,textarea){font-size:16px;min-height:46px}
  html body.authenticated-view #modal :is(.income-asset-metrics,.asset-details-stats,.sale-live-summary){grid-template-columns:repeat(2,minmax(0,1fr))}
  html body.authenticated-view #modal .asset-details-head{flex-wrap:wrap}
  html body.authenticated-view #modal .asset-details-quote{flex-basis:100%;text-align:left}
  html body.authenticated-view #modal .asset-details-quote strong{font-size:25px}
  html body.authenticated-view #modal .asset-details-scroll{overflow:auto;max-width:100%}
}
@media(max-width:359px){
  html body.authenticated-view #app{--layout-gutter:12px}
  html body.authenticated-view #app .topbar{padding-left:9px;padding-right:9px;gap:3px 5px}
  html body.authenticated-view #app .topbar #refresh-button{display:none}
  html body.authenticated-view #app .cb-kpi>strong{font-size:20px}
  html body.authenticated-view #app .cb-kpi-feature>strong{font-size:29px}
  html body.authenticated-view #app .income-metrics{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  #app .sidebar{transition:none!important}
  html{scroll-behavior:auto!important}
}
html body.authenticated-view #app :is(.cb-chart-summary strong,.cb-day-value strong,.cb-month-summary strong,.cb-total-result strong){max-width:100%;white-space:nowrap}
html body.authenticated-view #app .premium-sale-metrics b{display:block;white-space:nowrap;overflow-wrap:normal;max-width:100%}
