/* Cost-card launch workspace: pricing, market commitment and registration stay distinct. */
.cr-workspace{color:var(--ink-900);min-width:0;--cr-accent:var(--brand-600);}
.cr-workspace h2,.cr-workspace h3,.cr-workspace p{margin-top:0;}
.cr-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:4px 0 22px;}
.cr-header h2{font-size:27px;line-height:1.25;margin:8px 0;overflow-wrap:anywhere;}
.cr-header p,.cr-hint{color:var(--ink-600);font-size:12px;line-height:1.6;}
.cr-eyebrow{display:block;letter-spacing:.1em;font-size:11px;font-weight:700;color:var(--cr-accent);}
.cr-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:18px;}
.cr-next-step{padding:14px 16px;background:var(--ui-surface-alt);border:1px solid var(--ui-border);border-left:4px solid var(--ui-accent);border-radius:10px;margin-bottom:16px;color:var(--ui-text)}
.cr-next-step small{color:var(--ui-muted);font-size:11px;text-transform:uppercase}.cr-next-step h3{font-size:17px;margin:5px 0}.cr-next-step p{margin:0;line-height:1.5}
.cr-status-disclosure{margin:12px 0}.cr-status-disclosure>summary,.cr-help>summary{cursor:pointer;font-weight:600;min-height:36px;display:flex;align-items:center;gap:8px}.cr-status-disclosure>summary:before,.cr-help>summary:before{content:'▸'}.cr-status-disclosure[open]>summary:before,.cr-help[open]>summary:before{content:'▾'}
.cr-layout>aside,.cr-main{min-width:0;}
.cr-product-link{font:inherit;font-weight:700;line-height:1.5;color:var(--brand-700);background:transparent;border:0;padding:5px 0;text-align:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer;}
#cr-table .table-wrap table{min-width:1150px;}
.cr-folder-nav,.cr-help,.cr-pricing,.cr-editor,.cr-decision,.cr-history,.cr-note{background:var(--white);border:1px solid var(--ink-200);border-radius:12px;padding:16px;}
.cr-folder-nav summary{font-weight:700;cursor:pointer;display:flex;justify-content:space-between;gap:12px;}
.cr-folder-nav nav{display:grid;gap:6px;margin-top:14px;}
.cr-folder-nav nav>div{display:flex;align-items:center;min-width:0;}
.cr-folder-nav nav button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;flex:1;text-align:left;padding:10px;border:1px solid transparent;border-radius:7px;color:var(--ink-800);background:transparent;font:inherit;cursor:pointer;}
.cr-folder-nav nav button span{overflow-wrap:anywhere;}
.cr-folder-nav nav button[aria-current="page"]{background:var(--brand-50);border-color:var(--brand-300);color:var(--brand-700);font-weight:700;}
.cr-folder-nav nav .cr-folder-edit{flex:0;padding:7px;font-size:11px;}
.cr-help{margin-top:16px;color:var(--ink-600);font-size:12px;line-height:1.7;}
.cr-help ol{padding-left:20px;margin-bottom:0;}
.cr-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px;}
.cr-context h3{font-size:19px;margin:0;overflow-wrap:anywhere;}
.cr-context>span{font-size:12px;color:var(--ink-500);white-space:nowrap;}
.cr-collections{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;}
.cr-collections [aria-pressed="true"]{background:var(--brand-600);border-color:var(--brand-600);color:var(--white);}
.cr-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;margin-bottom:14px;}
.cr-filters .field{flex:1 1 145px;min-width:0;margin:0;}
.cr-filters .search-box{flex:2 1 200px;}
.cr-filters .field>span,.cr-review-context span{display:block;font-size:11px;font-weight:600;color:var(--ink-600);margin-bottom:5px;}
.cr-filters input,.cr-filters select{width:100%;min-width:0;}
.cr-status-filter{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 16px;}
.cr-status-filter button{font:inherit;font-size:11px;cursor:pointer;display:flex;gap:7px;align-items:center;border:1px solid var(--ink-200);border-radius:20px;background:var(--white);color:var(--ink-700);padding:8px 11px;}
.cr-status-filter button[aria-pressed="true"]{border-color:var(--brand-600);background:var(--brand-50);color:var(--brand-700);}
.cr-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:12px;margin:16px 0;}
.cr-metrics>div{min-width:0;background:var(--white);border:1px solid var(--ink-200);border-top:3px solid var(--brand-500);border-radius:10px;padding:14px;}
.cr-metrics span{display:block;color:var(--ink-600);font-size:11px;margin-bottom:9px;}
.cr-metrics strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.cr-state-summary{margin:16px 0;}
.cr-state-summary>summary,.cr-pricing>summary,.cr-history>summary{cursor:pointer;font-weight:700;font-size:13px;}
.cr-state-summary>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px;}
.cr-state-tile{text-align:left;display:grid;gap:6px;border:1px solid var(--ink-200);border-radius:9px;background:var(--white);color:var(--ink-800);padding:12px;font:inherit;cursor:pointer;}
.cr-state-tile span,.cr-state-tile small{font-size:11px;color:var(--ink-600);}
.cr-badge{display:inline-flex;align-items:center;border:1px solid currentColor;border-radius:5px;padding:4px 7px;font-size:11px;font-weight:600;white-space:normal;}
.cr-unassigned,.cr-draft,.cr-on_hold{color:var(--ink-600);background:var(--ink-50);}
.cr-awaiting{color:var(--brand-700);background:var(--brand-50);}
.cr-confirmed{color:var(--success-700);background:var(--success-100);}
.cr-changes_requested,.cr-stale,.cr-overdue{color:var(--danger-700);}
.cr-review-context{display:flex;gap:24px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--ink-200);padding-bottom:16px;}
.cr-review-context>div{flex:1;min-width:140px;}
.cr-review-context strong{font-size:13px;}
.cr-notice{padding:14px;border:1px solid var(--warn-600);background:var(--warn-100);border-radius:9px;line-height:1.6;margin-top:16px;}
.cr-note{margin-top:16px;}.cr-note p{margin:8px 0 0;white-space:pre-wrap;}
.cr-pricing{margin:16px 0;}.cr-pricing>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:16px 0;}
.cr-pricing>div span{display:block;font-size:11px;color:var(--ink-600);margin-bottom:6px;}
.cr-pricing p{font-size:12px;color:var(--ink-600);line-height:1.6;}
.cr-editor-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;}
.cr-editor-head h3{margin-bottom:6px;font-size:17px;}.cr-editor-head p{font-size:12px;color:var(--ink-600);}
.cr-editor-tools{display:flex;gap:8px;flex-wrap:wrap;}
.cr-month-navigation{display:flex;gap:8px;align-items:flex-end;margin:12px 0;}
.cr-month-navigation label span{display:block;font-size:11px;margin-bottom:5px;color:var(--ink-600);}
.cr-month-scroll,.cr-history-scroll{overflow:auto;max-width:100%;}
.cr-month-table{border-collapse:separate;border-spacing:0;width:100%;min-width:820px;font-size:12px;border:1px solid var(--ink-200);border-radius:8px;overflow:hidden;}
.cr-month-table th,.cr-month-table td{padding:9px;border-right:1px solid var(--ink-200);border-bottom:1px solid var(--ink-200);text-align:center;vertical-align:middle;}
.cr-month-table thead th{background:var(--brand-700);color:#fff;font-weight:600;}
.cr-month-table tbody tr:nth-child(even){background:var(--ink-50);}
.cr-month-table tbody th{white-space:nowrap;font-weight:600;}
.cr-month-table td:has(input){width:115px;}.cr-month-table input{width:100%;min-width:80px;text-align:right;font-variant-numeric:tabular-nums;padding:8px;background:var(--white);color:var(--ink-900);border:1px solid var(--ink-300);border-radius:5px;}
.cr-month-table input:disabled{opacity:1;background:transparent;border-color:transparent;color:var(--ink-800);}
.cr-decision{margin:16px 0;}.cr-decision textarea{width:100%;resize:vertical;}.cr-decision-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;}
.cr-decision-footer>div{display:flex;flex-wrap:wrap;gap:8px;}.cr-decision-footer>span{font-size:11px;color:var(--ink-600);}
#cr-detail-error,#cr-plan-error,#cr-assignment-error{color:var(--danger-700);line-height:1.5;white-space:pre-wrap;}
.cr-history article{padding:16px 0;border-bottom:1px solid var(--ink-200);display:grid;gap:6px;}.cr-history article>span,.cr-history article>small{color:var(--ink-600);font-size:11px;}.cr-history article p{white-space:pre-wrap;margin:0;}
.cr-empty{text-align:center;padding:50px 20px;background:var(--white);border:1px solid var(--ink-200);border-radius:12px;}.cr-empty p{margin:12px 0;}
.cr-main .data-table small{display:block;margin-top:5px;font-size:11px;}.cr-inline-folder{margin:12px 0;}.cr-inline-folder summary{cursor:pointer;margin-bottom:10px;}
/* Report Studio and Library: configuration beside the result, with a quiet data canvas. */
.report-hub,.report-studio{--report-accent:var(--brand-600);--report-soft:var(--brand-50);color:var(--ink-900);}
.report-hub [hidden],.report-studio [hidden]{display:none!important;}
.hub-header{display:flex;align-items:center;justify-content:space-between;gap:30px;padding:12px 0 32px;}
.hub-header h2{font-size:clamp(27px,2.6vw,40px);line-height:1.18;letter-spacing:-.045em;max-width:660px;margin:10px 0 14px;font-weight:600;}
.hub-header p{max-width:660px;color:var(--ink-600);line-height:1.7;margin:0;}
.hub-header>.btn{flex-shrink:0;}
.hub-section-label{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;}
.hub-section-label h3{font-size:17px;letter-spacing:-.02em;margin:0;}
.hub-section-label>span{font-size:12px;color:var(--ink-500);}
.hub-template-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.hub-template{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:9px;background:var(--white);border:1px solid var(--ink-200);border-radius:12px;padding:20px;color:var(--ink-900);cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s;}
.hub-template:hover{border-color:var(--report-accent);box-shadow:0 4px 14px #00000008;}
.hub-template:first-child{background:#1d365a;border-color:#1d365a;color:#fff;}
.hub-template-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:8px;}
.hub-template-icon{font-size:27px;line-height:1;}
.hub-template small{text-transform:uppercase;font-size:11px;font-weight:600;letter-spacing:.09em;color:var(--ink-500);}
.hub-template strong{font-size:16px;line-height:1.35;letter-spacing:-.02em;}
.hub-template>span:last-child{font-size:12px;color:var(--ink-600);line-height:1.6;}
.hub-template:first-child small,.hub-template:first-child>span:last-child{color:#c3d3e9;}
.hub-saved{margin-top:36px;}
.hub-count{font-size:11px;padding:3px 7px;margin-left:8px;border-radius:6px;background:var(--ink-100);color:var(--ink-600);vertical-align:middle;}
.hub-tools{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ink-200);gap:16px;}
.hub-collections,.studio-tabs{display:flex;gap:4px;}
.hub-collections button,.studio-tabs button{background:none;border:0;border-bottom:2px solid transparent;color:var(--ink-500);padding:12px 14px;cursor:pointer;font:inherit;font-size:12px;font-weight:600;}
.hub-collections button[aria-selected=true],.studio-tabs button[aria-selected=true]{border-bottom-color:var(--report-accent);color:var(--brand-text);}
.hub-display{display:flex;gap:3px;}.hub-display [aria-pressed=true]{background:var(--ink-100);}
.hub-filters{display:flex;align-items:end;gap:14px;padding:18px 0 4px;flex-wrap:wrap;}
.hub-filters .field{margin:0;flex:0 1 180px;}.hub-filters label{font-size:11px;color:var(--ink-500);}
.hub-search{flex:1 1 220px;}.hub-search input{width:100%;padding:11px 14px;background:var(--white);border:1px solid var(--ink-200);border-radius:7px;color:var(--ink-900);font:inherit;font-size:13px;}
.hub-result-count{font-size:11px;color:var(--ink-500);margin:14px 0 10px;}
.hub-report-list{border:1px solid var(--ink-200);border-radius:12px;overflow:hidden;background:var(--white);}
.hub-report{display:flex;align-items:center;gap:18px;padding:20px;border-bottom:1px solid var(--ink-200);}.hub-report:last-child{border-bottom:0;}
.hub-report:hover{background:var(--ink-50);}.hub-report-glyph{width:42px;height:48px;display:grid;place-items:center;border:1px solid var(--ink-200);border-radius:8px;background:var(--ink-50);font-size:25px;color:var(--brand-text);flex-shrink:0;}
.hub-report-main{flex:1;min-width:0;}.hub-report-title{padding:0;border:0;background:none;font:inherit;font-size:14px;font-weight:600;letter-spacing:-.01em;color:var(--ink-900);cursor:pointer;text-align:left;overflow-wrap:anywhere;}.hub-report-title:hover{color:var(--brand-text);text-decoration:underline;}
.hub-report-main p{color:var(--ink-500);font-size:12px;margin:6px 0 9px;line-height:1.5;overflow-wrap:anywhere;}
.hub-report-tags{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px;color:var(--ink-500);}.report-source{padding:4px 7px;background:var(--report-soft);color:var(--brand-text);border-radius:5px;font-weight:600;}
.hub-report-meta{display:flex;flex-direction:column;gap:7px;color:var(--ink-500);font-size:11px;min-width:130px;}.hub-report-meta time{font-size:11px;}
.hub-report-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}.hub-star{font-size:23px;background:none;border:0;color:var(--ink-400);cursor:pointer;padding:4px;}.hub-star[aria-pressed=true]{color:#a66a04;}
.hub-delete{font-size:11px!important;color:var(--ink-500);}
.hub-footnote{font-size:11px;color:var(--ink-500);margin-top:14px;}
.hub-empty{text-align:center;padding:44px 20px;}.hub-empty>span{font-size:34px;color:var(--ink-400);}.hub-empty p{color:var(--ink-500);font-size:13px;}
.hub-report-list.is-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:16px;border:0;background:none;overflow:visible;}.is-grid .hub-report{flex-wrap:wrap;align-items:flex-start;background:var(--white);border:1px solid var(--ink-200);border-radius:10px;}.is-grid .hub-report-main{flex-basis:calc(100% - 60px);}.is-grid .hub-report-meta{width:100%;margin-top:auto;}.is-grid .hub-report-actions{width:100%;border-top:1px solid var(--ink-200);padding-top:12px;}
.studio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:2px 0 20px;}.studio-heading h2{font-size:24px;letter-spacing:-.035em;line-height:1.3;margin:6px 0;overflow-wrap:anywhere;}.studio-status{font-size:11px;color:var(--ink-500);}.studio-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}.studio-actions .btn{font-size:12px;}
.studio-context{display:flex;gap:20px;flex-wrap:wrap;align-items:center;padding:12px 0;border-top:1px solid var(--ink-200);font-size:11px;color:var(--ink-500);margin-bottom:12px;}.studio-context>span:last-child{margin-left:auto;}.studio-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--report-accent);margin-right:6px;}
.studio-workbench{display:grid;grid-template-columns:300px minmax(0,1fr);gap:20px;align-items:start;}
.studio-inspector{background:var(--white);border:1px solid var(--ink-200);border-radius:12px;overflow:auto;max-height:calc(100vh - 235px);position:sticky;top:12px;min-width:0;}
.studio-inspector-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px 2px;font-size:12px;}.studio-inspector>.studio-tabs{padding:0 12px;border-bottom:1px solid var(--ink-200);position:sticky;top:0;background:var(--white);z-index:3;}
.report-studio #pivot-dropzones-panel{padding:12px;}.report-studio .pivot-zones-grid{display:flex;flex-direction:column;gap:10px;}
.report-studio .pivot-dropzone{border:1px solid var(--ink-200);border-radius:8px;background:var(--white);padding:11px;min-height:0;}.report-studio .pivot-dropzone>p{font-size:11px!important;line-height:1.5;}.studio-zone-tools{display:flex;align-items:center;gap:5px;color:var(--ink-500);}.studio-zone-tools small{font-size:11px;}
.report-studio .pivot-zone-item{background:var(--ink-50);border-radius:5px;font-size:11px;padding:7px;gap:5px;}.report-studio .pivot-zone-item>span{font-size:11px;}.report-studio .pivot-zone-item .ss-chevron{flex:0 0 7px;}.report-studio .pivot-zone-item .ss-trigger-label{min-width:0;text-align:left;}.report-studio .pivot-chip-grip{flex:0 0 8px!important;font-size:11px!important;}.report-studio .pivot-sort-row{flex-wrap:wrap;}.report-studio .pivot-sort-row .ss-wrap{flex:1 1 160px;min-width:0;}.report-studio .pivot-zone-items>.muted{font-size:11px!important;}
.report-studio #pivot-fields-col{position:static;max-height:none;min-width:0;overflow:visible;}.report-studio #pivot-fields-col>.card{border:0;box-shadow:none;border-radius:0;padding:14px;}.report-studio .pivot-chip{flex-wrap:wrap;padding:8px;gap:6px;}.report-studio .pivot-chip-label{font-size:11px;}.report-studio .pivot-chip-actions{display:flex;gap:3px;flex-wrap:wrap;margin-left:12px;}.report-studio .pivot-chip-actions .btn{font-size:11px;padding:4px 5px;}.report-studio #pivot-field-search{width:100%;}.report-studio #pivot-source{width:100%;}.report-studio .sel-row{gap:5px;}.report-studio .sel-row>span{font-size:11px!important;}
.studio-canvas{background:var(--white);border:1px solid var(--ink-200);border-radius:12px;min-width:0;min-height:640px;padding:24px;}.studio-result-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:22px;}.studio-result-heading h3{font-size:19px;margin:0;letter-spacing:-.025em;}.studio-updated{font-size:11px;color:var(--ink-500);text-align:right;}
.studio-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));border:1px solid var(--ink-200);border-radius:9px;margin-bottom:24px;overflow:hidden;}.studio-metric{padding:18px;border-right:1px solid var(--ink-200);display:flex;flex-direction:column;gap:8px;min-width:0;}.studio-metric:last-child{border:0;}.studio-metric>span{font-size:11px;color:var(--ink-600);line-height:1.5;}.studio-metric strong{font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:-.035em;overflow-wrap:anywhere;}.studio-metric small{font-size:11px;color:var(--ink-500);}
.studio-viewbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--ink-200);margin-bottom:18px;gap:10px;}.studio-export{display:flex;gap:6px;}.studio-data-note{font-size:11px;color:var(--ink-500);margin:16px 0 0;line-height:1.6;}.report-studio #pivot-table-wrap{overflow:auto;max-height:65vh;}.report-studio .pivot-table{font-size:12px;}
.studio-start{padding:30px 6px;}.studio-start>h2{font-size:28px;line-height:1.2;max-width:520px;margin:12px 0;letter-spacing:-.04em;}.studio-start>p{color:var(--ink-500);font-size:13px;line-height:1.7;max-width:490px;}.studio-question-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:28px 0;}.studio-question{display:flex;align-items:flex-start;gap:13px;padding:20px;text-align:left;background:var(--white);border:1px solid var(--ink-200);border-radius:10px;color:var(--ink-900);font:inherit;cursor:pointer;}.studio-question:hover{border-color:var(--report-accent);background:var(--report-soft);}.studio-question-icon{font-size:23px;color:var(--brand-text);}.studio-question>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:7px;}.studio-question small{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink-500);}.studio-question strong{font-size:14px;line-height:1.4;}.studio-question>span:nth-child(2)>span{font-size:11px;color:var(--ink-500);line-height:1.6;}.studio-question>b{font-size:14px;color:var(--ink-400);font-weight:400;}.studio-start-footer{display:flex;align-items:center;gap:16px;flex-wrap:wrap;font-size:12px;color:var(--ink-500);}.studio-guide{display:flex;gap:25px;flex-wrap:wrap;border-top:1px solid var(--ink-200);margin-top:35px;padding-top:23px;font-size:11px;color:var(--ink-500);}.studio-guide b{color:var(--brand-text);margin-right:7px;}
.studio-loading,.studio-empty{text-align:center;padding:100px 25px;}.studio-loading .spinner{margin:0 auto 24px;}.studio-loading p,.studio-empty p{font-size:13px;line-height:1.7;color:var(--ink-500);}.studio-empty-icon{font-size:30px;color:var(--brand-text);}
.studio-chart-controls{display:flex;align-items:start;gap:18px;justify-content:space-between;margin-bottom:25px;}.studio-chart-controls h4{margin:4px 0 8px;font-size:15px;}.studio-chart-controls p{font-size:11px;color:var(--ink-500);max-width:370px;line-height:1.6;}.studio-chart-controls .field{flex:0 1 240px;min-width:0;}.studio-chart-controls label{font-size:11px;}.studio-bars{display:flex;flex-direction:column;gap:19px;}.studio-bar-row{display:grid;grid-template-columns:minmax(80px,130px) minmax(0,1fr) minmax(90px,120px);align-items:center;gap:16px;font-size:11px;}.studio-bar-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-600);}.studio-bar-row strong{text-align:right;font-size:11px;font-weight:600;font-variant-numeric:tabular-nums;}.studio-bar-track{height:22px;background:var(--ink-50);border-radius:3px;}.studio-bar{height:100%;background:var(--report-accent);border-radius:3px;}.studio-bar.negative{background:#a55c50;}
@media(max-width:1250px){.hub-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.hub-report{gap:12px;padding:16px;}.hub-report{flex-wrap:wrap;}.hub-report-meta{flex:1 1 100%;margin-left:42px;}.studio-workbench{grid-template-columns:270px minmax(0,1fr);gap:14px;}.studio-canvas{padding:18px;}.studio-question-grid{grid-template-columns:1fr;}.studio-toolbar{align-items:flex-start;}.studio-actions{justify-content:flex-end;max-width:360px;}}
@media(max-width:950px){.studio-workbench{grid-template-columns:240px minmax(0,1fr);}.studio-toolbar{flex-direction:column;gap:14px;}.studio-actions{max-width:none;justify-content:flex-start;}.studio-inspector{max-height:calc(100vh - 250px);}.studio-context>span:last-child{display:none;}.studio-canvas{padding:16px;}.studio-metrics{grid-template-columns:1fr;}.studio-metric{border:0;border-bottom:1px solid var(--ink-200);padding:14px;}.studio-result-heading{align-items:flex-start;flex-direction:column;gap:8px;}.studio-chart-controls{flex-direction:column;}.studio-chart-controls .field{flex-basis:auto;width:100%;}.studio-bar-row{grid-template-columns:80px minmax(0,1fr) 90px;gap:8px;}.hub-header{align-items:flex-start;flex-direction:column;gap:18px;}}
@media(max-width:700px){.studio-workbench{grid-template-columns:1fr;}.studio-inspector{position:static;max-height:360px;}.studio-question-grid{grid-template-columns:1fr;}.studio-metrics{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));}.studio-canvas{min-height:480px;}.hub-template-grid{grid-template-columns:1fr;}.hub-template{padding:16px;}.hub-template-top{margin-bottom:0;}.hub-report{flex-wrap:wrap;}.hub-report-main{flex-basis:calc(100% - 60px);}.hub-report-actions{margin-left:54px;}.hub-report-actions .hub-delete{display:inline-flex;}.hub-tools{flex-wrap:wrap;gap:5px;}.hub-collections button{padding:10px;font-size:11px;}.hub-filters .field{flex:1 1 120px;}.hub-section-label>span{display:none;}.hub-report-list.is-grid{grid-template-columns:1fr;}.studio-start{padding:15px 0;}.studio-start>h2{font-size:24px;}}
.report-studio .pivot-filter-value,.report-studio .pivot-field-search{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid var(--ink-200);border-radius:6px;background:var(--white);color:var(--ink-900);font:inherit;font-size:12px;}
/* Compact worksheet: keep fields and all placement areas visible together. */
.excel-studio{border:1px solid var(--ink-200);background:var(--white);border-radius:5px;overflow:hidden;}
.excel-studio .studio-toolbar{padding:8px 10px;margin:0;gap:8px;flex-direction:row;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--ink-200);}
.excel-studio .studio-heading{display:flex;align-items:center;gap:12px;flex-wrap:wrap;}.excel-studio .studio-heading h2{font-size:16px;margin:0;letter-spacing:0;}.excel-studio .studio-status{font-size:11px;}
.excel-studio .studio-actions{max-width:none;gap:4px;margin-left:auto;}.excel-studio .btn{font-size:11px;padding:5px 8px;min-height:27px;}
.excel-studio .studio-context{padding:5px 10px;margin:0;font-size:11px;gap:15px;border:0;background:var(--ink-50);}
.excel-studio .studio-workbench{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0;align-items:stretch;min-height:570px;height:calc(100vh - 245px);}
.excel-studio .studio-inspector{grid-column:2;grid-row:1;border:0;border-left:1px solid var(--ink-200);border-radius:0;position:static;max-height:none;display:flex;flex-direction:column;overflow:hidden;}
.excel-studio .studio-inspector-head{padding:7px 10px;flex-shrink:0;font-size:12px;}
.excel-studio #pivot-fields-col{padding:0 8px;overflow:auto;min-height:125px;flex:1 1 42%;border-bottom:1px solid var(--ink-200);}
.excel-studio #pivot-fields-col .card-pad{padding:6px 0;}.excel-studio #pivot-fields-col .card-pad>label{display:inline;font-size:11px;}.excel-studio #pivot-fields-col .card-pad>select{margin:0 0 5px;}.excel-studio #pivot-calc-hint{display:none;}
.excel-studio .pivot-chip{display:flex;flex-direction:row;align-items:center;gap:5px;padding:3px 1px;min-height:25px;border:0;border-radius:0;flex-wrap:nowrap;font-size:11px;cursor:grab;}.excel-studio .pivot-chip-label{flex:1;min-width:0;}.excel-studio .pivot-chip input{width:13px;height:13px;margin:0;accent-color:var(--report-accent);}.excel-studio .pivot-chip-actions{display:none;gap:0;}.excel-studio .pivot-chip:hover .pivot-chip-actions,.excel-studio .pivot-chip:focus-within .pivot-chip-actions{display:flex;}.excel-studio .pivot-chip-actions button{padding:2px;min-height:20px;font-size:11px;}.excel-studio .pivot-field-list{gap:0;}.excel-studio #pivot-field-search{padding:5px 7px;margin:3px 0!important;}.excel-studio #pivot-dim-heading,.excel-studio #pivot-measure-heading{margin:6px 0 3px!important;font-size:11px;font-weight:600;}
.excel-area-caption{font-size:11px;padding:6px 8px;color:var(--ink-500);flex-shrink:0;}.excel-studio #pivot-dropzones-panel{padding:0 6px 6px;flex:1 1 58%;min-height:235px;overflow:auto;}
.excel-studio .pivot-zones-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px;}.excel-studio .pivot-dropzone{border:1px solid var(--ink-200);border-radius:2px;padding:5px;min-height:90px;}.excel-studio .pivot-dropzone[data-zone=filters]{order:0;}.excel-studio .pivot-dropzone[data-zone=columns]{order:1;}.excel-studio .pivot-dropzone[data-zone=rows]{order:2;}.excel-studio .pivot-dropzone[data-zone=values]{order:3;}.excel-studio .pivot-dropzone>p{display:none;}.excel-studio .pivot-dropzone b{font-size:11px;}.excel-studio .studio-zone-tools small{font-size:11px;}.excel-studio .pivot-zone-items{gap:3px;}.excel-studio .pivot-zone-items>.muted{font-size:11px;}.excel-studio .pivot-zone-item{position:relative;display:flex;align-items:center;gap:3px!important;padding:4px!important;font-size:11px;background:var(--ink-50);border:1px solid var(--ink-200);border-radius:2px;}.excel-studio .pivot-zone-item>.pivot-entry-label{flex:1;min-width:0;}.excel-studio .pivot-zone-item .btn{padding:0 3px;min-height:18px;font-size:11px;}.excel-studio .pivot-zone-item .pivot-chip-grip{flex:0 0 5px;}.excel-studio .pivot-filter-value{padding:3px;margin-top:3px!important;font-size:11px;}.excel-studio .pivot-sort-row{display:none;}
.excel-field-settings{display:contents;}.excel-field-settings summary{cursor:pointer;list-style:none;font-size:12px;padding:0 2px;}.excel-field-settings>div{flex:1 0 100%;padding-top:5px;}.excel-studio .pivot-customgroup-select{font-size:11px;min-width:0;}.excel-studio #pivot-dropzones-panel>.flex-between{margin-top:8px!important;}.excel-studio #pivot-dropzones-panel>.mt-8{margin-top:3px!important;}.excel-studio .sel-row{font-size:11px;padding:3px;}.excel-studio .sel-row .text-sm{font-size:11px;}
.excel-studio .studio-canvas{grid-row:1;grid-column:1;border:0;border-radius:0;padding:0;min-height:0;overflow:auto;background:var(--white);}.excel-studio .studio-result-heading{padding:6px 9px;display:flex;flex-direction:row;gap:8px;}.excel-studio .studio-result-heading h3{font-size:12px;margin:0;}.excel-studio .studio-updated{font-size:11px;}.excel-studio .studio-viewbar{margin:0;padding:0 7px;border-block:1px solid var(--ink-200);gap:5px;flex-wrap:wrap;}.excel-studio .studio-tabs button{padding:7px;font-size:11px;}.excel-studio #pivot-table-wrap{overflow:auto;padding:0;}.excel-studio #pivot-table-wrap table{font-size:11px;border-collapse:collapse;}.excel-studio #pivot-table-wrap th,.excel-studio #pivot-table-wrap td{padding:6px 9px;border:1px solid var(--ink-200);white-space:nowrap;}.excel-studio .studio-data-note{font-size:11px;padding:7px;margin:0;}.excel-studio #studio-chart{padding:12px;}.excel-studio .studio-metrics{margin:8px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));}.excel-studio .studio-metric{padding:10px;}.excel-studio .studio-metric strong{font-size:17px;}.excel-studio .studio-start{padding:25px 16px;}.excel-studio .studio-start h2{font-size:20px;}.excel-studio .studio-start p{font-size:12px;}.excel-studio .studio-question-grid{grid-template-columns:1fr;gap:5px;}.excel-studio .studio-question{padding:9px;}.excel-studio .studio-question small,.excel-studio .studio-question span>span,.excel-studio .studio-guide,.excel-studio .studio-start-footer{display:none;}.excel-studio .studio-question strong{font-size:12px;}.excel-studio .studio-question-icon{font-size:16px;}.excel-studio .studio-loading{padding:40px 15px;}.excel-studio .studio-loading h3{font-size:15px;}
.excel-studio.fields-collapsed .studio-workbench{grid-template-columns:1fr;}.excel-studio.fields-collapsed .studio-inspector{display:none;}
@media(max-width:750px){.excel-studio .studio-workbench{grid-template-columns:minmax(0,1fr) 260px;}.excel-studio .studio-context>span:first-child{display:none;}.excel-studio .studio-inspector{position:static;}.excel-studio .studio-actions{margin-left:0;}.excel-studio .studio-bar-row{grid-template-columns:70px minmax(0,1fr) 70px;}.excel-studio .studio-bar-row strong{font-size:11px;}}
@media(max-width:540px){.excel-studio .studio-workbench{display:flex;flex-direction:column;height:auto;}.excel-studio .studio-canvas{min-height:280px;max-height:440px;}.excel-studio .studio-inspector{height:510px;border-left:0;border-top:1px solid var(--ink-200);}.excel-studio .studio-updated{display:none;}}
.excel-chart-settings{display:flex;gap:5px;flex-wrap:wrap;align-items:center;margin-bottom:6px;}.excel-chart-settings select{flex:1 1 100px;min-width:0;font-size:11px;}.excel-chart-body{padding:6px 0;}.excel-chart-body svg{width:100%;max-height:300px;}.excel-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:12px;}.excel-dashboard-panel{border:1px solid var(--ink-200);padding:10px;border-radius:3px;min-width:0;}.excel-chart-body details{font-size:11px;}.excel-studio .studio-result-heading{min-height:28px;}.excel-studio .studio-bar-row{grid-template-columns:minmax(60px,100px) minmax(0,1fr) minmax(70px,100px);}
.excel-studio #pivot-dropzones-panel>.pivot-sort-row{display:flex;align-items:center;gap:6px;margin-top:6px;}.excel-studio .pivot-sort-row label{font-size:11px;white-space:nowrap;}.excel-studio .pivot-sort-row select{font-size:11px;min-width:0;}
.excel-studio #pivot-table-wrap th{white-space:normal;min-width:90px;max-width:150px;line-height:1.3;}.excel-chart-options>summary{font-size:11px;font-weight:600;cursor:pointer;list-style:none;padding:4px 0;}.excel-chart-options>summary span{float:right;color:var(--ink-500);font-size:11px;font-weight:400;}.excel-chart-options[open] .excel-chart-settings{margin-top:8px;}.excel-chart-options select{font-size:11px;}
.report-hub .hub-header{padding:5px 0 15px;gap:10px;}.report-hub .hub-header h2{font-size:23px;margin:6px 0;}.report-hub .hub-header p{font-size:12px;}.report-hub .hub-template{padding:12px;gap:5px;}.report-hub .hub-template-top{margin:0;}.report-hub .hub-template-icon{font-size:18px;}.report-hub .hub-template>span:last-child{display:none;}.report-hub .hub-template strong{font-size:13px;}.report-hub .hub-starters{margin-bottom:20px;}
/* Report authoring: readable fields, visible scope and usable recovery. */
.excel-studio .studio-workbench{grid-template-columns:minmax(0,1fr) 340px;height:calc(100dvh - 250px);min-height:520px;}
.excel-studio .studio-context{font-size:12px;gap:12px;padding:10px;flex-wrap:wrap;}
.excel-studio .studio-inspector-head{padding:10px;font-size:13px;}
.excel-studio #pivot-fields-col{min-height:170px;}
.excel-studio #pivot-fields-col .text-sm,.excel-studio .pivot-chip,.excel-studio .pivot-zone-item,.excel-studio .pivot-dropzone .text-sm{font-size:12px;}
.excel-studio .pivot-chip{min-height:30px;gap:8px;}
.excel-studio .pivot-chip input{flex-shrink:0;}
.excel-studio .pivot-zone-item{padding:7px;gap:5px;overflow-wrap:anywhere;}
.excel-studio .pivot-dropzone{padding:8px;}
.excel-studio .pivot-zone-item .btn,.excel-studio .studio-zone-tools .btn{min-width:28px;min-height:28px;}
.excel-studio .excel-area-caption{font-size:11px;padding:8px;}
.excel-studio .studio-result-heading{padding:12px;flex-wrap:wrap;}
.excel-studio .studio-result-heading h3{font-size:15px;}
.excel-studio .studio-updated,.excel-studio .studio-data-note{font-size:12px;}
.excel-studio #pivot-table-wrap table{font-size:12px;}
.excel-studio #pivot-table-wrap th,.excel-studio #pivot-table-wrap td{padding:9px 12px;}
.excel-studio .studio-empty{padding:36px 20px;min-height:260px;}
.excel-studio .studio-empty p{max-width:520px;margin:10px auto;overflow-wrap:anywhere;}
.studio-filter-summary{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--ui-border);background:var(--ui-surface);font-size:12px;}
.studio-sales-tier{display:flex;align-items:center;gap:8px;min-width:0;max-width:100%;font-weight:600;}.studio-sales-tier select{width:auto;max-width:100%;min-width:0;min-height:36px;font-size:13px;padding:6px 10px;color:var(--ui-text);background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:6px;}
.studio-tier-help{max-width:100%;}.studio-tier-help summary{cursor:pointer;color:var(--ui-muted);}.studio-tier-help p{max-width:540px;margin:8px 0;line-height:1.5;}
.studio-filter-pill{display:inline-flex;align-items:center;max-width:100%;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-surface-alt);}
.studio-filter-pill>button,.studio-filter-pill>span{background:transparent;border:0;padding:7px 9px;color:var(--ui-text);font:inherit;overflow-wrap:anywhere;min-width:0;}
.studio-filter-pill>button:first-child{text-align:left;}
.studio-filter-pill>button:last-child{flex-shrink:0;}
.studio-add-field-list{display:grid;gap:8px;max-height:45vh;overflow:auto;margin-top:12px;}
.studio-add-field-list .btn{justify-content:flex-start;min-height:38px;white-space:normal;text-align:left;}
.studio-pick-group{display:grid;gap:8px;min-width:0;}.studio-pick-group h3{font-size:12px;color:var(--ui-muted);margin:8px 0 0;overflow-wrap:anywhere;}
.excel-studio .studio-dimension-group h4{font-size:11px;line-height:1.4;margin:12px 0 5px;padding-bottom:5px;border-bottom:1px solid var(--ui-border);color:var(--ui-muted);overflow-wrap:anywhere;}
.excel-studio .studio-master-help{font-size:11px;line-height:1.5;margin-top:8px;}.excel-studio .studio-master-help summary{cursor:pointer;padding:5px 0;color:var(--ui-text);}.excel-studio .studio-master-help p{margin:4px 0 0;color:var(--ui-muted);}
.excel-studio .studio-start-footer{display:flex;}
/* Side-by-side Pivot Fields: catalog and placement areas share the full height. */
.excel-studio .studio-workbench{grid-template-columns:minmax(0,1fr) clamp(400px,36vw,500px);height:calc(100dvh - 265px);min-height:540px;}
.excel-studio .studio-field-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);flex:1;min-height:0;overflow:hidden;}
.excel-studio .studio-inspector-head{border-bottom:1px solid var(--ui-border);padding:8px 12px;font-size:14px;}
.excel-studio .studio-inspector-head>div{display:flex;gap:6px;}
.excel-studio #pivot-fields-col{min-height:0;max-height:none;overflow:hidden;border:0;border-right:1px solid var(--ui-border);padding:0 10px;}
.excel-studio #pivot-fields-col>.card{display:flex;flex-direction:column;height:100%;min-height:0;padding:10px 0;}
.excel-studio .studio-field-catalog{flex:1;min-height:0;overflow:auto;margin-top:6px;scrollbar-gutter:stable;}
.excel-studio .studio-field-tabs{display:flex;gap:16px;margin-bottom:12px;border-bottom:1px solid var(--ui-border);}
.excel-studio .studio-field-tabs button{border:0;background:transparent;color:var(--ui-muted);padding:6px 2px;font:inherit;font-size:13px;cursor:pointer;border-bottom:2px solid transparent;}
.excel-studio .studio-field-tabs button[aria-pressed=true]{color:var(--ui-text);border-color:var(--brand-600);font-weight:600;}
.excel-studio .pivot-chip{flex-wrap:nowrap;align-items:flex-start;padding:6px 0;min-height:30px;}
.excel-studio .pivot-chip-label{font-size:12px;line-height:1.45;overflow-wrap:anywhere;}
.excel-studio .studio-areas{min-width:0;min-height:0;display:flex;flex-direction:column;}
.excel-studio .excel-area-caption{padding:10px 12px;line-height:1.4;}
.excel-studio #pivot-dropzones-panel{flex:1;min-height:0;padding:0 10px 10px;overflow:auto;}
.excel-studio .pivot-zones-grid{display:flex;flex-direction:column;gap:10px;}
.excel-studio .pivot-dropzone{min-height:94px;border:0;border-bottom:1px solid var(--ui-border);border-radius:0;padding:0 0 10px;}
.excel-studio .pivot-zone-items{margin-top:5px;}
.excel-studio .pivot-zone-item{padding:5px 7px!important;font-size:12px;}
.excel-studio .pivot-zone-item .studio-filter-open{font-size:12px;min-height:28px;white-space:normal;}
.excel-studio .studio-more-options{margin-top:10px;font-size:12px;}
.excel-studio .studio-more-options>summary{cursor:pointer;padding:8px 0;font-weight:600;}
.excel-studio .studio-more-options .pivot-sort-row{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0;}
.excel-studio .studio-more-options select{max-width:100%;}
.excel-studio .studio-context{padding:6px 10px;gap:12px;}
.excel-studio .studio-context>label{display:flex;align-items:center;gap:8px;}
.excel-studio .studio-context>span:last-child{display:none;}
.excel-studio .studio-filter-summary{padding:6px 10px;}
.excel-studio .studio-result-heading{min-height:0;padding:8px 10px;}
.excel-studio .studio-toolbar{padding:8px 10px;gap:10px;}
.excel-studio .studio-actions{max-width:none;}
/* Report Studio: keep the report prominent and give each field area a clear identity. */
.excel-studio{border-radius:12px;--pivot-row:#21655a;--pivot-column:#315fac;--pivot-filter:#886116;--pivot-value:#6950a5;--pivot-head:#174e63;--pivot-head-text:#fff;--pivot-band:#eaf2f7;--pivot-subtotal:#d4e6ee;--pivot-total:#174e63;--pivot-total-text:#fff;--pivot-hover:#dcebf1;--pivot-grid:#c3d4dd;}
[data-theme=dark] .excel-studio{--pivot-row:#8cd9c5;--pivot-column:#a3c6ff;--pivot-filter:#e9c077;--pivot-value:#ccb4ff;--pivot-head:#153e51;--pivot-head-text:#f4faff;--pivot-band:#283d46;--pivot-subtotal:#345663;--pivot-total:#174e63;--pivot-total-text:#f4faff;--pivot-hover:#365460;--pivot-grid:#507080;}
#page-content .excel-studio .studio-toolbar{background:var(--ui-surface);padding:12px 14px;margin:0;gap:10px;align-items:center;}
.excel-studio .studio-heading{gap:8px;align-items:baseline;}
.excel-studio .studio-actions{gap:6px;}
.excel-studio .studio-secondary-actions{display:contents;}
.excel-studio .studio-actions .btn{min-height:34px;font-size:12px;padding:7px 10px;}
.excel-studio .studio-context{background:var(--ui-surface-alt);padding:8px 14px;}
.excel-studio .studio-context select{min-height:34px;font-size:12px;max-width:100%;}
.excel-studio .studio-canvas{background:var(--ui-surface);}
.excel-studio .studio-inspector-head{background:var(--ui-surface-alt);}
.excel-studio .studio-field-catalog{padding-right:4px;}
.excel-studio .pivot-chip{align-items:center;padding:2px;border-radius:6px;gap:5px;touch-action:pan-y;}
.excel-studio .pivot-chip:hover,.excel-studio .pivot-chip:focus-within{background:var(--ui-surface-alt);}
.excel-studio .pivot-chip input{width:15px;height:15px;}
.excel-studio .pivot-chip-label{font-weight:500;}
.excel-studio .pivot-drag-handle{display:grid;place-items:center;flex:0 0 22px;min-width:22px;min-height:32px;color:var(--ui-muted);font-size:17px;cursor:grab;touch-action:none;user-select:none;}
.excel-studio .excel-area-caption{font-weight:650;color:var(--ui-text);padding:10px 10px 8px;}
.excel-studio .excel-area-caption>span{display:block;font-weight:400;font-size:11px;color:var(--ui-muted);margin-top:3px;}
.excel-studio .pivot-dropzone{--area-color:var(--pivot-row);border:1px solid var(--ui-border);border-inline-start:3px solid var(--area-color);border-radius:8px;padding:8px;min-height:104px;transition:none;background:var(--ui-surface);}
.excel-studio .pivot-dropzone[data-zone=columns]{--area-color:var(--pivot-column);}
.excel-studio .pivot-dropzone[data-zone=filters]{--area-color:var(--pivot-filter);}
.excel-studio .pivot-dropzone[data-zone=values]{--area-color:var(--pivot-value);}
.excel-studio .pivot-dropzone>.flex-between>b{color:var(--area-color);}
.excel-studio .pivot-zone-item{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding:4px!important;border:1px solid var(--ui-border);border-radius:6px;touch-action:pan-y;background:var(--ui-surface-alt);}
.excel-studio .pivot-zone-item>.pivot-entry-label{min-width:40px;flex:1;font-weight:550;line-height:1.4;overflow-wrap:anywhere;}
.excel-studio .pivot-zone-item>.pivot-drag-handle{flex:0 0 18px;min-width:18px;}
.excel-studio .excel-field-settings{display:block;flex:0 0 28px;min-width:0;}
.excel-studio .excel-field-settings[open]{flex:1 0 100%;order:5;border-top:1px solid var(--ui-border);padding-top:4px;}
.excel-studio .excel-field-settings>summary{display:grid;place-items:center;min-width:28px;min-height:32px;border:1px solid transparent;border-radius:5px;font-size:18px;color:var(--ui-text);}
.excel-studio .excel-field-settings[open]>summary{background:var(--ui-surface);border-color:var(--ui-border);}
.excel-studio .excel-field-settings[open]>summary{display:flex;width:100%;gap:8px;padding:3px 8px;font-size:14px;}
.excel-studio .excel-field-settings[open]>summary::after{content:"Field options";font-size:11px;}
.excel-studio .excel-field-settings>div{display:grid;gap:8px;padding:8px 3px 3px;}
.excel-studio .excel-field-settings:not([open])>div{display:none;}
.excel-studio .excel-field-settings label{display:grid;gap:4px;font-size:11px;font-weight:500;margin:0;color:var(--ui-muted);}
.excel-studio .excel-field-settings select{width:100%;max-width:100%;min-width:0;min-height:34px;font-size:12px;}
.excel-studio .studio-field-order{display:flex;gap:6px;flex-wrap:wrap;}
.excel-studio .studio-field-order .btn{flex:1 1 70px;min-height:32px;white-space:normal;}
.excel-studio .studio-filter-open{flex:1 0 100%;text-align:left;justify-content:space-between;order:4;}
.excel-studio .pivot-dropzone-over{outline:2px solid var(--area-color);outline-offset:2px;background:var(--ui-surface-alt);}
.excel-studio .pivot-dropzone-invalid{outline:2px dashed var(--danger-600);outline-offset:2px;}
.excel-studio .pivot-insert-before::before,.excel-studio .pivot-insert-after::after{content:"";position:absolute;left:0;right:0;height:3px;background:var(--area-color);border-radius:2px;z-index:4;}
.excel-studio .pivot-insert-before::before{top:-5px;}.excel-studio .pivot-insert-after::after{bottom:-5px;}
.excel-studio .pivot-drag-source{opacity:.45;}
.pivot-drag-preview{position:fixed;z-index:2100;pointer-events:none;max-width:min(260px,calc(100vw - 24px));padding:10px 14px;border:1px solid var(--brand-600);border-radius:8px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 8px 28px #0003;font-size:12px;line-height:1.4;overflow-wrap:anywhere;}
.studio-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.excel-studio .studio-result-heading{padding:14px 14px 10px;margin:0;border-bottom:1px solid var(--ui-border);}
.excel-studio .studio-result-heading h3{font-size:16px;line-height:1.4;}
.excel-studio .studio-viewbar{padding:0 12px;border-top:0;background:var(--ui-surface-alt);}
.excel-studio .studio-tabs button{padding:12px 9px;font-size:12px;}
.excel-studio .studio-export .btn{min-height:32px;}
.excel-studio .pivot-table-controls{padding:8px 12px;gap:8px;border-bottom:1px solid var(--ui-border);}
.excel-studio .pivot-table-controls label{font-size:12px;line-height:1.5;}
.excel-studio #pivot-table-wrap table{border-collapse:separate;border-spacing:0;min-width:100%;font-variant-numeric:tabular-nums;}
.excel-studio #pivot-table-wrap th,.excel-studio #pivot-table-wrap td{border:0;border-right:1px solid var(--ui-border);border-bottom:1px solid var(--ui-border);padding:10px 12px;}
/* A single viewport owns both axes. Sticky THEAD keeps every wrapped header
   row together, without fixed offsets or per-scroll JavaScript measurements. */
#page-content .excel-studio .studio-canvas{overflow:hidden;}
#page-content .excel-studio #pivot-result-slot{height:100%;min-height:0;overflow:auto;}
#page-content .excel-studio #pivot-result-slot.studio-table-view{display:flex;flex-direction:column;overflow:hidden;}
#page-content .excel-studio .studio-table-view>:not(#pivot-table-wrap){flex-shrink:0;}
#page-content .excel-studio #pivot-table-wrap{flex:1;min-height:120px;max-height:none;overflow:hidden;display:flex;}
#page-content .excel-studio #pivot-table-wrap>.table-wrap{flex:1;min-width:0;max-height:none;overflow:auto;border:0;border-radius:0;box-shadow:none;scrollbar-gutter:stable;overscroll-behavior:contain;}
#page-content .excel-studio #pivot-table-wrap thead{position:sticky;top:0;z-index:4;}
#page-content .excel-studio #pivot-table-wrap thead th{position:relative;top:auto;background:var(--pivot-head);color:var(--pivot-head-text);font-weight:650;border-color:var(--pivot-grid);}
#page-content .excel-studio #pivot-table-wrap tbody td{background:var(--ui-surface);border-color:var(--pivot-grid);text-align:right!important;}
#page-content .excel-studio #pivot-table-wrap tbody tr:nth-child(even of :not([hidden]):not(.sec-row):not(.pivot-grand-total-row)) td{background:var(--pivot-band);}
#page-content .excel-studio #pivot-table-wrap tbody td:first-child,#page-content .excel-studio #pivot-table-wrap thead tr:first-child th:first-child{position:sticky;left:0;z-index:2;min-width:170px;max-width:240px;white-space:normal;overflow-wrap:anywhere;text-align:left!important;box-shadow:1px 0 var(--pivot-grid);}
#page-content .excel-studio #pivot-table-wrap thead tr:first-child th:first-child{z-index:5;}
#page-content .excel-studio #pivot-table-wrap tbody tr:not(.sec-row):not(.pivot-grand-total-row):hover td{background:var(--pivot-hover);}
#page-content .excel-studio #pivot-table-wrap .sec-row td{background:var(--pivot-subtotal);color:var(--ui-text);border-top:1px solid var(--pivot-grid);}
#page-content .excel-studio #pivot-table-wrap .pivot-grand-total-row td{border-top:2px solid var(--pivot-grid);background:var(--pivot-total);color:var(--pivot-total-text);}
#page-content .excel-studio #pivot-table-wrap .pivot-grand-total-row .muted{color:inherit;}
#page-content .excel-studio .pivot-column-sort{display:block;width:100%;min-width:110px;max-width:100%;margin-top:8px;min-height:32px;font-size:12px;background:var(--ui-surface);color:var(--ui-text);border:1px solid var(--pivot-grid);}
#page-content .excel-studio #pivot-table-wrap .drilldown-toggle{min-width:30px;min-height:30px;color:inherit;}
/* Expanded workspace retains the same DOM, values, permissions and dialogs. */
body.pivot-workspace-expanded{overflow:hidden;}
#page-content .excel-studio.studio-expanded{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;width:100%;height:100dvh;max-width:none;border:0;border-radius:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);background:var(--ui-surface);}
#page-content .excel-studio.studio-expanded>.studio-toolbar,#page-content .excel-studio.studio-expanded>.studio-context,#page-content .excel-studio.studio-expanded>.studio-filter-summary{flex-shrink:0;}
#page-content .excel-studio.studio-expanded .studio-workbench{flex:1;min-height:0;height:auto;overflow:hidden;grid-template-columns:minmax(0,1fr) clamp(360px,34vw,500px);}
#page-content .excel-studio.studio-expanded.fields-collapsed .studio-workbench{grid-template-columns:minmax(0,1fr);}
#page-content .excel-studio.studio-expanded .studio-canvas{grid-row:1;grid-column:1;height:100%;max-height:none;min-height:0;}
#page-content .excel-studio.studio-expanded .studio-inspector{grid-row:1;grid-column:2;height:100%;min-height:0;}
#page-content .excel-studio.studio-expanded .studio-filter-summary{max-height:20dvh;overflow:auto;}
.excel-studio .studio-data-note{padding:10px 14px;}
.excel-studio .studio-metric{border-top:3px solid var(--pivot-column);background:var(--ui-surface-alt);padding:12px;}
.excel-studio .excel-dashboard-panel{border-radius:10px;background:var(--ui-surface);padding:14px;}
.excel-studio :is(button,summary,input,select):focus-visible{outline:2px solid var(--brand-600);outline-offset:2px;}
@media(min-width:761px) and (max-width:1100px){.excel-studio .studio-workbench{grid-template-columns:minmax(0,1fr);height:auto;}.excel-studio .studio-canvas{grid-row:1;grid-column:1;max-height:65vh;min-height:260px;}.excel-studio .studio-inspector{grid-row:2;grid-column:1;height:600px;border-top:1px solid var(--ui-border);}.excel-studio .studio-toolbar{flex-direction:row;flex-wrap:wrap;}}
/* Folder library: compact navigation and readable, responsive report metadata. */
.library-workspace{max-width:1600px;margin:0 auto;}
.library-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:12px 0 24px;}
.library-header h2{font-size:28px;margin:5px 0 7px;letter-spacing:-.025em;}
.library-header p{margin:0;color:var(--ink-600);max-width:650px;}
.library-header .header-actions{flex-shrink:0;}
.library-layout{display:grid;grid-template-columns:195px minmax(0,1fr);border:1px solid var(--ink-200);border-radius:14px;background:var(--white);min-height:470px;}
.library-sidebar{padding:18px 12px;border-right:1px solid var(--ink-200);background:var(--ink-50);border-radius:14px 0 0 14px;}
.library-sidebar nav{display:grid;gap:5px;}
.library-sidebar nav button{font:inherit;text-align:left;cursor:pointer;color:var(--ink-700);border:1px solid transparent;border-radius:7px;background:transparent;padding:11px 12px;}
.library-sidebar nav button:hover{background:var(--ink-100);}
.library-sidebar nav button[aria-current=page]{color:var(--brand-text);background:var(--brand-50);border-color:var(--brand-100);font-weight:700;}
.library-access-note{padding:20px 10px 0;margin-top:25px;border-top:1px solid var(--ink-200);color:var(--ink-600);font-size:11px;line-height:1.6;}
.library-access-note strong{color:var(--ink-800);}
.library-content{min-width:0;padding:20px;}
.library-context{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;margin-bottom:16px;}
#library-breadcrumb{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0;}
#library-breadcrumb button{background:transparent;border:0;color:var(--ink-600);font:inherit;padding:4px;cursor:pointer;overflow-wrap:anywhere;text-align:left;}
#library-breadcrumb button[aria-current=page]{color:var(--ink-900);font-weight:700;}
.library-access-badge{font-size:11px;color:var(--ink-600);text-align:right;}
.library-filter-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap;padding-bottom:20px;}
.library-filter-row .field{flex:1 1 130px;margin:0;min-width:0;}.library-filter-row .library-search{flex:3 1 250px;}
.library-filter-row label{color:var(--ink-600);font-size:11px;}
.library-section-heading,.library-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0;}
.library-section-heading h3{font-size:13px;margin:0;}.library-section-heading>span,.library-results-head p{font-size:11px;color:var(--ink-600);margin:0;}
.library-folders{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px;margin-bottom:24px;}
.library-folder{min-width:0;padding:13px 14px;border:1px solid var(--ink-200);border-radius:10px;background:var(--ink-50);display:flex;flex-direction:column;gap:6px;}
.library-folder-top{display:flex;align-items:center;justify-content:space-between;}.library-folder-top>span{font-size:25px;color:var(--brand-text);height:30px;}.library-folder-top svg{width:27px;height:27px;}
.library-folder>button{font:inherit;font-weight:700;color:var(--ink-900);border:0;padding:0;background:transparent;text-align:left;cursor:pointer;overflow-wrap:anywhere;}
.library-folder>small,.library-folder-access{font-size:11px;color:var(--ink-600);}.library-folder-access{margin-top:auto;}
.library-records{display:grid;gap:0;border-top:1px solid var(--ink-200);}
.library-record{display:flex;align-items:center;gap:14px;padding:16px 0;border-bottom:1px solid var(--ink-200);min-width:0;}
.library-record-icon{font-size:23px;color:var(--brand-text);background:var(--brand-50);width:40px;height:44px;display:grid;place-items:center;border-radius:8px;flex-shrink:0;}
.library-record-main{flex:1;min-width:0;}.library-record-main .hub-report-title{font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.library-record-main p{font-size:11px;color:var(--ink-600);margin:3px 0 7px;overflow-wrap:anywhere;}
.library-tags{display:flex;gap:5px;flex-wrap:wrap;}.library-tags span{font-size:11px;line-height:1.5;padding:2px 7px;border-radius:5px;background:var(--ink-100);color:var(--ink-700);}
.library-tags span:first-child{background:var(--brand-50);color:var(--brand-text);}
.library-location{display:block;margin-top:6px;color:var(--ink-500);overflow-wrap:anywhere;font-size:11px;}
.library-record-meta{width:130px;flex-shrink:0;display:grid;gap:5px;font-size:11px;color:var(--ink-600);overflow-wrap:anywhere;}.library-record-meta strong{font-weight:500;color:var(--ink-800);}
.library-record-actions{display:flex;align-items:center;gap:7px;}.library-record-actions .hub-star{width:30px;min-height:32px;font-size:20px;}
.library-menu{position:relative;flex-shrink:0;color:var(--ink-800);}
.library-menu>summary{cursor:pointer;list-style:none;border:1px solid transparent;border-radius:5px;padding:5px 8px;min-height:32px;display:grid;place-items:center;}
.library-menu>summary::-webkit-details-marker{display:none;}.library-menu[open]>summary,.library-menu>summary:hover{background:var(--ink-100);border-color:var(--ink-200);}
.library-menu>div{position:absolute;right:0;top:100%;z-index:25;min-width:195px;max-width:calc(100vw - 40px);padding:5px;background:var(--white);border:1px solid var(--ink-200);border-radius:9px;box-shadow:0 8px 24px #0002;}
.library-menu button{display:block;text-align:left;width:100%;font:inherit;font-size:12px;color:var(--ink-800);padding:10px;border:0;background:transparent;cursor:pointer;border-radius:5px;}.library-menu button:hover{background:var(--ink-100);}.library-menu button.text-danger{color:var(--danger-600,#bd3544);}
.library-records.is-grid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:12px;border:0;}
.library-records.is-grid .library-record{display:grid;grid-template-columns:40px minmax(0,1fr);border:1px solid var(--ink-200);border-radius:10px;padding:16px;align-items:start;}
.library-records.is-grid .library-record-meta{grid-column:1/-1;width:auto;display:flex;justify-content:space-between;}.library-records.is-grid .library-record-actions{grid-column:1/-1;justify-content:flex-end;border-top:1px solid var(--ink-100);padding-top:10px;}
.library-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin-top:18px;font-size:11px;color:var(--ink-600);}
.library-footnote{font-size:11px;color:var(--ink-500);margin:18px 0 0;line-height:1.5;}
.library-empty{text-align:center;padding:48px 20px;color:var(--ink-600);grid-column:1/-1;}.library-empty>span{font-size:36px;color:var(--brand-text);}.library-empty h3{color:var(--ink-900);font-size:16px;}.library-empty p{line-height:1.6;}
.library-starters{margin-top:24px;}.library-starters>summary{cursor:pointer;font-weight:600;padding:10px 0;}.library-starters .hub-template-grid{margin-top:10px;}.library-starters small{text-transform:none;letter-spacing:0;line-height:1.6;}
.library-notice{border-left:3px solid var(--brand-500);background:var(--brand-50);color:var(--brand-text);padding:12px;font-size:12px;line-height:1.6;margin:14px 0;}.library-notice p{margin:4px 0;}
.library-error{padding:10px;background:var(--danger-50,#fff1f2);color:var(--danger-700,#9f1239);border:1px solid var(--danger-200,#fecdd3);border-radius:5px;}
[data-library-error][hidden],.library-recipients[hidden],.library-recipients [hidden]{display:none!important;}
.library-inline-create{margin:12px 0;}.library-inline-create summary{cursor:pointer;color:var(--brand-text);padding:6px 0;font-weight:600;}.library-inline-row{display:flex;align-items:center;gap:10px;margin:8px 0;}.library-inline-row input{min-width:0;flex:1;}
#library-location-note{display:block;margin-top:6px;line-height:1.5;}
.library-share-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;overflow-wrap:anywhere;}.library-share-heading strong{font-size:17px;min-width:0;}.library-share-heading .badge{flex-shrink:0;}
.library-recipients{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-height:280px;overflow:auto;border:1px solid var(--ink-200);border-radius:7px;padding:7px;}
.library-recipients label{display:flex;align-items:center;gap:10px;margin:0;padding:9px;min-height:44px;cursor:pointer;border-radius:5px;overflow-wrap:anywhere;}.library-recipients label:hover{background:var(--ink-50);}.library-recipients input{flex-shrink:0;width:17px;height:17px;}.library-recipients small{display:block;font-size:11px;color:var(--ink-600);margin-top:3px;}
@media(min-width:761px) and (max-width:1100px){.library-layout{grid-template-columns:165px minmax(0,1fr);}.library-content{padding:15px;}.library-record{flex-wrap:wrap;}.library-record-meta{width:auto;margin-left:54px;flex:1;}.library-record-main{flex-basis:calc(100% - 60px);}.library-header{align-items:start;}.library-header .header-actions{flex-wrap:wrap;max-width:200px;}}
