/* Shared visual foundation E. Main application only; PDF exports and viewer
   iframes keep their own drawing, marker and document styles. */
.bpm-shell-v2{--paper:#f5f7f7;--line:#dde4e3;--ink:#17292c;--muted:#55696c;--green:#0f6b6e;background:var(--paper);font-size:16px;line-height:1.5}
.bpm-shell-v2 #main{padding:24px 28px;min-width:0}
.bpm-shell-v2 #main :is(h1,h2,h3){color:#17292c;line-height:1.3;letter-spacing:-.025em}
.bpm-shell-v2 #main h1{font-size:28px;font-weight:700;margin:0 0 6px}
.bpm-shell-v2 #main h2{font-size:18px;font-weight:650}
.bpm-shell-v2 #main h3{font-size:16px;font-weight:650}
.bpm-shell-v2 #main :is(.subtitle,.report-note,.dashboard-source,.hub-heading>div>p,.progress-page-heading>p){font-size:14px;line-height:1.6;color:#55696c}
.bpm-shell-v2 #main :is(.page-heading,.hub-heading,.dashboard-heading,.progress-page-heading){gap:16px;margin:0 0 20px;align-items:center}
.bpm-shell-v2 #main :is(.button,.button.small){min-height:44px;padding:10px 14px;border:1px solid #ccd8d8;border-radius:8px;background:#fff;color:#17292c;font-size:14px;font-weight:600;line-height:1.35;letter-spacing:normal;box-shadow:none;white-space:normal;text-align:center}
.bpm-shell-v2 #main .button.primary{background:#0f6b6e;border-color:#0f6b6e;color:white}
.bpm-shell-v2 #main .button.primary:hover{background:#0b5558;border-color:#0b5558}
.bpm-shell-v2 #main .button.danger{color:#9f1c12;border-color:#e8bdb8;background:#fff}
.bpm-shell-v2 #main .button:disabled{cursor:default;opacity:.55}
.bpm-shell-v2 #main .text-button{font-size:14px;min-height:44px;padding:8px 0;line-height:1.4}
.bpm-shell-v2 #main :is(.field,.hub-panel label,.productivity-filters label,.roster-filters label){font-size:14px;line-height:1.4;gap:6px}
.bpm-shell-v2 #main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-size:14px;line-height:1.4;border-color:#bdcdce;border-radius:8px;color:#17292c;background-color:#fff;min-width:0}
.bpm-shell-v2 #main :is(input[type=date],input[type=text],input[type=number],input[type=search],select){min-height:44px}
.bpm-shell-v2 #main :is(.panel,.hub-panel,.progress-panel,.dashboard-project,.dashboard-metrics>article,.productivity-cards>article,.claude-chat-surface,.claude-report-filters,.roster-panel){border:1px solid #dde4e3;border-radius:12px;box-shadow:none}
.bpm-shell-v2 #main :is(.hub-panel,.progress-panel,.dashboard-project,.roster-panel){padding:20px}
.bpm-shell-v2 #main :is(.dashboard-tabs,.hub-library-tabs){gap:4px;border-bottom:1px solid #dde4e3;padding:0;margin:0 0 20px}
.bpm-shell-v2 #main :is(.dashboard-tabs,.hub-library-tabs)>.button{border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;padding:10px 16px;color:#55696c}
.bpm-shell-v2 #main :is(.dashboard-tabs,.hub-library-tabs)>.button.primary{border-bottom-color:#0f6b6e;color:#0f6b6e;background:transparent}
.bpm-shell-v2 #main :is(.toolbar,.progress-toolbar,.hub-actions){gap:8px 12px}
.bpm-shell-v2 :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #b45309;outline-offset:3px}
.bpm-shell-v2 .topbar-right :is(.shell-admin summary,#account-button){min-height:44px;border-radius:8px;font-size:14px;font-weight:500}
.bpm-shell-v2 #nav .nav-item{font-size:14px;min-height:44px;border-radius:8px}
/* Drawing workspace B: one horizontal selection bar and a full-width PDF. */
.bpm-shell-v2 #main .shop-page-b{max-width:none}
.bpm-shell-v2 #main .shop-page-b .hub-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 16px;min-height:52px}
.shop-selection-bar{display:grid;grid-template-columns:minmax(240px,2fr) minmax(150px,1fr) minmax(150px,1fr) auto;align-items:center;gap:16px;background:#fff;border:1px solid #dde4e3;border-radius:10px;padding:12px 16px;margin-bottom:16px}
.shop-selection-bar>label{display:flex;align-items:center;gap:10px;min-width:0;color:#55696c;font-size:14px;white-space:nowrap}
.shop-selection-bar select{width:100%;min-width:0;height:44px;padding:8px 12px;background:#fff;border:1px solid #bdcdce;color:#17292c;overflow:hidden;text-overflow:ellipsis}
.shop-selection-bar .shop-document-picker{color:#17292c}
.shop-catalog{margin-bottom:16px;padding:16px;background:#fff;border:1px solid #dde4e3;border-radius:10px;max-height:320px;overflow:auto}
.shop-catalog>.section-heading{margin-bottom:8px}
.shop-catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:8px}
.shop-catalog .shop-file{border:1px solid #dde4e3;border-radius:8px;padding:12px;min-width:0}
.shop-catalog .shop-file strong{font-size:14px;font-weight:600}
.shop-catalog .shop-file small{font-size:13px}
.shop-catalog details{margin-top:12px;border-top:1px solid #dde4e3;padding-top:8px}
.shop-catalog summary{min-height:44px;cursor:pointer;display:flex;align-items:center;font-size:14px;color:#55696c}
.shop-list-empty{font-size:14px;color:#55696c}
.bpm-shell-v2 #main .shop-page-b .shop-preview{height:var(--shop-view-height,65dvh);min-height:380px;position:relative;display:flex;flex-direction:column;padding:12px;border:1px solid #dde4e3;border-radius:12px;background:#fff;min-width:0;overflow:hidden}
.shop-page-b .shop-view-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none;margin:0 0 10px;min-height:44px}
.shop-view-header>div:first-child{min-width:0}
.shop-view-header strong{font-size:14px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.shop-view-header small{font-size:13px;color:#55696c;display:block;margin-top:2px}
.shop-view-actions{display:flex;align-items:center;gap:8px;flex:none;flex-wrap:wrap}
.shop-view-actions label{display:flex;align-items:center;gap:8px;font-size:14px}
.shop-view-actions select{min-height:44px;padding:8px;border:1px solid #bdcdce;background:#fff;max-width:200px}
.shop-page-b .shop-pdf-stage{flex:1;min-height:0;height:auto;display:flex;align-items:safe center;justify-content:safe center;padding:16px 16px 72px;overflow:auto;border:0;border-radius:8px;background:#f1f4f4;position:relative}
.shop-page-b .shop-pdf-stage canvas{display:block;flex:none;margin:auto;max-width:none;box-shadow:none;border:1px solid #dde4e3}
.shop-page-b .shop-pdf-stage>p{font-size:14px;position:absolute;top:12px;left:12px;right:12px;margin:0;background:#fff;border:1px solid #dde4e3;border-radius:6px;padding:10px 12px;z-index:1}
.shop-page-b .shop-pdf-stage>p:empty{display:none}
.shop-empty-state{margin:auto;max-width:440px;text-align:center;padding:24px;color:#55696c}
.shop-empty-state>span{display:grid;place-items:center;width:56px;height:56px;border:1px solid #d5dfdf;border-radius:12px;margin:0 auto 16px;background:#fff;color:#0f6b6e}
.shop-empty-state svg{width:26px;height:26px}
.shop-empty-state p{font-size:14px;line-height:1.6;margin:10px 0 16px}
.shop-page-b .shop-view-toolbar{position:absolute;bottom:24px;right:24px;display:flex;align-items:center;gap:8px;flex-wrap:nowrap;margin:0;padding:6px;background:#fff;border:1px solid #ccd8d8;border-radius:10px;z-index:2}
.shop-zoom-controls{display:flex;align-items:center;gap:2px}
.shop-zoom-controls output{font-size:14px;min-width:52px;text-align:center;color:#17292c}
.bpm-shell-v2 #main .shop-zoom-controls>.button{width:44px;padding:8px;border-color:transparent}
.bpm-shell-v2 #main .shop-preview:fullscreen,.bpm-shell-v2 #main .shop-preview.is-expanded{position:fixed;inset:0;width:100%;height:100dvh;min-height:0;max-width:none;border-radius:0;z-index:2000;padding:16px;background:#fff}
@media(max-width:1150px){.shop-selection-bar{grid-template-columns:minmax(220px,2fr) 1fr 1fr;gap:12px}.shop-list-toggle{grid-column:1/-1;justify-self:end}.shop-page-b .shop-view-header{align-items:start}.shop-view-actions{justify-content:flex-end;max-width:60%}}
@media(max-width:800px){.bpm-shell-v2 #main{padding:20px 16px}.shop-selection-bar{grid-template-columns:1fr 1fr;gap:10px;padding:12px}.shop-selection-bar>label{display:grid;gap:6px}.shop-selection-bar>.shop-document-picker{grid-column:1/-1}.shop-selection-bar .shop-list-toggle{grid-column:1/-1;justify-self:stretch}.shop-view-actions{max-width:none}.shop-page-b .shop-view-header{flex-direction:column;align-items:stretch}.shop-view-actions{justify-content:flex-start}.shop-view-header>div:first-child{width:100%}.shop-page-b .shop-view-toolbar{bottom:20px;right:20px;left:20px;justify-content:center;gap:4px}.bpm-shell-v2 #main .shop-view-toolbar>.button{padding:8px 10px;font-size:13px}.shop-page-b .shop-pdf-stage{padding:10px 10px 76px}.bpm-shell-v2 #main :is(.hub-panel,.progress-panel,.dashboard-project,.roster-panel){padding:16px}}
@media(max-width:600px){.bpm-shell-v2 #main h1{font-size:24px}.bpm-shell-v2 #main h2{font-size:18px}.bpm-shell-v2 #main .shop-page-b .hub-heading{flex-direction:row;align-items:start;gap:12px}.shop-page-b .hub-heading>div:first-child{flex:1;min-width:0}.shop-page-b .hub-heading .hub-actions{justify-content:flex-end;flex-wrap:wrap}.bpm-shell-v2 #main .shop-page-b .hub-heading .button{font-size:13px;padding:8px 10px}.shop-catalog-grid{grid-template-columns:1fr}.shop-view-actions .button{flex:1}.shop-page-b .shop-view-header small{font-size:13px}.bpm-shell-v2 #main .shop-page-b .shop-preview{padding:10px}.shop-empty-state{padding:16px}.shop-page-b .shop-view-toolbar{left:14px;right:14px;bottom:14px}.bpm-shell-v2 #main .shop-view-toolbar>.button{font-size:12px;padding:8px}.shop-zoom-controls output{min-width:44px}.bpm-shell-v2 #main :is(.dashboard-tabs,.hub-library-tabs)>.button{padding:10px 12px;font-size:14px}.bpm-shell-v2 .topbar-right :is(.shell-admin summary,#account-button){font-size:13px}}

.bpm-shell-v2 #main .dash-metric>span,.bpm-shell-v2 #main .dash-metric>small{font-size:14px;line-height:1.5}.bpm-shell-v2 #main .dashboard-links{gap:16px}@media(max-width:600px){.bpm-shell-v2 #main :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea){font-size:16px}.bpm-shell-v2 #main .shop-page-b .shop-preview{min-height:560px}.shop-page-b .shop-view-toolbar{position:static;flex:none;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0 0;padding:0;border:0;border-radius:0;background:#fff}.shop-page-b .shop-view-toolbar>.button:last-child{grid-column:1/-1}.shop-zoom-controls{justify-content:center}.bpm-shell-v2 #main .shop-view-toolbar>.button{font-size:14px;min-height:44px}.shop-page-b .shop-pdf-stage{padding:10px}.shop-page-b .shop-view-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.bpm-shell-v2 #main .shop-view-actions>.button{font-size:13px;padding:8px 6px;min-height:44px}.shop-view-actions>label{grid-column:1/-1}.bpm-shell-v2 #main .shop-preview:fullscreen,.bpm-shell-v2 #main .shop-preview.is-expanded{min-height:0}}
