/* PleaDraft Source Board: a generous canvas with optional reading panes. */
body.pd-workspace.sb-focused .clarity-content{padding:0!important;max-width:none!important;overflow:hidden!important}
body.sb-focused .clarity-workspace-footer{display:none}
.sb-workspace{--sb-line:#e3dfd5;--sb-muted:#817c71;--sb-source-width:280px;--sb-draft-width:330px;--sb-source-track:0px;--sb-source-divider:0px;--sb-draft-track:var(--sb-draft-width);--sb-draft-divider:5px;width:100%;height:var(--sb-height,calc(100dvh - 84px));min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#f8f7f3;color:var(--pd-ink-obsidian,#181a1f);font-family:var(--font-sans,'Plus Jakarta Sans',sans-serif)}
.sb-workspace *{box-sizing:border-box}
.sb-workspace .icon{width:17px;height:17px;flex:none}
.sb-workspace :is(button,a,input,select):focus-visible{outline:2px solid #b88a37;outline-offset:3px}
.sb-workspace .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:33px;margin:0;padding:6px 11px;border-radius:8px;font-size:11px!important;line-height:1.5;white-space:nowrap}
.sb-workspace .sb-icon{width:32px;min-width:32px;height:32px;min-height:32px;padding:6px;border:0;background:transparent}
.sb-workspace .sb-icon:hover{background:#f1eddf}
.sb-header{position:relative;z-index:35;display:flex;align-items:center;justify-content:space-between;flex:none;gap:18px;min-height:49px;padding:7px 16px;border-bottom:1px solid var(--sb-line);background:#fff}
.sb-header>div:first-child{display:flex;align-items:center;gap:13px;min-width:0}
.sb-header>div:first-child>div{display:flex;align-items:center;gap:16px;min-width:0}
.sb-header h1{flex:none;margin:0!important;font-size:17px!important;font-weight:600;line-height:1.5!important;letter-spacing:-.4px}
.sb-header select{width:auto;max-width:320px;min-width:0;height:29px;min-height:29px;padding:3px 23px 3px 0!important;border:0!important;background-color:transparent!important;background-position:right 3px center!important;box-shadow:none!important;color:var(--sb-muted);font-size:11px}
.sb-back{display:grid;place-items:center;flex:none;width:29px;height:32px;border:0;border-radius:7px;background:transparent;color:#8b7145}
.sb-back .icon{width:15px;height:15px;transform:rotate(180deg)}
.sb-back:hover{background:#f4f0e6}
.sb-header-actions,.sb-compact-actions{display:flex;align-items:center;gap:6px;flex:none}
body.pd-workspace .sb-workspace .sb-header-actions .btn[aria-pressed=true]{border-color:#d4bd8f;background:#f2e8d1;color:#8a6522!important}
body.pd-workspace .sb-workspace .sb-header-actions .btn[data-sb="layout:canvas"]{background:#24262b;border-color:#24262b;color:#fff!important}
body.pd-workspace .sb-workspace .sb-header-actions .btn[data-sb="layout:canvas"]:hover{background:#3a3b3f;border-color:#3a3b3f}
.sb-more{position:relative}
.sb-more>summary{display:grid;place-items:center;width:33px;height:33px;list-style:none;cursor:pointer;border:1px solid #e4dfd3;border-radius:8px;color:#756c5a;background:#fff}
.sb-more>summary::-webkit-details-marker{display:none}
.sb-more[open]>summary{background:#f5efe0;border-color:#d6c39e}
.sb-more-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:70;display:grid;gap:4px;min-width:190px;padding:7px;border:1px solid #e2dacc;border-radius:12px;background:#fff;box-shadow:0 12px 35px #24201818}
.sb-more-menu .btn{justify-content:flex-start;border:0!important;background:transparent!important;color:#514b40;text-align:left;min-height:35px}
.sb-more-menu .btn:hover{background:#f7f3e9!important}
.sb-device-tabs{display:none}
.sb-split{position:relative;display:grid;flex:1;grid-template-columns:var(--sb-source-track) var(--sb-source-divider) minmax(0,1fr) var(--sb-draft-divider) var(--sb-draft-track);min-width:0;min-height:0;overflow:hidden}
.sb-pane{position:relative;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:#fff}
.sb-source{grid-column:1;grid-row:1}
.sb-resizer-source{grid-column:2;grid-row:1}
.sb-board{grid-column:3;grid-row:1;background:#f6f4ed}
.sb-resizer-draft{grid-column:4;grid-row:1}
.sb-draft{grid-column:5;grid-row:1}
.sb-workspace[data-sb-source-open=true]{--sb-source-track:var(--sb-source-width);--sb-source-divider:5px}
.sb-workspace[data-sb-draft-open=false]{--sb-draft-track:0px;--sb-draft-divider:0px}
.sb-workspace[data-sb-source-open=false] :is(.sb-source,.sb-resizer-source),.sb-workspace[data-sb-draft-open=false] :is(.sb-draft,.sb-resizer-draft){display:none}
.sb-workspace[data-sb-layout=canvas]{--sb-source-track:0px;--sb-source-divider:0px;--sb-draft-track:0px;--sb-draft-divider:0px}
.sb-workspace[data-sb-layout=canvas] :is(.sb-source,.sb-draft,.sb-resizer){display:none!important}
.sb-pane-head{display:flex;align-items:center;justify-content:space-between;flex:none;gap:8px;min-height:46px;padding:9px 13px;border-bottom:1px solid var(--sb-line);background:#fff}
.sb-pane-head>div:first-child{min-width:0}
.sb-pane-head h2{margin:0;font-size:12px!important;font-weight:600;line-height:1.6!important;letter-spacing:-.1px}
.sb-pane-head h2>span{display:inline-block;margin-left:6px;padding:1px 6px;border-radius:5px;background:#f0eadc;color:#947035;font-size:10px;font-weight:500}
.sb-pane-head small{display:none}
.sb-pane-head .btn{min-height:28px;padding:4px 7px;font-size:10px!important}
.sb-pane-head .sb-icon{width:28px;min-width:28px;height:28px;min-height:28px}
.sb-source-controls,.sb-draft-controls{display:flex;flex-wrap:wrap;align-items:center;flex:none;gap:7px;padding:10px 12px;border-bottom:1px solid var(--sb-line);background:#fcfbf8}
.sb-workspace select,.sb-workspace input[type=search]{width:100%;min-width:0;max-width:100%;height:33px;min-height:33px;margin:0;padding:6px 28px 6px 10px;border:1px solid #e3dfd4;border-radius:7px;background-color:#fff;color:#393b3d;font:inherit;font-size:11px;box-shadow:none}
.sb-source-controls>select,.sb-draft-controls>select{flex:1 1 130px}
.sb-source-controls>label:not(.sr-only){display:flex;align-items:center;gap:5px;margin:0;font-size:10px;color:#887b63}
.sb-source-controls>label select{width:50px;max-width:60px;padding-left:7px;padding-right:20px;font-size:10px}
.sb-source-meta{display:flex;justify-content:space-between;gap:8px;width:100%;font-size:9px;line-height:1.5;color:#978e7d}
.sb-source-scroll{flex:1;min-height:0;overflow:auto;padding:15px 12px;background:#f6f4ee;overscroll-behavior:contain}
.sb-source-paper{min-height:100%;padding:21px 17px;border:1px solid #e5dfd1;border-radius:4px;background:#fffefb;color:#343536;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/1.85 Georgia,'Times New Roman',serif;user-select:text}
.sb-source-paper mark{border-radius:2px;background:#f2dfae;color:inherit;box-decoration-break:clone}
.sb-source-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;flex:none;gap:7px;padding:10px 12px;border-top:1px solid var(--sb-line);background:#fff}
.sb-source-footer>span{flex:1 1 100px;color:var(--sb-muted);font-size:9px;line-height:1.6}
.sb-source-footer .btn{font-size:10px!important}
.sb-tool-switch{display:flex;align-items:center;gap:1px;padding:2px;border:1px solid #e4ddcf;border-radius:8px;background:#f2eee5}
body.pd-workspace .sb-workspace .sb-tool-switch .btn{min-height:25px;padding:3px 8px;border:0;border-radius:5px;background:transparent;color:#81745e!important}
body.pd-workspace .sb-workspace .sb-tool-switch .btn:hover{background:#e9e2d4}
body.pd-workspace .sb-workspace .sb-tool-switch .btn[aria-pressed=true]{background:#fff;color:#8a6522!important;box-shadow:0 1px 3px #342c1c10}
.sb-board-viewport{position:relative;flex:1;min-width:0;min-height:0;overflow:hidden;background-color:#f6f4ed;background-image:radial-gradient(#baa87e55 1px,transparent 1px);background-size:21px 21px;overscroll-behavior:contain;touch-action:none;isolation:isolate;cursor:default}
.sb-workspace[data-sb-mode=pan] .sb-board-viewport,.sb-board-viewport.is-panning{cursor:grab}
.sb-board-viewport.is-panning:active{cursor:grabbing}
.sb-board-world{position:relative;width:100%;height:100%;min-width:0;min-height:0;overflow:visible;transform-origin:0 0;pointer-events:none;will-change:transform}
.sb-card{position:absolute;z-index:3;width:247px;border:1px solid #ded7c8;border-radius:12px;background:#fff;box-shadow:0 5px 16px #342c1c09;pointer-events:auto;cursor:grab;transition:border-color .15s,box-shadow .15s}
.sb-card:hover{border-color:#c7b78e;box-shadow:0 7px 20px #342c1c10}
.sb-card:focus-visible{outline:2px solid #b88a37;outline-offset:3px}
.sb-card.is-selected{z-index:6;border-color:#b78b3d;box-shadow:0 0 0 2px #c5964320,0 8px 24px #342c1c12}
.sb-card.is-dragging{z-index:9;border-color:#b78b3d;box-shadow:0 18px 35px #342c1c23;cursor:grabbing;transition:none}
.sb-card-drag{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 13px;border-bottom:1px solid #eee8dc;border-radius:12px 12px 0 0;background:#fcfaf4;cursor:grab;touch-action:none;user-select:none}
.sb-card.is-authority .sb-card-drag{background:#f1f5fa}
.sb-card.is-note .sb-card-drag{background:#f7f2f8}
.sb-card-drag>span:last-child{font-size:9px;color:#948670;line-height:1.5}
.sb-kind{display:inline-flex;align-items:center;gap:5px;color:#987129;font-size:10px;font-weight:600}
.sb-kind .icon{width:13px;height:13px}
.sb-card.is-authority .sb-kind{color:#5b7a9e}
.sb-card.is-note .sb-kind{color:#8a6c99}
.sb-card-main{padding:12px 14px 10px;overflow:hidden}
.sb-group{display:block;margin-bottom:5px;color:#a19376;font-size:9px;line-height:1.6}
.sb-card h3{margin:0 0 7px;font-size:13px!important;font-weight:600;line-height:1.55!important;letter-spacing:-.1px;overflow-wrap:anywhere}
.sb-card-quote{display:-webkit-box;max-height:110px;overflow:hidden;margin:0 0 10px!important;color:#625c51;font-size:12px!important;line-height:1.75!important;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-line-clamp:5;-webkit-box-orient:vertical;cursor:inherit;user-select:none}
.sb-card-annotation{max-height:65px;overflow:auto;margin:5px 0 10px!important;padding-left:8px;border-left:2px solid #ded2e5;color:#8a7293;font-size:10px!important;line-height:1.75!important;cursor:inherit;user-select:none}
.sb-source-reference{display:flex;align-items:flex-start;gap:5px;width:100%;padding:0;border:0;background:transparent;color:#96702f;text-align:left;font-size:10px;line-height:1.6;cursor:pointer}
.sb-source-reference .icon{width:12px;height:12px;margin-top:2px}
.sb-source-reference>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-review-state{display:inline-block;margin-top:7px;color:#8b8c7d;font-size:9px;line-height:1.6}
.sb-review-state.needs-review{padding:3px 6px;border-radius:4px;background:#fbede1;color:#aa6b3a}
.sb-card>footer{position:relative;display:flex;align-items:center;gap:5px;padding:7px 11px;border-top:1px solid #eee8dc}
.sb-card>footer button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:28px;padding:3px 5px;border:0;border-radius:5px;background:transparent;color:#8d7951;font-size:10px;cursor:pointer}
.sb-card>footer button:first-child{margin-right:auto}
.sb-card>footer .icon{width:13px;height:13px}
.sb-card>footer button:hover{background:#f4efdf}
.sb-card-port{width:24px;height:24px;min-height:24px!important;border:1px solid #c59643!important;border-radius:50%!important;background:#fff9ec!important;color:#a57c32!important;touch-action:none}
.sb-board-footer{position:absolute;z-index:28;left:15px;bottom:14px;display:flex;align-items:center;justify-content:space-between;gap:8px;width:max-content;max-width:calc(100% - 30px);min-height:37px;padding:4px 8px;border:1px solid #e4dccb;border-radius:10px;background:#fffefaf2;box-shadow:0 5px 18px #342c1c0b;color:#958a76;font-size:10px;backdrop-filter:blur(8px)}
.sb-board-footer>div{display:flex;align-items:center;gap:2px}
.sb-board-footer>label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:10px}
.sb-board-footer input{width:13px;height:13px;margin:0}
.sb-board-footer .btn{min-height:28px;padding:3px 7px;font-size:10px!important}
.sb-board-footer .sb-icon{width:28px;min-width:28px;height:28px}
.sb-saved{color:#a29680;font-size:9px;white-space:nowrap}
.sb-draft-scroll{flex:1;min-height:0;overflow:auto;padding:15px 13px;background:#efede5;overscroll-behavior:contain}
.sb-draft-paper{min-height:100%;padding:25px 20px;border:1px solid #e2dccd;border-radius:4px;background:#fffefb;color:#292929;box-shadow:0 3px 10px #342c1c06}
.sb-draft-paper>h3{margin:0 0 22px;text-align:center;font:600 14px/1.7 Georgia,'Times New Roman',serif;overflow-wrap:anywhere}
.sb-draft-block{position:relative;margin:0 -5px;padding:9px 5px 12px;border:1px solid transparent;border-radius:6px}
.sb-draft-block>p{margin:0!important;color:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font:14px/var(--sb-document-line,1.85) var(--sb-document-font,Georgia,'Times New Roman',serif)!important}
.sb-draft-block.is-selected{border-color:#c596434d;background:#f6e9ca77}
.sb-pin{position:relative;z-index:8;display:inline-flex;align-items:center;gap:5px;min-height:27px;margin-top:9px;padding:3px 8px;border:1px solid #e6dcc5;border-radius:12px;background:#f8f2e5;color:#94702e;font-family:inherit;font-size:9px;line-height:1.6;cursor:pointer;touch-action:none}
.sb-pin.needs-review{border-color:#ddb79d;background:#fcf0e6;color:#a65c34}
.sb-draft-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;flex:none;gap:6px;padding:8px 11px;border-top:1px solid var(--sb-line);background:#fff}
.sb-draft-footer .btn{font-size:10px!important}
.sb-link-warning{width:100%;padding:6px 8px;border-radius:6px;background:#fbf2df;color:#a66b38;font-size:10px;line-height:1.6}
.sb-resizer{position:relative;z-index:25;background:#e9e4d9;cursor:col-resize;touch-action:none}
.sb-resizer:hover,.sb-resizer:focus-visible{outline:none;background:#c59643}
.sb-tethers{position:absolute;z-index:12;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none}
.sb-tethers path{fill:none;stroke:#bb8e43;stroke-width:1.5;opacity:.8;filter:drop-shadow(0 1px 1px #fff)}
.sb-tethers path.is-contradicts{stroke:#bc6a59;stroke-dasharray:5 3}
.sb-tethers path.is-background{stroke:#9b9d94;stroke-dasharray:4 3}
.sb-tethers path.is-needs-instructions,.sb-tethers path.is-stale{stroke:#b57646;stroke-dasharray:3 5}
.sb-tethers .sb-pending-wire{stroke:#bd8c3b;stroke-width:2;stroke-dasharray:4 3}
.sb-empty{max-width:340px;margin:auto;padding:40px 24px;color:var(--sb-muted);text-align:center}
.sb-empty>span{display:grid;place-items:center;width:44px;height:46px;margin:0 auto 16px;border:1px solid #e2d9c5;border-radius:12px;background:#fbf7ec;color:#a17c39}
.sb-empty h3{margin:0 0 10px;color:#484338;font-size:15px!important;font-weight:550;line-height:1.7!important}
.sb-empty p{margin:0 0 20px!important;color:#908674;font-size:12px!important;line-height:1.85!important}
.sb-board-viewport>.sb-empty{position:absolute;z-index:2;top:50%;left:0;right:0;max-height:calc(100% - 24px);overflow:auto;padding:24px;transform:translateY(-50%);pointer-events:auto}
.sb-board-viewport.is-list{overflow:auto;touch-action:pan-y}
.sb-board-viewport.is-list .sb-board-world{display:grid;align-content:start;gap:16px;width:auto!important;height:auto!important;min-height:100%;padding:22px 22px 78px;transform:none!important;will-change:auto}
.sb-board-viewport.is-list .sb-card{position:relative!important;left:auto!important;top:auto!important;width:100%;max-width:660px;margin-inline:auto;cursor:default}
.sb-board-viewport.is-list .sb-card-drag{cursor:default;touch-action:pan-y}
.sb-focus-excerpt{display:grid;gap:9px;padding:16px 0;border-bottom:1px dashed #d9d1bf}
.sb-focus-excerpt>small{color:#9b927e;font:9px/1.8 sans-serif}
.sb-focus-excerpt>mark{white-space:pre-wrap}
.sb-focus-excerpt>.btn{width:max-content}
.sb-connections{display:grid;gap:12px}
.sb-connections article{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #e6e1d6;border-radius:10px}
.sb-connections article>div:first-child{flex:1;min-width:170px}
.sb-connections strong{font-size:12px}
.sb-connections p{margin:6px 0;font-size:11px;line-height:1.7}
.sb-proposal-sources{display:grid;gap:10px;max-height:220px;overflow:auto;margin:12px 0}
.sb-proposal-sources blockquote{margin:0;padding:12px;border-left:2px solid #c59643;background:#faf7ef;font-size:12px;line-height:1.8;white-space:pre-wrap}
.sb-entry-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0}
.sb-entry-actions .btn{margin:0}
.sb-review-summary{margin:12px 0;padding:12px 15px;border:1px solid #e6dcc5;border-radius:9px;font-size:11px;line-height:1.8}
.sb-editor-pin{display:inline-flex;align-items:center;gap:5px;margin:3px 0 8px;padding:3px 8px;border:1px solid #e5d4ac;border-radius:10px;background:#fbf7ec;color:#9c7634;font-family:var(--font-sans,sans-serif);font-size:10px;cursor:pointer}
.sb-pane[hidden]{display:none!important}
/* Canvas focus removes the application chrome, while native dialogs remain above it. */
body.sb-focused.sb-canvas-focus :is(.clarity-rail,.clarity-topbar,.clarity-workspace-footer){display:none!important}
body.sb-focused.sb-canvas-focus .clarity-shell>.workspace{margin-left:0!important}
body.sb-focused.sb-canvas-focus .sb-workspace{position:fixed;z-index:90;inset:0;height:100dvh!important;width:100vw;max-height:none}
body.sb-focused.sb-canvas-focus #modal-root{position:relative;z-index:120}
body.sb-focused.sb-canvas-focus :is(#toast,#jd-voice-dialog){z-index:140}
/* Container width, rather than the browser width, determines how many readers fit. */
.sb-workspace[data-sb-size=medium][data-sb-source-open=true]{--sb-draft-track:0px;--sb-draft-divider:0px}
.sb-workspace[data-sb-size=medium][data-sb-source-open=true] :is(.sb-draft,.sb-resizer-draft){display:none!important}
.sb-workspace[data-sb-size=medium] .sb-header{gap:10px;padding-inline:14px}
.sb-workspace[data-sb-size=medium] .sb-header select{max-width:220px}
.sb-workspace[data-sb-size=medium] .sb-header>div:first-child>div{gap:12px}
.sb-workspace[data-sb-size=medium] .sb-saved{display:none}
/* Phone and compact iPad: one useful work surface, with canvas and readable list modes. */
.sb-workspace[data-sb-size=compact] .sb-header{flex-wrap:nowrap;gap:8px;min-height:54px;padding:7px 10px}
.sb-workspace[data-sb-size=compact] .sb-header>div:first-child{flex:1 1 120px;gap:6px}
.sb-workspace[data-sb-size=compact] .sb-header>div:first-child>div{display:block;min-width:0}
.sb-workspace[data-sb-size=compact] .sb-header h1{font-size:16px!important;line-height:1.4!important}
.sb-workspace[data-sb-size=compact] .sb-header select{max-width:190px;height:24px;min-height:24px;font-size:10px}
.sb-workspace[data-sb-size=compact] .sb-back{display:none}
.sb-workspace[data-sb-size=compact] .sb-header-actions{gap:4px}
.sb-workspace[data-sb-size=compact] .sb-header-actions :is([data-sb="source-toggle"],[data-sb="draft-toggle"]){display:none}
.sb-workspace[data-sb-size=compact] .sb-header-actions .btn{min-height:31px;padding:6px 8px;font-size:10px!important}
.sb-workspace[data-sb-size=compact] .sb-device-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:none;gap:4px;padding:7px 12px;border-bottom:1px solid var(--sb-line);background:#fff}
.sb-device-tabs button{min-height:33px;padding:6px 14px;border:0;border-radius:7px;background:transparent;color:#8a7f6a;font-family:inherit;font-size:11px;font-weight:500;line-height:1.5;cursor:pointer}
.sb-device-tabs button[aria-selected=true]{background:#f0e5ce;color:#8a6522}
.sb-workspace[data-sb-size=compact] .sb-split{display:block}
.sb-workspace[data-sb-size=compact] .sb-pane{display:none!important;width:100%;height:100%}
.sb-workspace[data-sb-size=compact][data-sb-pane=source] .sb-source,.sb-workspace[data-sb-size=compact][data-sb-pane=board] .sb-board,.sb-workspace[data-sb-size=compact][data-sb-pane=draft] .sb-draft{display:flex!important}
.sb-workspace[data-sb-size=compact] .sb-pane[hidden]{display:none!important}
.sb-workspace[data-sb-size=compact] :is(.sb-resizer,.sb-tethers){display:none!important}
.sb-workspace[data-sb-size=compact] .sb-pane-head{min-height:42px;padding:8px 12px}
.sb-workspace[data-sb-size=compact] .sb-card{width:247px}
.sb-workspace[data-sb-size=compact] .sb-card>footer{padding-block:8px}
.sb-workspace[data-sb-size=compact] .sb-card>footer button{min-height:32px}
.sb-workspace[data-sb-size=compact] .sb-card-port{width:29px;height:29px;min-height:29px!important}
.sb-workspace[data-sb-size=compact] .sb-board-footer{left:10px;bottom:10px;max-width:calc(100% - 20px);min-height:36px;gap:6px;padding:4px 6px}
.sb-workspace[data-sb-size=compact] .sb-board-footer .sb-saved{display:none}
.sb-workspace[data-sb-size=compact] .sb-source-scroll,.sb-workspace[data-sb-size=compact] .sb-draft-scroll{padding:14px}
.sb-workspace[data-sb-size=compact] .sb-source-paper{padding:24px 21px;font-size:15px}
.sb-workspace[data-sb-size=compact] .sb-draft-paper{padding:28px 22px}
.sb-workspace[data-sb-size=compact] .sb-pin{min-height:32px;padding:4px 9px}
.sb-workspace[data-sb-size=compact] .sb-source-footer{padding:11px 14px}
.sb-workspace[data-sb-size=compact] .sb-source-footer .btn{min-height:38px;font-size:11px!important}
.sb-workspace[data-sb-size=compact][data-sb-mobile-view=list] .sb-board-viewport{overflow:auto;touch-action:pan-y}
.sb-workspace[data-sb-size=compact][data-sb-mobile-view=list] .sb-board-world{display:grid;align-content:start;gap:15px;width:auto!important;height:auto!important;min-height:100%;padding:17px 17px 75px;transform:none!important;will-change:auto}
.sb-workspace[data-sb-size=compact][data-sb-mobile-view=list] .sb-card{position:relative!important;left:auto!important;top:auto!important;width:100%;max-width:440px;margin-inline:auto;cursor:default}
.sb-workspace[data-sb-size=compact][data-sb-mobile-view=list] .sb-card-drag{touch-action:pan-y;cursor:default}
.sb-workspace[data-sb-size=compact][data-sb-mobile-view=list] .sb-card-quote{-webkit-line-clamp:6;max-height:135px}
@media(min-width:1200px){body.pd-workspace .pd-home-workflows:has(a[href="#/P31"]){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:701px) and (max-width:1199px){body.pd-workspace .pd-home-workflows:has(a[href="#/P31"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){.sb-workspace *{scroll-behavior:auto!important;transition:none!important}}
/* Keep the board tools compact against the shell's broader control sizing. */
body.pd-workspace .sb-workspace .btn{min-height:33px;padding:6px 11px;border-radius:8px;font-size:11px!important;line-height:1.5!important}
body.pd-workspace .sb-workspace .sb-icon{width:32px;min-width:32px;height:32px;min-height:32px;padding:6px}
body.pd-workspace .sb-workspace .sb-pane-head .btn{min-height:28px;padding:4px 7px;font-size:10px!important}
body.pd-workspace .sb-workspace .sb-pane-head .sb-icon{width:28px;min-width:28px;height:28px;min-height:28px}
body.pd-workspace .sb-workspace .sb-tool-switch .btn{min-height:25px;padding:3px 8px}
body.pd-workspace .sb-workspace .sb-board-footer .btn{min-height:28px;padding:3px 7px;font-size:10px!important}
body.pd-workspace .sb-workspace .sb-board-footer .sb-icon{width:28px;min-width:28px;height:28px;min-height:28px}
body.pd-workspace .sb-workspace :is(select,input[type=search]){height:33px;min-height:33px;font-size:11px!important;line-height:1.5!important}
body.pd-workspace .sb-workspace .sb-header select{height:29px;min-height:29px}
body.pd-workspace .sb-workspace[data-sb-size=compact] .btn{min-height:40px}
body.pd-workspace .sb-workspace[data-sb-size=compact] :is(select,input[type=search]){height:40px;min-height:40px;font-size:16px!important}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-header select{height:26px;min-height:26px;font-size:11px!important}

body.pd-workspace .sb-workspace .sb-identity{column-gap:16px!important}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-identity{column-gap:0!important}

/* Two compact rows: document context, then one canvas tool strip. */
@media(min-width:1001px){
  body.pd-workspace.sb-focused .clarity-topbar{display:none!important}
}
body.pd-workspace .sb-workspace .sb-glyph{display:inline-block;flex:none;width:20px;height:20px;font-family:remixicon!important;font-size:20px!important;font-style:normal;font-weight:400!important;line-height:20px!important;text-align:center;vertical-align:middle}
body.pd-workspace .sb-workspace .sb-header-actions{gap:5px}
body.pd-workspace .sb-workspace .sb-header-actions .sb-action{width:34px;min-width:34px;height:34px;min-height:34px;padding:6px;border:1px solid transparent;background:transparent;color:#766c59!important}
body.pd-workspace .sb-workspace .sb-header-actions .sb-action:hover{background:#f4f0e6;border-color:#e3d9c6}
body.pd-workspace .sb-workspace .sb-header-actions .sb-action[aria-pressed=true]{border-color:#dfcba4;background:#f3ead7;color:#8a6522!important}
body.pd-workspace .sb-workspace .sb-header-actions .sb-action[data-sb="layout:canvas"]{background:#24262b;border-color:#24262b;color:#fff!important}
body.pd-workspace .sb-workspace .sb-header-actions .sb-action[data-sb="layout:canvas"]:hover{background:#3a3b3f;border-color:#3a3b3f}
.sb-canvas-toolbar{position:relative;z-index:32;display:flex;align-items:center;flex:none;gap:10px;min-width:0;min-height:45px;padding:5px 12px;border-bottom:1px solid var(--sb-line);background:#fbfaf6}
.sb-card-count{display:flex;align-items:center;justify-content:center;flex:none;gap:5px;min-width:36px;padding-right:10px;border-right:1px solid #e7e0d3;color:#9a8b6d;font-size:10px;line-height:1.5;white-space:nowrap}
body.pd-workspace .sb-workspace .sb-card-count .sb-glyph{width:17px;height:18px;font-size:17px!important;line-height:18px!important}
.sb-toolbar-primary,.sb-toolbar-secondary{display:flex;align-items:center;flex:none;gap:4px;min-width:0}
.sb-toolbar-secondary{margin-left:auto}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-action{display:grid;place-items:center;width:32px;min-width:32px;height:32px;min-height:32px;padding:5px;border:1px solid transparent;border-radius:7px;background:transparent;color:#81745e!important;box-shadow:none}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-action:hover{border-color:#e2d7c4;background:#f0eadf;color:#8a6522!important}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-action[aria-pressed=true]{border-color:#decca8;background:#f1e5ce;color:#8a6522!important}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-glyph{width:18px;height:18px;font-size:18px!important;line-height:18px!important}
.sb-canvas-toolbar .sb-tool-switch{gap:1px;padding:2px;border:1px solid #e4ddcf;border-radius:8px;background:#f0ece2}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-tool-switch .sb-action{width:28px;min-width:28px;height:28px;min-height:28px;padding:4px;border:0;border-radius:5px}
body.pd-workspace .sb-workspace .sb-canvas-toolbar .sb-tool-switch .sb-action[aria-pressed=true]{background:#fff;box-shadow:0 1px 3px #342c1c10;color:#8a6522!important}
.sb-popover{position:relative;flex:none}
.sb-popover>summary{display:grid;place-items:center;width:32px;height:32px;min-width:32px;min-height:32px;padding:5px;border:1px solid transparent;border-radius:7px;list-style:none;background:transparent;color:#81745e;cursor:pointer}
.sb-popover>summary::-webkit-details-marker{display:none}
.sb-popover>summary:hover{border-color:#e2d7c4;background:#f0eadf;color:#8a6522}
.sb-popover[open]>summary,.sb-popover[data-active=true]>summary{border-color:#dfcba4;background:#f2e7d1;color:#8a6522}
.sb-popover-panel{position:absolute;top:calc(100% + 9px);right:0;z-index:65;display:grid;gap:8px;width:260px;max-width:calc(100vw - 32px);max-height:calc(var(--sb-height,700px) - 120px);padding:12px;border:1px solid #e0d7c4;border-radius:10px;background:#fff;box-shadow:0 10px 30px #342c1c1c;overflow:auto}
.sb-popover-panel>label:not(.sr-only){margin:0;font-size:11px;font-weight:500;line-height:1.6;color:#82735a}
body.pd-workspace .sb-workspace .sb-popover-panel input[type=search]{padding:6px 9px}
.sb-popover-toggle:focus-visible,.sb-more-toggle:focus-visible{outline:2px solid #b88a37;outline-offset:2px}
body.pd-workspace .sb-workspace .sb-board-footer .sb-action{width:28px;min-width:28px;height:28px;min-height:28px;padding:4px;border:0;background:transparent;color:#8a7852!important}
body.pd-workspace .sb-workspace .sb-board-footer .sb-action:hover{background:#f4efdf}
body.pd-workspace .sb-workspace .sb-board-footer .sb-action .sb-glyph{width:16px;height:16px;font-size:16px!important;line-height:16px!important}
.sb-workspace[data-sb-size=compact] .sb-canvas-toolbar{gap:6px;min-height:49px;padding:4px 8px}
.sb-workspace[data-sb-size=compact] .sb-card-count{min-width:31px;gap:4px;padding-right:6px}
.sb-workspace[data-sb-size=compact] .sb-toolbar-primary,.sb-workspace[data-sb-size=compact] .sb-toolbar-secondary{gap:2px}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-canvas-toolbar .sb-action,.sb-workspace[data-sb-size=compact] .sb-popover>summary{width:40px;min-width:40px;height:40px;min-height:40px;padding:8px}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-canvas-toolbar .sb-tool-switch .sb-action{width:36px;min-width:36px;height:36px;min-height:36px;padding:6px}
.sb-workspace[data-sb-size=compact] .sb-canvas-toolbar .sb-tool-switch{padding:1px;gap:0}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-canvas-toolbar .sb-glyph{width:19px;height:19px;font-size:19px!important;line-height:19px!important}
.sb-workspace[data-sb-size=compact] .sb-popover-panel{right:0;width:245px;max-width:calc(100vw - 28px)}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-header-actions .sb-action{width:36px;min-width:36px;height:36px;min-height:36px;padding:7px}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-header-actions .sb-more>summary{width:36px;min-width:36px;height:36px;min-height:36px}
@media(max-width:360px){
  .sb-workspace[data-sb-size=compact] .sb-canvas-toolbar{gap:3px;padding-inline:4px}
  .sb-workspace[data-sb-size=compact] .sb-card-count{display:none}
  .sb-workspace[data-sb-size=compact] .sb-toolbar-primary,.sb-workspace[data-sb-size=compact] .sb-toolbar-secondary{gap:1px}
  .sb-workspace[data-sb-size=compact] .sb-header h1{font-size:15px!important}
  .sb-workspace[data-sb-size=compact] .sb-header select{max-width:170px}
}
body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-popover>summary{width:40px;min-width:40px;height:40px;min-height:40px;padding:8px}
.sb-workspace[data-sb-size=compact] .sb-search-popover .sb-popover-panel{right:-44px}

body.pd-workspace .sb-workspace .sb-board-footer .sb-action[aria-pressed=true]{background:#f1e5ce;color:#8a6522!important}
.sb-source-reference .sb-glyph,.sb-card>footer .sb-glyph{width:15px!important;height:15px!important;font-size:15px!important;line-height:15px!important}

/* Match glyph metrics to their boxes; larger inherited font metrics offset the
   external-link, edit and add glyphs even when their buttons are centered. */
body.pd-workspace .sb-workspace :is(.sb-source-reference,.sb-card>footer) .sb-glyph{
  display:grid;place-items:center;width:16px!important;height:16px!important;
  font-size:16px!important;line-height:16px!important;margin:0;letter-spacing:0;
}
body.pd-workspace .sb-workspace :is(.sb-source-reference,.sb-card>footer) .sb-glyph::before{display:block;line-height:1}
body.pd-workspace .sb-workspace .sb-kind .sb-glyph{width:14px!important;height:14px!important;font-size:14px!important;line-height:14px!important}
body.pd-workspace .sb-workspace .sb-card>footer button:is(.sb-card-port,[data-sb^="edit:"]){
  display:grid;place-items:center;box-sizing:border-box;flex:0 0 32px;
  width:32px;min-width:32px;height:32px;min-height:32px;padding:0;gap:0;
}
body.pd-workspace .sb-workspace .sb-card>footer .sb-card-port{
  width:32px;height:32px;min-width:32px;min-height:32px!important;padding:0;
  border-width:1px!important;line-height:1;letter-spacing:0;
}
body.pd-workspace .sb-workspace .sb-source-reference{gap:8px}
body.pd-workspace .sb-workspace .sb-source-reference>.sb-glyph{margin-top:2px}
body.pd-workspace .sb-workspace .sb-icon{display:grid;place-items:center;box-sizing:border-box}

/* Matter detail actions share one wrapping row, without a separate AI banner. */
body.pd-workspace .clarity-content[data-clarity-page=P03] .app-pagehead{align-items:flex-start;gap:24px}
body.pd-workspace .clarity-content[data-clarity-page=P03] .app-pagehead>div:first-child{min-width:0;flex:1 1 380px}
body.pd-workspace .clarity-content[data-clarity-page=P03] .sb-matter-actions{
  display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;
  flex-wrap:wrap;gap:8px;margin:0;min-width:0;
}
body.pd-workspace .sb-matter-actions>.btn{margin:0;flex:0 0 auto}
body.pd-workspace .sb-matter-actions .sb-matter-ai-glyph{display:block;width:17px;height:17px;font-family:remixicon!important;font-size:17px!important;line-height:17px!important;font-style:normal;font-weight:400!important;letter-spacing:0}
body.pd-workspace .sb-matter-summary{margin-block:24px 0;overflow:hidden}
body.pd-workspace .sb-matter-summary .panel-head{padding:18px 24px}
.sb-summary-heading{display:flex;align-items:center;gap:12px;min-width:0}
.sb-summary-heading h2{margin:0}
.sb-summary-symbol{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:9px;background:var(--background-selected,#f0ece2);color:var(--pd-accent-dark-brass,#8a6522)}
.sb-summary-symbol i{font-family:remixicon!important;font-style:normal;font-weight:400!important;font-size:19px!important;line-height:1!important}
body.pd-workspace .sb-matter-summary .sb-summary-body{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:24px;padding:24px}
.sb-summary-stats{display:flex;flex-wrap:wrap;gap:20px 40px;margin:0;min-width:0}
.sb-summary-stats>div{display:flex;flex-direction:column;gap:6px;min-width:90px}
.sb-summary-stats dt{color:var(--pd-muted,#65645f);font-size:13px;line-height:1.6}
.sb-summary-stats dd{margin:0;color:var(--pd-ink-obsidian,#181a1f);font-family:'JetBrains Mono',monospace;font-size:22px;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums lining-nums}
.sb-matter-summary .sb-entry-actions{margin:0;gap:8px}
.sb-matter-summary .sb-entry-actions i{font-family:remixicon!important;font-style:normal;font-size:17px!important;line-height:1!important}
@media(max-width:900px){
  body.pd-workspace .clarity-content[data-clarity-page=P03] .app-pagehead{flex-wrap:wrap}
  body.pd-workspace .clarity-content[data-clarity-page=P03] .sb-matter-actions{flex-basis:100%;justify-content:flex-start;width:auto}
}
@media(max-width:760px){
  body.pd-workspace .clarity-content[data-clarity-page=P03] .app-pagehead>div:first-child{flex:0 1 auto;width:100%}
  body.pd-workspace .clarity-content[data-clarity-page=P03] .sb-matter-actions{flex:0 1 auto;width:100%}
}
@media(max-width:600px){
  body.pd-workspace .sb-matter-summary .panel-head{padding:16px 18px}
  body.pd-workspace .sb-matter-summary .sb-summary-body{padding:18px;gap:20px}
  .sb-summary-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%}
  .sb-summary-stats>div{min-width:0}
  .sb-summary-stats dt{font-size:12px;overflow-wrap:anywhere}
  body.pd-workspace .sb-workspace[data-sb-size=compact] .sb-card>footer button:is(.sb-card-port,[data-sb^="edit:"]){flex-basis:36px;width:36px;min-width:36px;height:36px;min-height:36px!important;padding:0}
}
