/* Application chrome polish built on tokens.css. Same components and markup; never applies to authored report or dashboard content. */

/* Catalog tables (Reports and Dashboards share EpCatalogItems.row) */
.file-table{border-collapse:separate;border-spacing:0}
.file-table thead th{font-size:var(--rb-text-xs);font-weight:var(--rb-weight-semibold);color:var(--rb-text-muted);letter-spacing:.01em;text-transform:none}
.file-table .file-row>td{padding-block:var(--rb-space-3);border-bottom:1px solid var(--rb-border);background:var(--rb-surface);transition:background-color .12s ease}
.file-table .file-row:hover>td,.file-table .file-row:focus-within>td{background:color-mix(in srgb,var(--rb-accent) 4%,var(--rb-surface))}
.file-table .file-row .report-title{font-size:var(--rb-text-md);font-weight:var(--rb-weight-semibold);color:var(--rb-text);text-decoration:none}
.file-table .file-row .report-title:hover{color:var(--rb-accent);text-decoration:underline;text-underline-offset:2px}
.file-table .file-row .file-name .meta{font-size:var(--rb-text-xs);color:var(--rb-text-muted);margin-top:2px}
.file-table .file-row>td.meta,.file-table .file-row>td{font-size:var(--rb-text-sm);color:var(--rb-text)}
.file-table .file-row .badge{display:inline-flex;align-items:center;height:22px;padding:0 var(--rb-space-2);border-radius:var(--rb-radius-full);font-size:var(--rb-text-xs);font-weight:var(--rb-weight-medium)}
/* One emphasised action per row: secondary at rest, primary on hover/focus; always visible and reachable. */
.file-table .file-row .file-row-actions{gap:var(--rb-space-1)}
.file-table .file-row .file-row-actions .btn,.file-table .file-row .file-row-actions .report-more>summary{height:var(--rb-control-height-sm);border-radius:var(--rb-radius-md);font-size:var(--rb-text-sm)}
.file-table .file-row .file-row-actions .btn.primary{background:var(--rb-surface)!important;color:var(--rb-accent)!important;border:1px solid color-mix(in srgb,var(--rb-accent) 45%,var(--rb-border))!important}
.file-table .file-row:is(:hover,:focus-within) .file-row-actions .btn.primary{background:var(--rb-accent)!important;color:#fff!important;border-color:var(--rb-accent)!important}
.file-table .report-category-heading>th{font-size:var(--rb-text-xs);font-weight:var(--rb-weight-semibold);color:var(--rb-text-muted);background:var(--rb-canvas)}

/* Small screens: catalog rows become stacked cards instead of squeezed columns. */
@media (max-width:760px){
 .file-table:has(.file-row),.file-table:has(.file-row) tbody{display:block;width:100%}
 .file-table:has(.file-row) thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .file-table .file-row{display:grid;grid-template-columns:1fr auto;gap:var(--rb-space-1) var(--rb-space-3);padding:var(--rb-space-3) var(--rb-space-4);border-bottom:1px solid var(--rb-border);background:var(--rb-surface)}
 .file-table .file-row>td{display:block;padding:0!important;border:0!important;background:transparent!important;min-width:0}
 .file-table .file-row>td:first-child{grid-column:1/-1}
 .file-table .file-row .file-name{min-width:0}
 .file-table .file-row .report-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-break:normal}
 .file-table .file-row>td:nth-child(2),.file-table .file-row>td:nth-child(4){font-size:var(--rb-text-xs);color:var(--rb-text-muted)}
 .file-table .file-row>td:nth-child(3){justify-self:end}
 .file-table .file-row>td:last-child{grid-column:1/-1}
 .file-table .file-row .file-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-start}
 .file-table .report-category-heading{display:block}
 .file-table .report-category-heading>th{display:block;padding:var(--rb-space-2) var(--rb-space-4)}
}

/* Page header: catalog tools wrap under the title instead of running off-screen. */
@media (max-width:1100px){
 :is(.ep-page-header,.files-top):has(#catalog-header-toolbar){flex-wrap:wrap!important;height:auto!important;min-height:0;row-gap:var(--rb-space-3);padding-block:var(--rb-space-3)}
 /* Keep the requested right-first order (row-reverse in report-runner.css); only allow wrapping within the width. */
 #catalog-header-toolbar{display:flex!important;flex-wrap:wrap!important;flex:1 1 100%!important;width:100%!important;min-width:0!important;max-width:100%;margin:0!important}
 #catalog-header-toolbar .files-search{flex:1 1 160px!important;min-width:140px!important;max-width:280px!important;width:auto!important}
 #catalog-header-toolbar .files-search input{width:100%!important;min-width:0}
}

/* Dashboard workspace chrome (panels, canvas toolbar, header, tabs). The canvas, visuals and saved view appearance are untouched. */
.db-workspace>.db-panel{align-self:stretch!important;height:auto!important;background:var(--rb-surface);border-color:var(--rb-border)}
.db-panel .panel-title,.db-panel>h2,.db-panel>header{font-size:var(--rb-text-sm);font-weight:var(--rb-weight-semibold);color:var(--rb-text)}
/* Canvas toolbar: uniform 30px icon buttons, groups separated by a hairline. */
.db-stage>.stage-tools{gap:var(--rb-space-1);min-height:44px;align-items:center}
.db-stage>.stage-tools>h2{font-size:var(--rb-text-md);font-weight:var(--rb-weight-semibold);color:var(--rb-text)}
.db-stage>.stage-tools :is(.db-authoring-tools,.db-design-tools)>button,.db-stage>.stage-tools>button.icon-button,.db-stage>.stage-tools>#toggle-layout-view,.db-stage>.stage-tools .db-canvas-design-view>summary{min-width:30px!important;height:30px!important;border-radius:var(--rb-radius-md)!important;display:inline-flex;align-items:center;justify-content:center;color:var(--rb-text-muted);transition:background-color .12s ease,color .12s ease}
.db-stage>.stage-tools :is(.db-authoring-tools,.db-design-tools)>button:hover,.db-stage>.stage-tools>button.icon-button:hover,.db-stage>.stage-tools>#toggle-layout-view:hover,.db-stage>.stage-tools .db-canvas-design-view>summary:hover{background:var(--rb-gray-100);color:var(--rb-text)}
.db-stage>.stage-tools :is(.db-authoring-tools,.db-design-tools)>button:is([aria-pressed=true],.active,.on){background:color-mix(in srgb,var(--rb-accent) 12%,transparent);color:var(--rb-accent)}
.db-stage>.stage-tools>:is(.db-authoring-tools,.db-arrange-toolbar,.db-canvas-design-view,.db-design-tools){display:inline-flex;align-items:center;gap:2px;padding-inline-start:var(--rb-space-2);margin-inline-start:var(--rb-space-1);border-inline-start:1px solid var(--rb-border)}
.db-stage>.stage-tools .db-arrange-toolbar :is(select,input){height:28px;border-radius:var(--rb-radius-sm);font-size:var(--rb-text-xs)}
/* Inspector: action buttons span the panel and never truncate. */
.db-inspector .db-chart-click-settings{display:flex;flex-direction:column;gap:var(--rb-space-2);margin-bottom:var(--rb-space-3)}
.db-inspector .db-chart-click-settings>button{width:100%;justify-content:flex-start;text-align:start;white-space:normal;height:auto;min-height:var(--rb-control-height-sm);font-size:var(--rb-text-sm)}
.db-inspector label{font-size:var(--rb-text-xs);color:var(--rb-text-muted)}
.db-inspector :is(select,input:not([type=checkbox]):not([type=radio]):not([type=color])){min-height:var(--rb-control-height-sm);border-radius:var(--rb-radius-md);font-size:var(--rb-text-sm);color:var(--rb-text)}
/* Header and mode tabs */
.db-header .heading h1,.db-header #dashboard-name{font-size:var(--rb-text-lg);font-weight:var(--rb-weight-semibold)}
/* Canvas tabs */
#canvas-tabs [data-canvas]{border-radius:var(--rb-radius-md) var(--rb-radius-md) 0 0;font-size:var(--rb-text-sm)}
/* Chart picker: labels need breathing room at 11px */
.db-designer-icons{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:var(--rb-space-1)!important}
/* Narrow screens: canvas tabs keep a readable minimum and scroll; actions stay at the right. */
@media (max-width:760px){
 #canvas-tabs{flex:0 1 auto!important;min-width:0!important;width:82px!important;max-width:82px!important;overflow-x:auto;scrollbar-width:none}
 :is(#undo,#redo,#save-dashboard,#start-presentation,#refresh-dashboard).db-line-icon,:is(#undo,#redo,#save-dashboard,#start-presentation,#refresh-dashboard).db-line-icon~:is(button,details>summary){min-width:30px!important;width:30px!important;padding:0!important;margin:0!important}
 #canvas-tabs [data-canvas]{flex:0 0 auto;max-width:82px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* Report designer Styles tab: quick styles on top, raw Style Manager under Advanced. Inspector chrome only; the page canvas is untouched. */
.ep-fallback-inspector .gs-cmp-sidebar-right{font-family:var(--rb-font)!important}
.ep-fallback-inspector .gs-cmp-sidebar-right__tabs>[role=tab]{font:var(--rb-weight-semibold) var(--rb-text-xs) var(--rb-font)!important}
#ep-quick-styles{padding:var(--rb-space-3);display:grid;gap:var(--rb-space-3);border-bottom:1px solid var(--rb-border);background:var(--rb-surface)}
#ep-quick-styles .ep-qs-empty{margin:0;font-size:var(--rb-text-sm);color:var(--rb-text-muted)}
#ep-quick-styles .ep-qs-controls{display:grid;gap:var(--rb-space-3)}
#ep-quick-styles .ep-qs-controls[hidden]{display:none}
#ep-quick-styles .ep-qs-group{display:grid;gap:6px}
#ep-quick-styles .ep-qs-label{font-size:var(--rb-text-xs);font-weight:var(--rb-weight-semibold);color:var(--rb-text-muted)}
#ep-quick-styles .ep-qs-row{display:flex;flex-wrap:wrap;gap:4px}
#ep-quick-styles .ep-qs-btn{min-width:32px;height:28px;padding:0 8px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-md);background:var(--rb-surface);color:var(--rb-text);font-size:var(--rb-text-xs);font-weight:var(--rb-weight-medium);cursor:pointer}
#ep-quick-styles .ep-qs-btn:hover{border-color:color-mix(in srgb,var(--rb-accent) 50%,var(--rb-border))}
#ep-quick-styles .ep-qs-btn[aria-pressed=true]{border-color:var(--rb-accent);background:color-mix(in srgb,var(--rb-accent) 10%,var(--rb-surface));color:var(--rb-accent)}
#ep-quick-styles [data-preset]{flex:1 1 auto}
#ep-quick-styles .ep-qs-btn[data-swatch]{min-width:24px;width:24px;height:24px;padding:0;border-radius:var(--rb-radius-full);background:var(--swatch);box-shadow:inset 0 0 0 1px rgba(16,24,40,.12)}
#ep-quick-styles .ep-qs-btn[data-swatch][aria-pressed=true]{box-shadow:0 0 0 2px var(--rb-surface),0 0 0 4px var(--rb-accent)}
#ep-quick-styles .ep-qs-none{background:linear-gradient(135deg,transparent 45%,var(--rb-danger) 45% 55%,transparent 55%),var(--rb-surface)!important}
#ep-qs-advanced>summary{padding:10px var(--rb-space-3);font-size:var(--rb-text-sm);font-weight:var(--rb-weight-semibold);color:var(--rb-text);cursor:pointer;border-bottom:1px solid var(--rb-border)}
/* Native Background image tool (designer-background.js) styled like the quick-style controls; same position and behaviour. */
.ep-fallback-inspector .gs-cmp-sidebar-right>section>.btn[title="Configure component or page background"]{width:100%;height:30px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-md);background:var(--rb-surface);color:var(--rb-text);font:var(--rb-weight-medium) var(--rb-text-sm) var(--rb-font);cursor:pointer}
.ep-fallback-inspector .gs-cmp-sidebar-right>section>.btn[title="Configure component or page background"]:hover{border-color:color-mix(in srgb,var(--rb-accent) 50%,var(--rb-border))}

/* Settings pages (Operations, Integrations, Governance): summary cards, grouped tabs, content on a card surface. Same tabs, order and forms. */
.ep-summary-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:var(--rb-space-3);margin:0 0 var(--rb-space-4)}
.ep-summary-row:not(:has(.ep-summary-card:not([hidden]))){display:none}
.ep-summary-card{display:grid;gap:2px;justify-items:start;text-align:start;padding:var(--rb-space-3) var(--rb-space-4);border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);background:var(--rb-surface);box-shadow:var(--rb-shadow-1);color:var(--rb-text);cursor:pointer;font:inherit;transition:border-color .12s ease,box-shadow .12s ease}
.ep-summary-card:hover{border-color:color-mix(in srgb,var(--rb-accent) 45%,var(--rb-border));box-shadow:var(--rb-shadow-2)}
.ep-summary-card[hidden]{display:none}
.ep-summary-title{font-size:var(--rb-text-xs);font-weight:var(--rb-weight-semibold);color:var(--rb-text-muted)}
.ep-summary-value{font-size:var(--rb-text-2xl);font-weight:var(--rb-weight-bold);line-height:var(--rb-leading-tight)}
.ep-summary-detail{font-size:var(--rb-text-xs);color:var(--rb-text-muted)}
.ep-summary-card[data-tone=success] .ep-summary-value{color:var(--rb-success)}
.ep-summary-card[data-tone=warning] .ep-summary-value{color:var(--rb-warning)}
.ep-summary-card[data-tone=danger] .ep-summary-value{color:var(--rb-danger)}
.ep-summary-card[data-tone=info] .ep-summary-value{color:var(--rb-accent)}
/* Tab groups: hairline before the monitoring and administration groups (order unchanged). */
nav[aria-label="Operations sections"] :is([data-tab=health],[data-tab=access]){margin-inline-start:var(--rb-space-3);position:relative}
nav[aria-label="Operations sections"] :is([data-tab=health],[data-tab=access])::before{content:"";position:absolute;inset-inline-start:calc(-1 * var(--rb-space-2) - 1px);top:6px;bottom:6px;width:1px;background:var(--rb-border)}
/* Section content sits on a card instead of the bare page. */
.integration-main:not(:has(nav[aria-label="Integration sections"]))>section:not([hidden]):not(.ep-summary-row){padding:var(--rb-space-5);border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);background:var(--rb-surface);box-shadow:var(--rb-shadow-1)}
.integration-main>section :is(h2){font-size:var(--rb-text-lg);font-weight:var(--rb-weight-semibold);margin:var(--rb-space-4) 0 var(--rb-space-2)}
.integration-main>section>h2:first-child{margin-top:0}
.integration-main>section>p{color:var(--rb-text-muted);font-size:var(--rb-text-sm);max-width:72ch}
.integration-main>section .operations-form{padding-bottom:var(--rb-space-2)}
.integration-main>section article{padding:var(--rb-space-3) 0;border-bottom:1px solid var(--rb-border)}
.integration-main>section article:last-child{border-bottom:0}
.integration-main>section:not([hidden]):not(.ep-summary-row)+section:not([hidden]){margin-top:var(--rb-space-4)}
/* Inside the card the Operations form drops its own box so there is one frame, not two. */
.integration-main:has(nav[aria-label="Operations sections"])>section .operations-form{border:0;padding:0;background:transparent;box-shadow:none}
@media (max-width:760px){
 .ep-summary-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--rb-space-2)}
 .ep-summary-card{padding:var(--rb-space-2) var(--rb-space-3)}
 .ep-summary-value{font-size:var(--rb-text-lg)}
 .ep-summary-detail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
}

