/* treleto's paper, ink and cobalt language, carried into useful motion. */
.sme .wm-moving-nav{position:relative;isolation:isolate}
.sme .wm-moving-nav>button{position:relative;z-index:1}
.sme .wm-nav-indicator{position:absolute;z-index:0;pointer-events:none;transform-origin:0 0;background:var(--bd-blue,#294bd3);border:1px solid var(--bd-ink,#292b27);border-radius:3px;box-shadow:3px 3px 0 var(--bd-ink,#292b27)}
.sme.wm-rich .wm-moving-nav>button[aria-current=page],.sme.wm-rich .wm-moving-nav>button[aria-pressed=true]{background:transparent!important;border-color:transparent!important;box-shadow:none!important;color:var(--bd-paper,#fffdf4)}
.sme .wm-card-surface{position:fixed;left:0;top:0;z-index:75;transform-origin:0 0;pointer-events:none;background:var(--bd-paper,#fffdf4);border:2px solid var(--bd-blue,#294bd3);border-radius:4px;box-shadow:4px 4px 0 var(--bd-ink,#292b27)}
.sme .wm-rolling-number{position:relative;display:inline-block;overflow:hidden;vertical-align:bottom}
.sme .wm-number-current{display:inline-block;white-space:nowrap}
.sme .wm-number-previous{position:absolute;inset:0;display:inline-block;white-space:nowrap;pointer-events:none}
.sme [data-motion-bar]{transform-origin:left center}
.sme .wm-completion-stamp{display:inline-block;margin:12px 8px 18px 0;padding:7px 11px;border:3px double var(--bd-blue,#294bd3);background:var(--bd-yellow,#eff481);color:var(--bd-blue,#294bd3);font:800 15px/1.1 'Courier New',monospace;letter-spacing:1.5px;transform:rotate(-6deg)}
.sme .wm-completed-heading{display:flex;align-items:center;justify-content:space-between;margin-top:18px;padding:16px 0 8px;border-top:2px solid var(--bd-ink,#292b27)}
.sme .wm-completed-heading h3{font:700 13px 'Courier New',monospace;text-transform:uppercase;margin:0}
.sme .wm-completed-heading>span{background:var(--bd-yellow,#eff481);padding:3px 7px;font:700 12px 'Courier New',monospace}
.sme .wm-research-desk{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:24px;max-width:900px;margin:30px auto 34px;padding:8px}
.sme .wm-desk-rail{position:absolute;top:52%;left:20px;right:20px;height:3px;z-index:-1;background:var(--bd-line,#cac7b8)}
.sme .wm-research-desk[data-active=true] .wm-desk-rail{background:linear-gradient(90deg,var(--bd-line,#cac7b8) 20%,var(--bd-blue,#294bd3) 50%,var(--bd-line,#cac7b8) 80%);background-size:200% 100%;animation:wm-desk-flow 2.4s linear infinite}
.sme .wm-document{position:relative;max-width:230px;width:100%;justify-self:center}
.sme .wm-document::before,.sme .wm-document::after{content:'';position:absolute;inset:0;border:1px solid var(--bd-line,#cac7b8);background:var(--bd-paper,#fffdf4);border-radius:2px;z-index:-1;transform:rotate(4deg) translate(3px,3px)}
.sme .wm-document::after{transform:rotate(-3deg) translate(-2px,2px)}
.sme .wm-document-sheet{position:relative;display:flex;flex-direction:column;gap:12px;min-height:174px;padding:16px;background:var(--bd-paper,#fffdf4);border:1px solid var(--bd-ink,#292b27);border-radius:2px;box-shadow:3px 3px 0 #292b271a}
.sme .wm-document-sheet>.bd-icon{color:var(--bd-blue,#294bd3);width:27px;height:27px}
.sme .wm-document-sheet>strong{font-size:15px;line-height:1.3}
.sme .wm-document-lines{display:grid;gap:5px}
.sme .wm-document-lines i{height:3px;background:var(--bd-line,#cac7b8);width:90%}
.sme .wm-document-lines i:nth-child(2){width:67%}
.sme .wm-document-lines i:nth-child(3){width:80%}
.sme .wm-document-status{display:flex;align-items:center;gap:7px;font:700 10px/1.4 'Courier New',monospace;margin-top:auto}
.sme .wm-document-status>.bd-icon{width:17px;height:17px;flex:none}
.sme .wm-research-desk[data-active=true] .wm-document[data-document-state=running] .wm-document-sheet{border-color:var(--bd-blue,#294bd3);box-shadow:4px 6px 0 #294bd326;animation:wm-paper-working 2s ease-in-out infinite}
.sme .wm-document[data-document-state=complete] .wm-document-status{color:var(--bd-blue,#294bd3)}
.sme .wm-document[data-document-state=complete] .wm-document-status>.bd-icon{background:var(--bd-yellow,#eff481);border-radius:50%;padding:2px;width:23px;height:23px}
.sme .wm-document[data-document-state=needs_attention] .wm-document-status{background:var(--bd-yellow,#eff481);padding:4px}
@keyframes wm-desk-flow{to{background-position:-200% 0}}
@keyframes wm-paper-working{50%{transform:translateY(-7px) rotate(-2deg)}}

.sme .wp-pipeline{margin:24px 0;min-width:0}
.sme .wp-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.sme .wp-toolbar h2{font-size:24px;margin:0 0 6px}
.sme .wp-toolbar p{font-size:12px;line-height:1.6;max-width:640px;margin:0;color:var(--bd-muted,#626458)}
.sme .wp-scroll-buttons{display:flex;gap:8px;flex:none}
.sme .wp-scroll-buttons button{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--bd-ink,#292b27);background:var(--bd-paper,#fffdf4);box-shadow:2px 2px 0 var(--bd-ink,#292b27);border-radius:3px;cursor:pointer;color:var(--bd-blue,#294bd3)}
.sme .wp-scroll-buttons button:first-child svg{transform:rotate(180deg)}
.sme .wp-total{font-size:13px;margin:18px 0 8px}
.sme .wp-total>span{display:block;font-size:12px;color:var(--bd-muted,#626458);margin-top:4px}
.sme .wp-live{font-size:13px;color:var(--bd-blue,#294bd3);margin:8px 0;min-height:20px}
.sme .wp-board{display:flex;gap:16px;overflow-x:auto;overscroll-behavior-x:contain;padding:6px 5px 20px;max-width:100%;scrollbar-color:var(--bd-blue,#294bd3) var(--bd-rail,#f0eee2);scrollbar-width:thin;scroll-behavior:auto}
.sme .wp-column{flex:0 0 260px;min-width:0;border:1px solid var(--bd-line,#cac7b8);background:var(--bd-rail,#f0eee2);border-radius:4px;padding:12px;min-height:340px}
.sme .wp-column>header{display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:2px 0 14px;border-bottom:2px solid var(--bd-blue,#294bd3);margin-bottom:14px}
.sme .wp-column h3{font-size:16px;margin:0;flex:1}
.sme .wp-column>header>span{display:inline-block;min-width:24px;text-align:center;background:var(--bd-yellow,#eff481);border:1px solid var(--bd-ink,#292b27);padding:3px 6px;font:700 12px 'Courier New',monospace}
.sme .wp-column>header>small{flex-basis:100%;font-size:12px}
.sme .wp-column.wp-closed>header{border-color:var(--bd-ink,#292b27)}
.sme .wp-cards{display:grid;gap:12px}
.sme .wp-card{padding:12px;border:1px solid var(--bd-ink,#292b27);border-radius:3px;box-shadow:3px 3px 0 var(--bd-ink,#292b27);background:var(--bd-paper,#fffdf4);min-width:0}
.sme .wp-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:-6px -5px 6px 0}
.sme .wp-card-top>.bd-label{font-size:10px;margin:0}
.sme .wp-handle{border:0;background:transparent;color:var(--bd-blue,#294bd3);padding:10px;min-width:44px;min-height:44px;display:grid;place-items:center;touch-action:none;cursor:grab;border-radius:3px}
.sme .wp-handle:disabled{opacity:.3;cursor:default}
.sme .wp-open{display:flex;flex-direction:column;align-items:flex-start;gap:9px;width:100%;text-align:left;padding:0;border:0;background:transparent;color:inherit;cursor:pointer}
.sme .wp-open>strong{font-size:21px;line-height:1.1;letter-spacing:-.4px;overflow-wrap:anywhere}
.sme .wp-open>span{font-size:12px;line-height:1.5}
.sme .wp-open>.wp-open-label{display:flex;align-items:center;gap:6px;color:var(--bd-blue,#294bd3);font-weight:650;margin-top:4px}
.sme .wp-open-label>.bd-icon{width:16px;height:16px}
.sme .wp-follow-up{display:flex;align-items:center;gap:7px;font-size:12px;margin:12px 0 0}
.sme .wp-follow-up>.bd-icon{width:16px;height:16px}
.sme .wp-card-value{font-size:17px;font-weight:700;margin:14px 0 0}
.sme .wp-card-value small{font-size:11px;font-weight:400}
.sme .wp-stage-label{display:flex;align-items:center;gap:8px;border-top:1px solid var(--bd-line,#cac7b8);padding-top:12px;margin-top:14px;font-size:11px}
.sme .wp-stage-label select{min-width:0;flex:1;width:100%;border:1px solid var(--bd-line,#cac7b8);background:var(--bd-paper,#fffdf4);color:inherit;font:inherit;padding:7px 3px;min-height:36px}
.sme .wp-empty{font-size:12px;text-align:center;padding:28px 6px;color:var(--bd-muted,#626458);border:1px dashed var(--bd-line,#cac7b8);border-radius:3px;line-height:1.6}
.sme .wp-empty span{display:block;color:var(--bd-blue,#294bd3);margin-top:6px}
.sme .wp-exclusion{font-size:11px;line-height:1.5;padding:10px 0 0;border-top:1px solid var(--bd-line,#cac7b8)}
.sme .wp-drop-target{outline:3px solid var(--bd-blue,#294bd3);outline-offset:-3px;background:#e6e9fb}
.sme .wp-picked{opacity:.38}
.sme.wp-dragging{user-select:none;cursor:grabbing}
.sme .wp-ghost{z-index:100;pointer-events:none;opacity:.96;box-shadow:7px 9px 0 #292b2730!important}
.sme .wp-detail-workbench{display:block}
.sme .wp-detail-workbench>.bd-master,.sme .wp-detail-workbench.wp-no-detail{display:none!important}
.sme .wp-detail-workbench:not(.wp-no-detail)>.bd-detail{display:block!important}
.sme #sme-content:has(.wp-detail-workbench:not(.wp-no-detail)) .wp-pipeline{display:none}
.sme .wp-back{display:inline-flex;margin:0 0 20px}
.sme .wp-pipeline[aria-busy=true] .wp-card{opacity:.75}
.sme .wp-pipeline :is(button,select):focus-visible,.sme .wp-board:focus-visible{outline:3px solid var(--bd-blue,#294bd3);outline-offset:3px}
.sme.wm-paused .wm-document-sheet,.sme.wm-paused .wm-desk-rail{animation-play-state:paused!important}
@media(max-width:700px){
 .sme .wm-research-desk{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;margin:22px 0;padding:4px}
 .sme .wm-document-sheet{padding:12px;min-height:164px;gap:10px}
 .sme .wm-document-sheet>strong{font-size:14px}
 .sme .wm-document-status{font-size:9px}
 .sme .wp-toolbar{gap:10px}.sme .wp-toolbar h2{font-size:21px}.sme .wp-toolbar p{font-size:11px}
 .sme .wp-scroll-buttons{gap:5px}.sme .wp-scroll-buttons button{width:38px;min-height:44px}
 .sme .wp-column{flex-basis:calc(100% - 32px);max-width:290px}.sme .wp-board{gap:12px}
 .sme .wp-stage-label select{min-height:44px}.sme .wm-completion-stamp{font-size:13px}
}
@media(prefers-reduced-motion:reduce){.sme .wm-document-sheet,.sme .wm-desk-rail{animation:none!important}.sme .wm-card-surface{display:none!important}}
@media print{.sme .wm-card-surface,.sme .wm-nav-indicator,.sme .wp-ghost{display:none!important}.sme .wm-document-sheet{animation:none!important}}
.sme .wp-column>header{height:auto;min-height:0;position:static}
.sme[data-view=growth]:has(.wp-pipeline) .bd-stats-grid>.bd-stat{padding:12px;min-height:0}
.sme[data-view=growth]:has(.wp-pipeline) .bd-stats-grid .bd-stat strong{font-size:32px}
.sme .bd-section-heading:has(#growth-stage){margin:12px 0 16px}
.sme .wp-total{margin-top:12px}