/* Menu items hidden by role stay hidden even where nav links are display:flex. */
#portal-navigation a[hidden]{display:none!important}

/* ---------- Report viewer (runner PDF preview) ---------- */
.runner-pdf-body{display:flex;flex:1;min-height:0;gap:0}
.runner-pdf-body>.runner-pdf-sheet{flex:1;min-width:0}
.runner-pdf-thumbs{flex:0 0 132px;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:12px 10px;border-inline-end:1px solid var(--rb-border);background:var(--rb-canvas)}
.runner-pdf-thumbs[hidden]{display:none}
.runner-pdf-thumbs button{display:grid;justify-items:center;gap:4px;padding:4px;border:2px solid transparent;border-radius:var(--rb-radius-md);background:transparent;cursor:pointer;font-size:var(--rb-text-xs);color:var(--rb-text-muted)}
.runner-pdf-thumbs button canvas{width:96px;height:auto;background:#fff;box-shadow:var(--rb-shadow-1)}
.runner-pdf-thumbs button[aria-current=true]{border-color:var(--rb-accent);color:var(--rb-accent)}
.runner-pdf-thumbs p{font-size:var(--rb-text-xs);color:var(--rb-text-muted);margin:0}
.runner-pdf-toolbar [aria-pressed=true]{background:color-mix(in srgb,var(--rb-accent) 12%,var(--rb-surface));color:var(--rb-accent);border-color:var(--rb-accent)}
#runner-pdf.runner-pdf-fullscreen,.runner-pdf-fullscreen{background:var(--rb-gray-100);height:100vh}
/* Report runner: copy link and private notes. */
.runner-reader-tools{display:flex;align-items:center;gap:8px;margin-inline-start:auto}
.runner-reader-tools .btn{height:30px;font-size:var(--rb-text-xs)}
.runner-notes{position:relative}.runner-notes>summary{list-style:none;cursor:pointer;height:30px;display:inline-flex;align-items:center;gap:4px;padding:0 10px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-md);background:var(--rb-surface);font-size:var(--rb-text-xs);font-weight:var(--rb-weight-medium)}
.runner-notes>summary::-webkit-details-marker{display:none}
.runner-notes-panel{position:absolute;z-index:30;inset-inline-end:0;top:calc(100% + 6px);width:min(340px,80vw);max-height:60vh;overflow:auto;padding:12px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);background:var(--rb-surface);box-shadow:var(--rb-shadow-3);display:grid;gap:8px}
.runner-notes-help{margin:0;font-size:var(--rb-text-xs);color:var(--rb-text-muted)}
#runner-notes-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
#runner-notes-list li{padding:8px 10px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-md);font-size:var(--rb-text-sm)}
#runner-notes-list li p{margin:4px 0;white-space:pre-wrap;overflow-wrap:anywhere}
#runner-note-text{width:100%;box-sizing:border-box;font:inherit;padding:8px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-md)}

/* ---------- Catalog lists (Reports, Dashboards): one header control size, one row action size ---------- */
body .files-top :is(.runner-menu>summary,.ep-catalog-slot>button){box-sizing:border-box!important;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:50%!important;border:1px solid var(--rb-border,#dde3e8)!important;background:#fff!important;color:#4a5560!important;box-shadow:none!important}
body .files-top :is(.runner-menu>summary,.ep-catalog-slot>button):hover:not(:disabled){border-color:color-mix(in srgb,var(--rb-accent,#2f6b4f) 40%,#dde3e8)!important;color:var(--rb-accent,#2f6b4f)!important}
body .files-top .runner-menu[open]>summary{background:color-mix(in srgb,var(--rb-accent,#2f6b4f) 10%,#fff)!important;color:var(--rb-accent,#2f6b4f)!important}
body .files-top .ep-catalog-slot>button:disabled{opacity:.45;cursor:default}
body .files-top .view-switch{height:36px;padding:2px!important;gap:2px;border-radius:18px!important;border:1px solid var(--rb-border,#dde3e8);background:#fff;box-sizing:border-box;display:inline-flex;align-items:center}
body .files-top .view-switch>.view-btn{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border-radius:50%!important}
body .files-top .ep-catalog-slot>button.runner-add-report{background:var(--rb-accent,#2f6b4f)!important;border-color:var(--rb-accent,#2f6b4f)!important;color:#fff!important}
body .files-top .ep-catalog-slot>button.runner-add-report:hover{filter:brightness(1.08)}
body .files-top .ep-catalog-slot>button.runner-add-report :is(svg,path){stroke:#fff;color:#fff}
body .file-row-actions :is(.catalog-preview-icon,.report-more>summary){box-sizing:border-box!important;width:32px!important;height:32px!important;min-width:32px!important;padding:0!important;display:inline-flex!important;align-items:center;justify-content:center;border-radius:8px!important;border:1px solid var(--rb-border,#dde3e8)!important;background:#fff!important;color:#4a5560!important}
body .file-row-actions :is(.catalog-preview-icon,.report-more>summary):hover{border-color:color-mix(in srgb,var(--rb-accent,#2f6b4f) 40%,#dde3e8)!important;color:var(--rb-accent,#2f6b4f)!important}
body .file-row-actions .report-more{height:32px;display:inline-flex;align-items:center}

/* ---------- Remaining text-symbol buttons drawn as the shared line icons (labels kept for screen readers) ---------- */
body .shared-data-field>button,body [data-chart-more],body #new-canvas,body #sidebar-attach,body .field-drag,body #page-tab-menu{font-size:0!important;line-height:0!important;display:inline-flex!important;align-items:center;justify-content:center}
body .shared-data-field>button::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat}
body [data-chart-more]::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat}
body #new-canvas::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat}
body #sidebar-attach::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M12%205v14M5%2012h14'/%3E%3C/svg%3E") center/14px no-repeat}
/* The drag handle and the field row plus draw the icon only; a more specific size rule must not bring their text glyph back. */
body #field-tree .field-drag,body .field-row>.field-drag,body #fields-panel .shared-data-field>button{font-size:0!important;line-height:0!important}
body .field-drag::after{content:'';display:block;width:16px;height:16px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='9'%20cy='6'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='6'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='9'%20cy='12'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='12'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='9'%20cy='18'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='18'%20r='1.1'%20fill='black'/%3E%3C/svg%3E") center/16px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='9'%20cy='6'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='6'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='9'%20cy='12'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='12'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='9'%20cy='18'%20r='1.1'%20fill='black'/%3E%3Ccircle%20cx='15'%20cy='18'%20r='1.1'%20fill='black'/%3E%3C/svg%3E") center/16px no-repeat}
body #page-tab-menu::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%2010l5%205%205-5'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M7%2010l5%205%205-5'/%3E%3C/svg%3E") center/14px no-repeat}
body .designer-panel-edge>span{font-size:0!important;line-height:0;display:flex;align-items:center;justify-content:center;width:100%;height:100%}
body .designer-panel-edge.left[aria-expanded=true]>span::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.5%206%208.5%2012l6%206'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.5%206%208.5%2012l6%206'/%3E%3C/svg%3E") center/14px no-repeat}
body .designer-panel-edge.left[aria-expanded=false]>span::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%206l6%206-6%206'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%206l6%206-6%206'/%3E%3C/svg%3E") center/14px no-repeat}
body .designer-panel-edge.right[aria-expanded=true]>span::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%206l6%206-6%206'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M9.5%206l6%206-6%206'/%3E%3C/svg%3E") center/14px no-repeat}
body .designer-panel-edge.right[aria-expanded=false]>span::after{content:'';display:block;width:14px;height:14px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.5%206%208.5%2012l6%206'/%3E%3C/svg%3E") center/14px no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='black'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M14.5%206%208.5%2012l6%206'/%3E%3C/svg%3E") center/14px no-repeat}
html[dir=rtl] body .designer-panel-edge>span::after{transform:scaleX(-1)}

/* ---- Shared motion and states for app chrome (all pages). Never applies to authored report or dashboard content. ---- */
@media (prefers-reduced-motion:no-preference){
 :where(.btn,.icon-button,.template-page-tabs>button,.account-navigation button,#portal-navigation a,#portal-navigation button,.workflow-tabs button,.db-tabs button,.seg button){transition:background-color var(--rb-motion-fast) ease,border-color var(--rb-motion-fast) ease,color var(--rb-motion-fast) ease,box-shadow var(--rb-motion-fast) ease,transform var(--rb-motion-fast) ease,filter var(--rb-motion-fast) ease}
 /* The catalog toolbar (view switch, sort, create) is a fixed, instant control set and is left out on purpose. */
 :where(.btn):where(:not(:disabled)):where(:not(.ep-catalog-toolbar *)):active{transform:scale(.97)}
 :where(.file-table tbody tr,.template-card,.viz-card,.plugin-card,.report-card,.figma-template-card){transition:background-color var(--rb-motion-fast) ease,border-color var(--rb-motion-fast) ease,box-shadow var(--rb-motion) ease}
 :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):where(:not(#dashboard-canvas *)){transition:border-color var(--rb-motion-fast) ease,box-shadow var(--rb-motion-fast) ease}
 /* Opacity only: many dialogs and menus position themselves with transforms. */
 :where(dialog[open]){animation:rb-fade-in var(--rb-motion) ease-out both}
 :where(dialog[open])::backdrop{animation:rb-fade-in var(--rb-motion) ease-out both}
 :where(details.runner-menu[open]>.runner-menu-content,details.report-more[open]>:not(summary),.db-view-popover){animation:rb-fade-in var(--rb-motion-fast) ease-out both}
 :where(.toast:not(.hidden)){animation:rb-fade-in var(--rb-motion) ease-out both}
 :where(.empty-hero){animation:rb-rise var(--rb-motion-slow) var(--rb-ease) both}
}
@keyframes rb-fade-in{from{opacity:0}to{opacity:1}}
@keyframes rb-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Empty states keep their lines together instead of spreading over the whole panel. */
#erd-empty:not([hidden]){align-content:center}

/* ---- Reports and Dashboards main screens (shared catalog): rounded cards on the page, the same for both. ---- */
:root .files-view:has(>.report-catalog-page){padding:20px 24px 40px}
:root .report-catalog-page{gap:16px}
:root .report-catalog-page>.file-table{border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);overflow:hidden;box-shadow:var(--rb-shadow-1)}
:root .report-catalog-page>.grid{gap:16px;background:transparent}
:root .report-catalog-page>.grid>.file-card{border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);box-shadow:var(--rb-shadow-1)}
:root .report-catalog-page>.grid>.file-card:is(:hover,:focus-within){border-color:color-mix(in srgb,var(--rb-accent) 45%,var(--rb-border));box-shadow:var(--rb-shadow-3);transform:translateY(-2px)}
.grid>.file-card .report-thumbnail{overflow:hidden;border-radius:var(--rb-radius-md)}
.grid>.file-card:is(:hover,:focus-within) .report-thumbnail img{transform:scale(1.03)}
/* A card whose action menu is open stays above its neighbours: the hover lift (transform) gives every card its own layer, so a later card would cover the menu. */
:root .grid>.file-card:has(.report-more[open]){position:relative;z-index:40}
@media (prefers-reduced-motion:no-preference){.grid>.file-card{transition:box-shadow var(--rb-motion) ease,transform var(--rb-motion) var(--rb-ease),border-color var(--rb-motion-fast) ease}.grid>.file-card .report-thumbnail img{transition:transform var(--rb-motion) var(--rb-ease)}}
@media (prefers-reduced-motion:reduce){:root .report-catalog-page>.grid>.file-card:is(:hover,:focus-within){transform:none}}
@media screen and (max-width:700px){:root .files-view:has(>.report-catalog-page){padding:12px 10px 32px}}

/* ---- Phone width: no page may scroll sideways. ---- */
@media screen and (max-width:700px){
 .files-view{grid-template-columns:minmax(0,1fr)}
 .files-view>.page{grid-template-columns:minmax(0,1fr);min-width:0}
 .files-view>.page>*{min-width:0;max-width:100%}
 .files-view>.page>.file-table{display:block;overflow-x:auto}
 .files-view>.page>.page-head{flex-wrap:wrap}
 .source-file-drop input[type=file]{max-width:100%}
 nav.template-page-tabs:not(.account-navigation){overflow-x:auto;flex-wrap:nowrap;max-width:100%;scrollbar-width:thin}
 nav.template-page-tabs:not(.account-navigation)>*{flex:none}
 .template-card{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}
 .template-card>*{min-width:0;max-width:100%}
 :root body .account-shell{grid-template-columns:minmax(0,1fr);margin:16px 12px 32px;gap:14px;max-width:none}
 :root .account-shell .account-navigation{position:static;flex-direction:row;overflow-x:auto;flex-wrap:nowrap;padding:8px;scrollbar-width:thin}
 :root .account-shell .account-navigation button{flex:none;white-space:nowrap;min-height:44px}
 :root .account-main{padding:0;min-width:0;max-width:100%}
 :root .account-panel{padding:16px;min-width:0;max-width:100%;box-sizing:border-box}
 :root .account-panel :where(form,label,input,select,p,h2,div){min-width:0;max-width:100%}
 .account-panel :where(.btn,a.btn){max-width:100%;white-space:normal}
 .appearance-page{padding:24px 14px 60px}
 #workspace-branding{max-width:100%}
 #workspace-branding>*,#workspace-branding label>*{min-width:0;max-width:100%}
}


/* ---- One page system: every page uses the same header band, content column, panels, links and theme colours. ---- */
:root :is(.account-panel,.setup-card,.readiness-item,.appearance-page>section,.org-main .account-panel){background:var(--rb-surface);border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);box-shadow:var(--rb-shadow-1)}
:root .readiness-item{border-inline-start-width:4px}
:root .readiness-item.passed{border-inline-start-color:var(--rb-success,#23825a)}
:root .readiness-item.failed{border-inline-start-color:var(--rb-danger,#bd3b35)}
/* Header band: title on the left, page actions on the right, one row when there is room. */
:root body:is(.customer-setup-page,.readiness-page) .ep-page-heading,:root header.ep-page-header:not(.files-top):not(.workspace-header)>.ep-page-heading{flex:1 1 280px;min-width:0}
:root header.ep-page-header:not(.files-top):not(.workspace-header){display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:80px;box-sizing:border-box;padding-block:12px}
:root header.ep-page-header:not(.files-top):not(.workspace-header)>:is(a.btn,label,button){flex:none}
/* Content column: same left edge and width on every admin page. */
:root main:is(.org-main,.appearance-page,.readiness-main){max-width:1040px;margin:0;padding:24px 28px 48px;box-sizing:border-box}
:root .setup-shell{margin:0;padding:24px 28px 48px}
:root .appearance-page>section{padding:24px;margin:0 0 20px}
:root .org-main>.account-panel,:root .org-main .org-grid{margin:0 0 20px}
:root .org-main>.account-panel>a.btn{display:inline-flex;align-items:center;margin:12px 8px 0 0}
:root .org-main #org-message:empty,:root #appearance-status:empty{display:none}
:root .org-main input{border-color:var(--rb-border);border-radius:var(--rb-radius-md);min-height:40px}
:root .org-main form{max-width:620px}
/* Links and link-buttons in app chrome take the theme, never the browser default blue. */
:root :is(.org-main,.appearance-page,.readiness-main,.setup-shell,.account-main,.integration-main) a:not(.btn){color:var(--rb-accent);text-underline-offset:2px}
:root a.btn:not(.primary){color:var(--rb-text,inherit);text-decoration:none}
:root #account-profile>a.btn{margin:0 6px 20px 0}
/* Setup wizard: the current step uses the organization accent. */
:root .setup-shell nav button{border-color:var(--rb-border);border-radius:var(--rb-radius-md);background:var(--rb-surface)}
:root .setup-shell nav button[aria-current=step]{background:color-mix(in srgb,var(--rb-accent) 9%,var(--rb-surface));color:var(--rb-accent);border-color:var(--rb-accent);font-weight:var(--rb-weight-semibold)}
:root :is(.setup-shell,.readiness-main) :is(button,a,select,textarea):focus-visible{outline-color:var(--rb-accent)}
/* Sources and other in-page tables: the same frame as the Reports and Dashboards list. */
:root .files-view>.page>.file-table{border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);overflow:hidden;box-shadow:var(--rb-shadow-1);border-collapse:separate;border-spacing:0;background:var(--rb-surface)}
:root .files-view>.page>.file-table tr:last-child>td{border-bottom:0}
:root .source-file-drop{border-radius:var(--rb-radius-lg);border-color:color-mix(in srgb,var(--rb-accent) 35%,var(--rb-border));background:color-mix(in srgb,var(--rb-accent) 4%,var(--rb-surface))}
/* Portals: the catalog follows the organization theme; inside a portal every tint follows that portal's own brand accent. */
:root .rp-app,:root .rp-dialog{--rp-accent:var(--rb-accent);--rp-dark:var(--product-logo-ink,#172d3d);--rp-line:var(--rb-border);--rp-bg:var(--bg,var(--rb-canvas));--rp-muted:var(--muted,var(--rb-text-muted));--rp-text:var(--ink,var(--rb-text));color:var(--rp-text);--rp-tint:color-mix(in srgb,var(--rp-accent) 8%,var(--rb-surface));--rp-edge:color-mix(in srgb,var(--rp-accent) 40%,var(--rb-border));font-family:var(--rb-font)}
:root .rp-app :is(button,a,input,select,textarea):focus-visible,:root .rp-dialog :focus-visible{outline-color:color-mix(in srgb,var(--rp-accent) 55%,#fff)}
:root .rp-app button:not(.rp-primary):not(.rp-active):not(.rp-page-item):not(.rp-resource-card):not(.rp-result):hover,:root .rp-dialog button:not(.rp-primary):hover{background:var(--rp-tint)}
:root .rp-app>.rp-toolbar:not(.rp-builder-header){background:var(--ep-subtle,var(--rb-canvas));padding:12px 28px;min-height:80px;box-sizing:border-box}
:root .rp-app>.rp-toolbar:not(.rp-builder-header) h1{font-size:22px;font-weight:650;letter-spacing:-.5px}
:root .rp-app>.rp-toolbar:not(.rp-builder-header) .rp-kicker{display:none}
:root .rp-app>.rp-toolbar:not(.rp-builder-header) p{margin-top:2px;font-size:12px}
:root .rp-catalog{max-width:none;margin:0;padding:24px 28px 48px}
:root .rp-card{border-radius:var(--rb-radius-lg);box-shadow:var(--rb-shadow-1)}
:root .rp-card:hover{border-color:var(--rp-edge);box-shadow:var(--rb-shadow-3)}
:root .rp-card-preview{background:var(--rp-tint)}
:root .rp-card-nav{background:var(--rp-dark)}
:root .rp-card-nav i:first-child{background:color-mix(in srgb,var(--rp-accent) 60%,#fff)}
:root .rp-card-content b{background:color-mix(in srgb,var(--rp-accent) 16%,var(--rb-surface))}
:root .rp-empty{border-color:var(--rp-edge);border-radius:var(--rb-radius-lg)}
:root .rp-empty svg,:root .rp-embed-hint svg{color:var(--rp-accent)}
:root .rp-page-item.rp-selected{background:var(--rp-tint)!important;color:var(--rp-accent)!important;border-color:var(--rp-edge)!important}
:root .rp-hero{background:linear-gradient(125deg,color-mix(in srgb,var(--rp-accent) 12%,var(--rb-surface)) 0,var(--rb-surface) 55%,color-mix(in srgb,var(--rp-accent) 7%,var(--rb-surface)) 100%);border-color:color-mix(in srgb,var(--rp-accent) 22%,var(--rb-border))}
:root .rp-hero:after{border-color:color-mix(in srgb,var(--rp-accent) 5%,transparent)}
:root .rp-resource-icon{background:var(--rp-tint)}
:root .rp-resource-card:hover{border-color:var(--rp-edge)}
:root .rp-share-summary{background:var(--rp-tint);border-color:var(--rb-border)}
@media (prefers-reduced-motion:no-preference){.rp-card,.rp-resource-card,.readiness-item,.setup-shell nav button{transition:box-shadow var(--rb-motion) ease,border-color var(--rb-motion-fast) ease,background-color var(--rb-motion-fast) ease}}
@media screen and (max-width:700px){
 :root main:is(.org-main,.appearance-page,.readiness-main),:root .setup-shell,:root .rp-catalog{padding:16px 12px 40px}
 :root .rp-app>.rp-toolbar:not(.rp-builder-header){padding:12px 14px;flex-wrap:wrap}
 :root .org-main>.account-panel>a.btn{display:flex;margin:10px 0 0}
}
/* Admin pages arrive with one short fade; lists that redraw while typing are left out. */
@media (prefers-reduced-motion:no-preference){:is(.integration-main,.account-shell,.org-main,.appearance-page,.readiness-main,.setup-shell,.rp-catalog){animation:rb-fade-in var(--rb-motion) ease both}}
/* Report designer header: Data / Design / View sits in the exact centre, whatever the widths of the title and the actions. */
@media (min-width:1201px){
 :root .workspace-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center}
 :root .workspace-header>.report-name{grid-column:1;min-width:0}
 :root .workspace-header>.workflow-tabs{grid-column:2;margin:0;justify-self:center;width:auto}
 :root .workspace-header>.workspace-actions{grid-column:3;justify-self:end;margin:0;flex-wrap:nowrap}
}
/* Dashboard authoring: the canvas tools are the report designer's floating tool belt (web/dashboard-toolbelt.js
   groups them with the shared menu code). These rules repeat the report belt's measurements from
   report-workspace-polish.css; colours come from core-workspace.css, which both pages load. Present keeps its plain bar. */
:root body.db-workspace-page .db-workspace>.db-stage:has(>.stage-tools.designer-toolbelt){position:relative}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt{position:absolute;inset-block-end:16px;inset-inline:12px;margin-inline:auto;z-index:70;display:flex;align-items:center;flex-wrap:nowrap;gap:2px;width:max-content;max-width:calc(100% - 24px);box-sizing:border-box;height:48px;min-height:48px;max-height:48px;flex:none;padding:5px 6px!important;overflow:visible!important;border:1px solid var(--rb-border)!important;border-radius:var(--rb-radius-lg)!important;background:var(--rb-surface)!important;color:var(--rb-text)!important;box-shadow:var(--rb-shadow-3)}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>:is(h2,small,.badge){position:absolute!important;width:1px!important;min-width:0!important;max-width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;flex:none!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>:is([data-belt-done],.db-design-tools,.db-authoring-tools,.db-canvas-design-view){display:none!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group{position:relative;flex:0 0 auto;margin:0;padding:0;border:0}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group[hidden]{display:none}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:4px;width:48px;height:36px;padding:0;border:0;font-size:12px;white-space:nowrap;box-sizing:border-box}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary::-webkit-details-marker{display:none}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary:focus-visible{outline:2px solid var(--rb-accent);outline-offset:2px}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary>svg{flex-shrink:0}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary>.design-chevron{width:10px;height:10px}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary :is(span,svg){color:inherit!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-group-name{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden;white-space:nowrap}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group[data-belt-group=Select]>summary{background:var(--rb-accent)!important;color:#fff!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group[data-belt-group=More]{border-inline-start:1px solid var(--rb-border);margin-inline-start:6px;padding-inline-start:8px}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group[data-belt-group=More]>summary>.design-chevron{display:none}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group[data-belt-group=More]>summary>svg:not(.design-chevron){stroke-width:3.2}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu{position:absolute;bottom:calc(100% + 12px);inset-inline-start:0;z-index:71;min-width:220px;max-width:min(320px,80vw);max-height:min(440px,65vh);overflow:auto;box-sizing:border-box;padding:8px;border:1px solid #333;border-radius:10px;background:#242424;color:#fff;box-shadow:0 3px 14px #00000024}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group:is([data-belt-group=Review],[data-belt-group=More])>.design-tool-menu{inset-inline-start:auto;inset-inline-end:0}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;width:100%!important;height:auto!important;min-width:0;min-height:36px;box-sizing:border-box;margin:0;padding:8px 10px!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#f5f5f5!important;font-size:12px!important;font-weight:400!important;line-height:1.3;text-align:start;white-space:normal}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button::after{content:none!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button:hover,:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button:focus-visible{background:color-mix(in srgb,var(--rb-accent) 12%,var(--rb-surface))!important;color:var(--rb-text)!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button:disabled{opacity:.4}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button[aria-pressed=true]{background:color-mix(in srgb,var(--rb-accent) 55%,#242424)!important;color:#fff!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button>svg{width:20px!important;height:20px!important;min-width:20px;flex:0 0 20px;display:block;margin:0}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu :is(span,output,label,select,summary){color:inherit!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .design-command-label{flex:1;min-width:0;font-size:12px;overflow-wrap:anywhere}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button[data-belt-raw]{font-size:14px!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu button[data-belt-raw]::after{content:attr(aria-label)!important;font-size:12px;flex:1}
/* Zoom row and the grid and selection controls keep their own handlers inside the menus. */
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-canvas-view-zoom{display:flex;align-items:center;gap:4px;margin:0 0 6px;padding:2px 2px 8px;border-bottom:1px solid #3d3d3d;color:#f5f5f5}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-canvas-view-zoom button{width:34px!important;min-height:30px;justify-content:center;padding:4px!important;border:1px solid #4a4a4a!important;font-size:15px!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-canvas-view-zoom button[data-zoom=reset]{width:auto!important;margin-inline-start:auto;padding:4px 10px!important;font-size:12px!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-canvas-view-zoom output{min-width:46px;text-align:center;font-size:12px;color:#f5f5f5}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:0;margin:6px 0 0;padding:8px 10px 4px;border-top:1px solid #3d3d3d;color:#f5f5f5}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-switch{position:static!important;display:flex!important;width:auto!important;height:auto!important;min-width:0!important;gap:8px;padding:0!important;font-size:12px!important;background:transparent!important;color:#f5f5f5!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-switch input{position:static!important;inset:auto!important;opacity:1!important;width:14px!important;height:14px!important;pointer-events:auto!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-switch>span{display:none}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-switch::after{content:'Snap to grid'!important;display:inline!important;font-size:12px!important;width:auto!important;height:auto!important;background:none!important;-webkit-mask:none!important;mask:none!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-step{border-color:#4a4a4a}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-toolbar .db-grid-step select{background:#242424!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection{flex:1 0 100%;flex-wrap:wrap}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection[hidden]{display:none}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection>button{display:none!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection>details{flex:1 0 100%}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection summary{display:flex;align-items:center;gap:8px;width:auto!important;height:auto!important;min-height:32px;padding:6px 10px!important;border:1px solid #4a4a4a!important;border-radius:5px;background:transparent!important;color:#f5f5f5!important;font-size:14px!important}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-selection summary::after{content:'Align and group';font-size:12px}
:root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu .db-arrange-menu{position:static;min-width:0;margin-top:4px;padding:0;border:0;background:transparent;box-shadow:none}
@media (min-width:1500px){
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary{width:auto;padding:0 8px 0 7px;gap:5px}
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-group-name{position:static;clip-path:none;width:auto;height:auto;overflow:visible;font-size:var(--rb-text-xs);font-weight:var(--rb-weight-medium)}
}
@media (max-width:650px){
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>.design-tool-group>summary{width:38px}
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt .design-tool-menu{position:fixed;bottom:130px;inset-inline:12px;max-width:none}
}
/* Messages appear above the floating tools, not on top of them. */
:root body.db-workspace-page:has(.stage-tools.designer-toolbelt) #dashboard-toast{bottom:124px}
/* Fields and Properties panels can be put away from the belt's More menu (this visit only). */
:root body.db-belt-hide-fields:not(.present):not(.db-presenting) .db-workspace>.db-fields,:root body.db-belt-hide-properties:not(.present):not(.db-presenting) .db-workspace>.db-inspector{display:none!important}
@media (min-width:1001px){
 :root body.db-belt-hide-fields:not(.present):not(.db-presenting):not(.db-layout-mode) .db-workspace{grid-template-columns:minmax(0,1fr) var(--db-belt-properties-width,240px)!important}
 :root body.db-belt-hide-properties:not(.present):not(.db-presenting):not(.db-layout-mode) .db-workspace{grid-template-columns:var(--db-belt-fields-width,210px) minmax(0,1fr)!important}
 :root body.db-belt-hide-fields.db-belt-hide-properties:not(.present):not(.db-presenting):not(.db-layout-mode) .db-workspace{grid-template-columns:minmax(0,1fr)!important}
}
@media (min-width:761px) and (max-width:1000px){
 :root body.db-belt-hide-fields:not(.present):not(.db-presenting) .db-workspace{grid-template-columns:minmax(0,1fr)!important}
}
:root body.db-workspace-page:has(.stage-tools.designer-toolbelt) .db-design-drawer{top:108px!important;bottom:76px}
/* Layout view on screens up to 1150px: the canvas takes the full width (it was left in the 190px fields column). */
@media (min-width:761px) and (max-width:1150px){
 :root body.db-workspace-page.db-layout-mode:not(.db-presenting) .db-workspace{grid-template-columns:minmax(0,1fr)!important}
 :root body.db-workspace-page.db-layout-mode:not(.db-presenting) .db-workspace>.db-stage:has(>.stage-tools.designer-toolbelt){min-height:calc(100dvh - 150px)}
}
/* A new chart without its required fields shows its field wells in place of an error message. */
.db-chart-field-wells{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px;box-sizing:border-box;color:var(--rb-text-muted);font-size:12px;text-align:center}
.db-chart-field-wells>div{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:100%}
.db-chart-field-wells label{display:flex;flex-direction:column;gap:6px;min-width:132px;max-width:190px;margin:0;padding:10px;border:1px dashed var(--rb-border);border-radius:var(--rb-radius-md);background:var(--rb-surface);color:var(--rb-text);text-align:start;cursor:copy}
.db-chart-field-wells label.is-required{border-color:var(--rb-accent)}
.db-chart-field-wells label:hover,.db-chart-field-wells label.db-drop{background:color-mix(in srgb,var(--rb-accent) 8%,var(--rb-surface))}
.db-chart-field-wells strong{font-size:11px;font-weight:600}
.db-chart-field-wells select{width:100%;min-height:30px;padding:3px 6px;border:1px solid var(--rb-border);border-radius:6px;background:var(--rb-surface);color:var(--rb-text);font-size:12px}
/* Room under the last row so the floating tool belt never covers it while authoring. */
:root body.db-workspace-page .db-stage:has(>.stage-tools.designer-toolbelt)>#dashboard-canvas{padding-bottom:84px!important}
/* A title or note box shorter than 100px (new option) uses tight padding so its text is not clipped. Taller boxes are unchanged. */
.db-note.db-note-slim{padding-block:4px;line-height:1.3;display:flex;align-items:center}
/* Field analysis: icon on a field row and its breakdown popover (web/field-analysis.js). */
#fields-panel .db-field>.db-field-analyze{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;padding:0!important;border:0;border-radius:6px;background:transparent;color:var(--rb-text-muted);opacity:0;flex:none}
#fields-panel .db-field>.db-field-analyze svg{width:14px;height:14px}
#fields-panel .db-field:hover>.db-field-analyze,#fields-panel .db-field:focus-within>.db-field-analyze,#fields-panel .db-field.db-field-analyzing>.db-field-analyze{opacity:1}
#fields-panel .db-field>.db-field-analyze:hover,#fields-panel .db-field.db-field-analyzing>.db-field-analyze{background:color-mix(in srgb,var(--rb-accent) 14%,transparent);color:var(--rb-accent)}
.ep-field-analysis{position:fixed;z-index:1700;width:300px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;padding:14px 16px 16px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);background:var(--rb-surface);color:var(--rb-text);box-shadow:var(--rb-shadow-3);font-size:13px;animation:ep-field-analysis-in var(--rb-motion-fast,120ms) ease-out}
@keyframes ep-field-analysis-in{from{opacity:0}to{opacity:1}}
.ep-field-analysis>header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.ep-field-analysis>header strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.ep-field-analysis>header button{width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--rb-text-muted);font-size:16px;line-height:1;cursor:pointer}
.ep-field-analysis>header button:hover{background:color-mix(in srgb,var(--rb-accent) 10%,transparent)}
.ep-field-analysis-summary{margin:0 0 10px;color:var(--rb-text-muted);font-size:12px}
.ep-field-analysis-bar{display:flex;gap:2px;height:8px;margin-bottom:12px;border-radius:999px;overflow:hidden;background:var(--rb-border)}
.ep-field-analysis-bar span{min-width:2px;flex-basis:0}
.ep-field-analysis-list{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.ep-field-analysis-list li{display:grid;grid-template-columns:10px minmax(0,1fr) auto 44px;align-items:center;gap:8px}
.ep-field-analysis-list i{width:10px;height:10px;border-radius:3px}
.ep-field-analysis-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ep-field-analysis-list b{font-weight:400;color:var(--rb-text-muted);font-variant-numeric:tabular-nums}
.ep-field-analysis-list em{font-style:normal;font-weight:600;text-align:end;font-variant-numeric:tabular-nums}
.ep-field-analysis-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 12px}
.ep-field-analysis-facts div{padding:7px 8px;border:1px solid var(--rb-border);border-radius:8px;min-width:0}
.ep-field-analysis-facts dt{font-size:11px;color:var(--rb-text-muted)}
.ep-field-analysis-facts dd{margin:2px 0 0;font-weight:600;font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ep-field-analysis-histogram{display:flex;align-items:flex-end;gap:3px;height:64px}
.ep-field-analysis-histogram span{flex:1;border-radius:3px 3px 0 0;background:var(--rb-accent)}
.ep-field-analysis-axis{margin:4px 0 0;color:var(--rb-text-muted);font-size:11px;text-align:center}
.ep-field-analysis-note{margin:12px 0 0;color:var(--rb-text-muted);font-size:12px;line-height:1.45}
#fields-panel .db-field>.db-field-analyze::before,#fields-panel .db-field>.db-field-analyze::after{content:none!important;display:none!important}
#fields-panel .db-field>.db-field-analyze svg{width:15px!important;height:15px!important;display:block}
/* The same Analyze icon on report designer field rows. */
#field-tree .field-row>.db-field-analyze{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0!important;margin:0;border:0!important;border-radius:6px;background:transparent;color:var(--rb-text-muted);opacity:0;flex:none;cursor:pointer}
#field-tree .field-row>.db-field-analyze svg{width:15px;height:15px;display:block}
#field-tree .field-row:hover>.db-field-analyze,#field-tree .field-row:focus-within>.db-field-analyze,#field-tree .field-row.db-field-analyzing>.db-field-analyze{opacity:1}
#field-tree .field-row>.db-field-analyze:hover,#field-tree .field-row.db-field-analyzing>.db-field-analyze{background:color-mix(in srgb,var(--rb-accent) 14%,transparent);color:var(--rb-accent)}
/* Find design tools on dashboards: the report designer's command search dialog, drawn with theme tokens
   (its own stylesheet is only loaded in the report designer). */
body.db-workspace-page dialog.designer-command-search{width:min(560px,92vw);max-height:calc(100dvh - 40px);overflow:auto;box-sizing:border-box;padding:20px;border:1px solid var(--rb-border);border-radius:var(--rb-radius-lg);background:var(--rb-surface);color:var(--rb-text);box-shadow:var(--rb-shadow-3)}
body.db-workspace-page dialog.designer-command-search::backdrop{background:rgb(16 24 40 / .4)}
body.db-workspace-page .designer-command-search header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px}
body.db-workspace-page .designer-command-search h2{margin:0;font-size:17px;line-height:1.3}
body.db-workspace-page .designer-command-search input[type=search]{box-sizing:border-box;width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--rb-border);border-radius:8px;background:var(--rb-surface);color:var(--rb-text);font-size:14px}
body.db-workspace-page .designer-command-results{display:flex;flex-direction:column;gap:6px;max-height:50vh;overflow:auto;margin-top:12px}
body.db-workspace-page .designer-command-row{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:6px;align-items:center}
body.db-workspace-page .designer-command-results button{min-width:0;min-height:36px;padding:8px 12px;text-align:start;border:1px solid var(--rb-border);border-radius:8px;background:var(--rb-surface);color:var(--rb-text);font-size:13px}
body.db-workspace-page .designer-command-results button.active,body.db-workspace-page .designer-command-results button:hover{background:color-mix(in srgb,var(--rb-accent) 10%,var(--rb-surface));border-color:var(--rb-accent)}
body.db-workspace-page .designer-command-row .designer-command-pin{text-align:center;padding-inline:4px}
body.db-workspace-page .designer-command-search p{margin:10px 0 0;font-size:12px;color:var(--rb-text-muted)}
/* Header extras exist only in the report-style header; the compact bottom bar on narrower screens keeps its icons. */
.db-header .actions>.db-header-command,.db-header .actions>#save-dashboard>.db-header-label{display:none}
/* Dashboard header in the report designer's layout at every width: one band with the label,
   name and save status on the left, the Data / Visualize / Present switch centred as a segmented control,
   and the document actions on the right. Same elements and handlers; only their placement and look change.
   Like the report header, it wraps to two rows on tablets and three on phones (blocks further down). */
@media all{
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) #dashboard-app{position:relative}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header{position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;height:80px;min-height:80px;padding:10px 28px!important;background:var(--rb-surface);border-bottom:1px solid var(--rb-border)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading{display:grid!important;grid-template-columns:minmax(0,1fr)!important;align-content:center;align-items:start;gap:0!important;min-width:0;flex:0 1 auto;width:calc(50% - 230px)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading>.eyebrow{display:block!important;font-size:11px;line-height:14px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--rb-text-muted)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading>.db-name{width:100%;max-width:none;min-width:0;height:25px;padding:0;border-color:transparent;background:transparent;font-size:17px;font-weight:600;color:var(--rb-text);text-overflow:ellipsis}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading>.db-name:is(:hover,:focus){border-color:var(--rb-border);background:var(--rb-surface)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading>.db-saved{justify-self:start;height:16px!important;min-height:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--rb-text-muted)!important;font-size:12px!important;line-height:16px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow{position:absolute;top:21px;left:50%;transform:translateX(-50%);z-index:5;display:flex;align-items:center;gap:2px;width:auto;height:38px;min-height:38px;box-sizing:border-box;padding:3px!important;border:0;border-radius:10px;background:var(--rb-gray-100,#f1f4f6)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px;border:0;border-radius:8px;background:transparent;color:var(--rb-text-muted);font-size:13px;font-weight:500}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button::before{content:'';width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:var(--db-mode-icon) center/contain no-repeat;mask:var(--db-mode-icon) center/contain no-repeat}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button[data-mode=data]{--db-mode-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 6c0-4 14-4 14 0s-14 4-14 0zm0 0v12c0 4 14 4 14 0V6M5 12c0 4 14 4 14 0'/%3E%3C/svg%3E")}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button[data-mode=visualize]{--db-mode-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 5 5-12 12-6 1 1-6L16 3zm-2 2 5 5M4 15l5 5'/%3E%3C/svg%3E")}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button[data-mode=present]{--db-mode-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s4-7 10-7 10 7 10 7-4 7-10 7S2 12 2 12zM12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3C/svg%3E")}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button:hover{color:var(--rb-text)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button.active{background:var(--rb-surface);color:var(--rb-text);box-shadow:var(--rb-shadow-1);border-bottom-color:transparent}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{position:absolute!important;top:22px;bottom:auto!important;width:auto!important;height:36px;padding:0;gap:4px;border:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;z-index:6}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{left:28px!important;right:auto!important}
 :root:not([dir=rtl]) body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{right:28px!important;left:auto!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>[data-toolbar-icon],:root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>details>summary{width:34px;height:36px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){top:calc(100% + 8px);bottom:auto}
 /* Save is labelled, and Publish and Export PDF sit beside it, as in the report designer. */
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>#save-dashboard{width:auto!important;min-width:0!important;padding:0 12px!important;gap:6px;border:1px solid transparent!important;flex-direction:row-reverse}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>#save-dashboard>.db-header-label{display:inline;font-size:13px;font-weight:500;color:inherit}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 12px;border:1px solid var(--rb-border);border-radius:8px;background:var(--rb-surface);color:var(--rb-text);font-size:13px;font-weight:600;white-space:nowrap}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command:hover{background:var(--rb-gray-100,#f1f4f6)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command svg{width:16px;height:16px;flex:none}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-tabs{right:0!important}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-tabs{left:0!important}
}
/* Below 1600px there is no room for the labels beside the centred switch: Save, Publish and Export PDF show their icons only (names stay as tooltips). */
@media (max-width:1599px){
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>#save-dashboard{width:34px!important;padding:0!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>#save-dashboard>.db-header-label,:root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command>span{display:none}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command{width:34px;padding:0;justify-content:center;border-color:transparent;background:transparent}
}
/* Field type icons in the Data step use the Design field tree's colours and clock (web/field-type-icons.js marks the type). */
#data-pane#data-pane [data-type-icon][data-type-icon]{display:inline-flex!important;align-items:center;justify-content:center;width:18px!important;flex:0 0 18px!important;font:400 15px/1 Arial,sans-serif!important;font-style:normal}
#data-pane [data-type-icon] svg{width:14px;height:14px;display:block}
#data-pane [data-type-icon=text]{color:#65a4b7!important}
#data-pane [data-type-icon=number]{color:#dd826f!important}
#data-pane [data-type-icon=date]{color:#aa8cba!important}
#data-pane [data-type-icon=boolean]{color:#659584!important}
/* Tablets (761px to 1100px), as the report header: name and switch on the first row, actions right-aligned on the second. */
@media (max-width:1100px){
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header{height:128px;min-height:128px;align-items:flex-start}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>a{margin-top:22px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading{width:calc(50% - 190px);min-height:55px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow{top:18px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{top:81px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){position:absolute!important;top:calc(100% + 8px)!important;bottom:auto!important;right:0!important;left:auto!important;max-height:calc(100dvh - 150px);overflow:auto}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){left:0!important;right:auto!important}
}
/* Phones (up to 760px), as the report header: name, then the switch, then the actions, each on its own row. */
@media (max-width:760px){
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header{height:172px;min-height:172px;padding:10px 16px!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header>.heading{width:auto;flex:1 1 auto}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow{top:73px;max-width:calc(100% - 24px)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workflow>button{padding:0 11px}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{top:124px;gap:2px;max-width:calc(100% - 32px)}
 :root:not([dir=rtl]) body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{right:16px!important}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions{left:16px!important}
 /* Publish and Export PDF stay in the More menu on phones. */
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions>.db-header-command{display:none}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){max-height:calc(100dvh - 190px);max-width:calc(100vw - 32px)}
 /* The actions left the bottom bar, so the canvas tabs take the bottom edge. */
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) #canvas-tabs{left:0!important;right:0!important;bottom:0!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.present) #dashboard-app{padding-bottom:52px!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.present) .db-workspace>.db-stage{height:calc(100dvh - 272px)!important}
}
/* The taller two-row header on small desktops: the workspace gives up the same height so the page does not scroll. */
@media (min-width:1001px) and (max-width:1100px){
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded) .db-workspace{height:calc(100dvh - 174px)!important}
}
/* Printing a dashboard (Export PDF): the whole canvas flows across pages instead of being cut to one screen,
   and authoring chrome (floating tool belt, header, switches, panels) stays off the paper.
   web/dashboard-print.js applies the same layout (body.db-printing) at paper width just before printing,
   so charts are redrawn at the size they will print. */
@media print{
 html:has(body.db-workspace-page),body.db-workspace-page,body.db-workspace-page #dashboard-app,body.db-workspace-page .db-workspace,body.db-workspace-page .db-workspace>.db-stage,body.db-workspace-page #dashboard-canvas{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.db-workspace-page #dashboard-app{display:block!important}
 body.db-workspace-page .db-workspace{display:block!important;flex:none!important;padding:0!important}
 body.db-workspace-page .db-workspace>.db-stage{position:static!important;display:block!important;flex:none!important;width:auto!important}
 body.db-workspace-page #dashboard-app{padding-bottom:0!important}
 body.db-workspace-page #filter-bar :is(#apply-filters,#reset-filters,[data-clear],[data-remove-filter],button[data-clear-filter]){display:none!important}
 :root body.db-workspace-page .db-stage:has(>.stage-tools)>#dashboard-canvas{flex:none!important;padding:10px!important;zoom:1!important}
 /* Chrome does not split a grid row that holds several cards, so for paper the same rows are laid out as wrapping
    lines: each card keeps its column span, and the gaps before and after it (set by dashboard-print.js). */
 :root body.db-workspace-page .db-stage>#dashboard-canvas{width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;align-content:flex-start!important;gap:var(--db-print-gap,16px)!important;box-sizing:border-box}
 body.db-workspace-page #dashboard-canvas>.db-visual{--db-span:3;flex:0 0 auto!important;box-sizing:border-box;width:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-span,var(--db-span)) - var(--db-print-gap,16px))!important;max-width:100%;margin-inline-start:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-offset,0))!important;margin-inline-end:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-end,0))!important}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-width=full]{--db-span:6}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-width=third]{--db-span:2}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="1"]{--db-span:1}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="2"]{--db-span:2}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="3"]{--db-span:3}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="4"]{--db-span:4}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="5"]{--db-span:5}
 body.db-workspace-page #dashboard-canvas>.db-visual[data-span="6"]{--db-span:6}
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt{position:static!important;display:block!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:6px 10px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>details{display:none!important}
 :root body.db-workspace-page .db-stage>.stage-tools.designer-toolbelt>h2:is(h2,.badge){position:static!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;overflow:visible!important;clip-path:none!important;white-space:normal!important;font-size:20px!important}
 body.db-workspace-page :is(.db-header,.db-workflow,.db-phone-panels,#canvas-tabs,.db-fields,.db-inspector,.ep-field-analysis,.designer-command-search,.db-design-drawer,.db-design-ruler,#add-filter,#portal-navigation,#portal-menu-toggle,.db-visual-tools,.db-layout-resize,.db-layout-grip,.db-multi-select,.db-chart-field-wells select){display:none!important}
 body.db-workspace-page #filter-bar:not(:has(.filter-chip)){display:none!important}
 body.db-workspace-page .db-visual{break-inside:avoid;page-break-inside:avoid}

 /* If a chart was not redrawn for the paper, it is scaled to its card, never cut. */
 /* Printed straight from the browser menu (no redraw): each chart is scaled to its card, never cut. */
 body.db-workspace-page:not(.db-printing) .db-visual div:has(>canvas){width:100%!important;max-width:100%!important;height:auto!important}
 body.db-workspace-page:not(.db-printing) .db-visual canvas{position:static!important;width:100%!important;max-width:100%!important;height:auto!important}
}
 html:has(body.db-workspace-page.db-printing),body.db-workspace-page.db-printing,body.db-workspace-page.db-printing #dashboard-app,body.db-workspace-page.db-printing .db-workspace,body.db-workspace-page.db-printing .db-workspace>.db-stage,body.db-workspace-page.db-printing #dashboard-canvas{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
 body.db-workspace-page.db-printing #dashboard-app{display:block!important}
 body.db-workspace-page.db-printing .db-workspace{display:block!important;flex:none!important;padding:0!important}
 body.db-workspace-page.db-printing .db-workspace>.db-stage{position:static!important;display:block!important;flex:none!important;width:auto!important}
 body.db-workspace-page.db-printing #dashboard-app{padding-bottom:0!important}
 body.db-workspace-page.db-printing #filter-bar :is(#apply-filters,#reset-filters,[data-clear],[data-remove-filter],button[data-clear-filter]){display:none!important}
 :root body.db-workspace-page.db-printing .db-stage:has(>.stage-tools)>#dashboard-canvas{flex:none!important;padding:10px!important;zoom:1!important}
 /* Chrome does not split a grid row that holds several cards, so for paper the same rows are laid out as wrapping
    lines: each card keeps its column span, and the gaps before and after it (set by dashboard-print.js). */
 :root body.db-workspace-page.db-printing .db-stage>#dashboard-canvas{width:auto!important;min-width:0!important;max-width:100%!important;margin:0!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;align-content:flex-start!important;gap:var(--db-print-gap,16px)!important;box-sizing:border-box}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual{--db-span:3;flex:0 0 auto!important;box-sizing:border-box;width:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-span,var(--db-span)) - var(--db-print-gap,16px))!important;max-width:100%;margin-inline-start:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-offset,0))!important;margin-inline-end:calc(((100% - 5*var(--db-print-gap,16px))/6 + var(--db-print-gap,16px))*var(--db-print-end,0))!important}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-width=full]{--db-span:6}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-width=third]{--db-span:2}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="1"]{--db-span:1}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="2"]{--db-span:2}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="3"]{--db-span:3}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="4"]{--db-span:4}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="5"]{--db-span:5}
 body.db-workspace-page.db-printing #dashboard-canvas>.db-visual[data-span="6"]{--db-span:6}
 :root body.db-workspace-page.db-printing .db-stage>.stage-tools.designer-toolbelt{position:static!important;display:block!important;width:auto!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:6px 10px 0!important;border:0!important;background:transparent!important;box-shadow:none!important}
 :root body.db-workspace-page.db-printing .db-stage>.stage-tools.designer-toolbelt>details{display:none!important}
 :root body.db-workspace-page.db-printing .db-stage>.stage-tools.designer-toolbelt>h2:is(h2,.badge){position:static!important;width:auto!important;max-width:none!important;height:auto!important;margin:0!important;overflow:visible!important;clip-path:none!important;white-space:normal!important;font-size:20px!important}
 body.db-workspace-page.db-printing :is(.db-header,.db-workflow,.db-phone-panels,#canvas-tabs,.db-fields,.db-inspector,.ep-field-analysis,.designer-command-search,.db-design-drawer,.db-design-ruler,#add-filter,#portal-navigation,#portal-menu-toggle,.db-visual-tools,.db-layout-resize,.db-layout-grip,.db-multi-select,.db-chart-field-wells select){display:none!important}
 body.db-workspace-page.db-printing #filter-bar:not(:has(.filter-chip)){display:none!important}
 body.db-workspace-page.db-printing .db-visual{break-inside:avoid;page-break-inside:avoid}

body.db-workspace-page.db-printing{padding:0!important}
body.db-workspace-page.db-printing #dashboard-app{width:var(--db-print-width,980px)!important;max-width:none!important;margin:0!important;padding:0!important}
/* The whole canvas on one page: scaled by dashboard-print.js (zoom), so no card is split or moved to a second page. */
@media print{body.db-workspace-page.db-printing #dashboard-app{zoom:var(--db-print-zoom,1)}body.db-workspace-page.db-printing #dashboard-canvas>.db-visual{break-inside:auto!important;page-break-inside:auto!important}}
/* Field tree with many datasets (reports and dashboards): one source heading, then short one-line dataset names. */
:root .shared-field-source{display:flex;align-items:center;gap:6px;margin:10px 4px 2px;padding:0 7px;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--rb-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .shared-field-source:first-child{margin-top:2px}
:root .shared-field-source small{flex:none;margin-inline-start:auto;font-size:11px;font-weight:500;letter-spacing:0;color:var(--rb-text-muted)}
:root .shared-field-dataset>summary{min-width:0}
:root .shared-field-dataset>summary .dataset-name{flex:1 1 auto;min-width:0;overflow:hidden}
:root .shared-field-dataset>summary .dataset-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .shared-field-dataset>summary .dataset-icon{flex:none}
:root .shared-field-dataset>summary .dataset-count{flex:none;min-width:18px;padding:0 5px;border-radius:999px;background:var(--rb-gray-100,#f1f4f6);color:var(--rb-text-muted);font-size:11px;line-height:16px;text-align:center}
:root .shared-field-dataset.in-source>summary{padding-inline-start:12px}
/* On phones the Fields panel lays items out in two columns; source headings and datasets take the full width. */
:root .db-fields .panel-body>:is(.shared-field-source,.shared-field-dataset){grid-column:1/-1}
/* Chart grammar panel (web/dashboard-encodings.js): one row per encoding with field chips, as in the report and
   analytics tools people know; theme colours, the same type colours as the Fields list. */
:root .db-encodings{display:grid;gap:6px;margin:0 0 10px}
:root .db-encoding{display:grid;gap:6px;padding:8px;border:1px solid var(--rb-border);border-radius:8px;background:var(--rb-surface);transition:border-color var(--rb-motion-fast,120ms),background var(--rb-motion-fast,120ms)}
:root .db-encoding:has(.db-encoding-chip){background:color-mix(in srgb,var(--rb-text) 3%,var(--rb-surface))}
:root .db-encoding.is-target{border-color:var(--rb-accent);border-style:dashed;background:color-mix(in srgb,var(--rb-accent) 8%,var(--rb-surface))}
:root .db-encoding-head{display:flex;align-items:center;gap:7px;min-width:0;color:var(--rb-text);font-size:12px;font-weight:500}
:root .db-encoding-head svg{width:16px;height:16px;flex:none;color:var(--rb-text-muted)}
:root .db-encoding-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .db-encoding-chips{display:flex;flex-wrap:wrap;gap:5px;min-width:0}
:root .db-encoding-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;min-height:28px;box-sizing:border-box;padding:2px 4px 2px 8px;border:1px solid var(--rb-border);border-radius:6px;background:var(--rb-surface);color:var(--rb-text);font-size:12px;cursor:grab}
:root .db-encoding-chip:active{cursor:grabbing}
:root .db-encoding-chip .field-type{flex:none;width:auto!important;font:400 14px/1 Arial,sans-serif!important;font-style:normal}
:root .db-encoding-chip[data-field-type=text] .field-type{color:#65a4b7!important}
:root .db-encoding-chip[data-field-type=number] .field-type{color:#dd826f!important}
:root .db-encoding-chip[data-field-type=date] .field-type{color:#aa8cba!important}
:root .db-encoding-chip[data-field-type=boolean] .field-type{color:#659584!important}
:root .db-encoding-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root .db-encoding-chip:has(.db-encoding-aggregate){flex:1 1 100%}
:root .db-encoding-chip:has(.db-encoding-aggregate) .db-encoding-name{flex:1 1 auto}
:root .db-encoding-aggregate{order:-1;flex:none;field-sizing:content;width:auto;max-width:84px;height:22px;min-height:0;padding:0 2px;border:0;border-radius:4px;background:color-mix(in srgb,var(--rb-accent) 10%,transparent);color:var(--rb-text);font-size:11px}
:root .db-encoding-remove{flex:none;width:20px;height:20px;min-height:0;padding:0!important;border:0!important;border-radius:4px;background:transparent!important;color:var(--rb-text-muted)!important;font-size:14px;line-height:1;cursor:pointer}
:root .db-encoding-remove:hover{background:color-mix(in srgb,var(--rb-text) 8%,transparent)!important;color:var(--rb-text)!important}
:root .db-encoding-add{min-width:0;max-width:100%;height:28px;min-height:0;padding:0 6px;border:1px dashed var(--rb-border);border-radius:6px;background:transparent;color:var(--rb-text-muted);font-size:12px}
:root .db-encoding:not(:has(.db-encoding-chip)) .db-encoding-add{flex:1}
:root .db-encoding:not(:has(.db-encoding-chip)){grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;padding:4px 6px 4px 8px}
:root .db-encoding:not(:has(.db-encoding-chip)) .db-encoding-add{height:26px}
:root .db-trellis{column-gap:6px;row-gap:6px;align-items:stretch}
:root .db-trellis-head{padding:0 4px;font-size:11px;font-weight:600;color:var(--rb-text-muted);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root .db-trellis-side{align-self:center;max-width:120px;padding:0 6px 0 0;font-size:11px;font-weight:600;color:var(--rb-text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:end}
:root .db-trellis .db-multiple-plot{min-width:0;border:1px solid color-mix(in srgb,var(--rb-border) 70%,transparent);border-radius:6px}
/* Analyze icon in the Data view (diagram cards and model explorer), same look as in the field lists. */
#data-pane .erd-field-row{position:relative}
#data-pane :is(.erd-field-row,#model-explorer-tree .field-row)>.db-field-analyze,#data-pane #model-explorer-tree .db-field-analyze-beside{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;padding:0!important;margin:0;border:0!important;border-radius:6px;background:transparent;color:var(--rb-text-muted);opacity:0;flex:none;cursor:pointer}
#data-pane :is(.erd-field-row,#model-explorer-tree .field-row)>.db-field-analyze svg,#data-pane #model-explorer-tree .db-field-analyze-beside svg{width:15px;height:15px;display:block}
#data-pane .erd-field-row>.db-field-analyze{position:absolute;top:50%;inset-inline-end:26px;transform:translateY(-50%)}
#data-pane #model-explorer-tree .explorer-group{position:relative}
#data-pane #model-explorer-tree .db-field-analyze-beside{position:absolute;inset-inline-end:4px}
#data-pane :is(.erd-field-row,#model-explorer-tree .field-row):is(:hover,:focus-within,.db-field-analyzing)>.db-field-analyze,
#data-pane #model-explorer-tree :is([data-analyze-button]:hover,[data-analyze-button]:focus,[data-analyze-button].db-field-analyzing)+.db-field-analyze-beside,
#data-pane #model-explorer-tree .db-field-analyze-beside:is(:hover,:focus-visible){opacity:1}
#data-pane .db-field-analyze:hover,#data-pane .db-field-analyzing>.db-field-analyze,#data-pane .db-field-analyzing+.db-field-analyze-beside{background:color-mix(in srgb,var(--rb-accent) 14%,transparent);color:var(--rb-accent)}
/* Present: the viewing tools sit in the same floating belt as Visualize; the row they came from takes no space. */
:root body.db-workspace-page.present .db-stage>.stage-tools.designer-toolbelt>.db-highlight-chip{margin-inline-start:6px}
/* Properties: the selected chart's name with its type underneath. */
:root body.db-workspace-page #inspector-panel .panel-title:has(.db-panel-chart-kind){flex-wrap:wrap;row-gap:0}
:root body.db-workspace-page #inspector-panel .panel-title h2.db-panel-chart-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto}
:root body.db-workspace-page #inspector-panel .panel-title .db-panel-chart-kind{order:3;flex-basis:100%;font-size:var(--rb-text-xs,12px);color:var(--rb-text-muted);font-weight:var(--rb-weight-medium,500)}
/* Present: the viewing tools are icons in the bottom bar, right of the page tabs (the slot the live presentation bar uses). */
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner{position:fixed;inset-block-end:0;inset-inline-end:0;inset-inline-start:auto;inset-block-start:auto;width:var(--db-dock-actions-width,306px)!important;max-width:none!important;height:var(--db-dock-height,46px)!important;min-height:var(--db-dock-height,46px)!important;box-sizing:border-box;margin:0!important;padding:0 8px!important;display:flex;align-items:center;justify-content:flex-end;gap:4px;z-index:20002;background:transparent!important;color:var(--db-view-ink,var(--rb-text));border:0!important;border-radius:0;box-shadow:none!important}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>:is(h2,small,.badge,p,[data-banner-adopted],.db-design-tools,.db-authoring-tools,.db-canvas-design-view){display:none!important}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>button{flex:0 0 auto;min-width:36px;height:36px;padding:0 8px;display:inline-flex;align-items:center;justify-content:center;gap:4px;border:0;border-radius:var(--rb-radius-md);background:transparent;color:inherit;cursor:pointer;font-size:var(--rb-text-xs)}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>button:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>button:focus-visible{outline:2px solid var(--rb-accent);outline-offset:2px}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>button>svg{width:19px;height:19px;flex-shrink:0}
:root body.db-workspace-page.present .db-stage>.stage-tools.db-present-banner>button:not(#alerts-badge):not(.db-highlight-chip)>:not(svg){display:none}
:root body.db-workspace-page.db-presenting .db-stage>.stage-tools.db-present-banner{display:none!important}
/* Report designer: the selected component's name (and a chart's type) under the inspector tabs. */
:root body #studio .gs-cmp-sidebar-right>.ep-selection-heading{display:grid;gap:1px;padding:8px 14px 6px;border-bottom:1px solid var(--rb-border)}
:root body #studio .gs-cmp-sidebar-right>.ep-selection-heading[hidden]{display:none}
:root body #studio .ep-selection-heading>strong{font-size:var(--rb-text-sm,13px);font-weight:var(--rb-weight-semibold,600);color:var(--rb-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:root body #studio .ep-selection-heading>small{font-size:var(--rb-text-xs,12px);color:var(--rb-text-muted)}
/* Visualize: the workspace fills the space between the header and the page-tab bar, and the Fields and Properties
   panels run its full height (no strip above them, none below). Phones keep their one-panel layout. */
@media (min-width:721px){
 :root body.db-workspace-page:not(.present):not(.db-presenting):not(.db-mode-data) #dashboard-app{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden;box-sizing:border-box;padding-bottom:var(--db-dock-height,46px)}
 :root body.db-workspace-page:not(.present):not(.db-presenting):not(.db-mode-data) #dashboard-app>:is(.db-header,.db-workflow){flex:0 0 auto}
 :root body.db-workspace-page:not(.present):not(.db-presenting):not(.db-mode-data) .db-workspace{flex:1 1 0;height:auto!important;min-height:0!important;row-gap:0!important}
 :root body.db-workspace-page:not(.present):not(.db-presenting):not(.db-mode-data) .db-workspace>.db-panel{position:relative!important;top:auto!important;margin-block:0!important;max-height:none!important;height:auto!important;align-self:stretch!important;overflow:auto}
}
/* Dashboards wider than phones: the document actions (Undo, Redo, Save, Publish, Export PDF, Start presentation,
   Refresh, More, View) are icons in the bottom bar's right end; in Present the viewing tools sit just before them,
   and the page tabs take the rest. The header keeps the name and the Data / Visualize / Present switch.
   dashboard-header.js measures the dock and the tools (--db-dock-actions-width, --db-dock-tools-width). */
@media (min-width:761px){
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions{position:fixed!important;top:auto!important;bottom:0!important;width:auto!important;height:var(--db-dock-height,46px)!important;padding:0 8px!important;gap:2px;display:flex!important;align-items:center;box-sizing:border-box;background:var(--db-view-surface,var(--rb-surface))!important;border:0!important;border-top:1px solid var(--db-view-border,var(--rb-border))!important;z-index:20003}
 :root:not([dir=rtl]) body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions{right:0!important;left:auto!important}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions{left:0!important;right:auto!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions>#save-dashboard{width:34px!important;padding:0!important;border-color:transparent!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions>#save-dashboard>.db-header-label,
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions>.db-header-command>span{display:none!important}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions>.db-header-command{display:inline-flex!important;width:34px;height:36px;padding:0;justify-content:center;border-color:transparent;background:transparent}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions>.db-header-command:hover{background:color-mix(in srgb,currentColor 10%,transparent)}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){position:absolute!important;top:auto!important;bottom:calc(100% + 8px)!important;max-height:calc(100dvh - 140px);overflow:auto}
 :root:not([dir=rtl]) body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){right:0!important;left:auto!important}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header .actions :is(.db-toolbar-menu,.db-view-popover){left:0!important;right:auto!important}
 /* The header needs only one row now, on tablets too. */
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header{height:80px;min-height:80px;align-items:center}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-header>a{margin-top:0}
 :root body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) .db-workflow{top:21px}
 /* Page tabs end where the tools and actions begin. */
 :root:not([dir=rtl]) body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) #canvas-tabs{right:calc(var(--db-dock-actions-width,0px) + var(--db-dock-tools-width,0px))!important;left:var(--ep-rail,68px)!important}
 :root[dir=rtl] body.db-workspace-page:not(.db-presenting):not(.db-embedded):not(.db-mode-data) #canvas-tabs{left:calc(var(--db-dock-actions-width,0px) + var(--db-dock-tools-width,0px))!important}
 /* Present: the viewing tools take their own width just before the actions. */
 :root body.db-workspace-page.present:not(.db-presenting) .db-stage>.stage-tools.db-present-banner{width:auto!important;background:var(--db-view-surface,var(--rb-surface))!important;border-top:1px solid var(--db-view-border,var(--rb-border))!important;padding:0 4px 0 8px!important}
 :root:not([dir=rtl]) body.db-workspace-page.present:not(.db-presenting) .db-stage>.stage-tools.db-present-banner{right:var(--db-dock-actions-width,0px)!important;left:auto!important}
 :root[dir=rtl] body.db-workspace-page.present:not(.db-presenting) .db-stage>.stage-tools.db-present-banner{left:var(--db-dock-actions-width,0px)!important;right:auto!important}
}
/* Present: tool panels (Present tools) open in the page, not below the bottom bar they are launched from. */
:root body.db-workspace-page:has(.stage-tools.db-present-banner) .db-design-drawer{top:108px!important;bottom:calc(var(--db-dock-height,46px) + 12px)!important;max-height:none;overflow:auto}
/* Tool belt menu buttons draw one symbol: the small arrow beside each icon is not shown (reports and dashboards). */
:root body .design-tool-group>summary>.design-chevron{display:none!important}
/* A field with a dictionary description: a dotted underline tells the author a hint is waiting on hover. */
body .shared-data-field[data-described]>span,body .field-pick[data-described]>span:last-child{text-decoration:underline dotted;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent);text-underline-offset:3px}
