.dg-shell{margin:25px 0;border:3px solid #7c596f;border-radius:12px;background:#fffefa;box-shadow:0 4px 0 #c7acba;overflow:hidden}.dg-top{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;background:linear-gradient(#b998ab,#a27d94);border-bottom:2px solid #7c596f}.dg-shell button,.dg-shell select{font:inherit;min-height:36px;border:1px solid #b79aa9;border-radius:4px;padding:6px 10px;background:#fffaf3;color:#705064;cursor:pointer}.dg-top #dgMode{background:#805d77;color:white;border-color:#67475f;font-size:17px;max-width:45%}#dgToolbar{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}#dgToolbar button{background:#805d77;color:#fffefa;border-color:#67475f}#dgToolbar .dg-icon{width:36px;padding:5px}#dgToolbar svg{width:24px;height:24px}.dg-shell button:disabled{opacity:.4;cursor:default}.dg-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:12px;border-bottom:1px solid #d8c4cc;font-size:14px}.dg-controls label,.dg-bottom label{display:flex;align-items:center;gap:8px;margin:0}.dg-shell [aria-pressed=true]{background:#805d77;color:white}.dg-work{display:flex;position:relative;min-height:500px}.dg-data{flex:0 0 34%;min-width:180px;max-width:70%;border-right:1px solid #d8c4cc;background:#faf4ee;overflow:hidden}.dg-clipboard{display:flex;flex-wrap:wrap;padding:8px;gap:5px}.dg-clipboard button{font-size:13px;padding:5px 7px}.dg-table-scroll{max-height:480px;overflow:auto}#dgTable{border-collapse:collapse;width:100%;font-size:14px;background:#fffdfa}#dgTable th{position:sticky;top:0;background:#eee0e6;z-index:1}#dgTable th,#dgTable td{padding:0;border:1px solid #cdb8c1}#dgTable th button{border:0;font-size:14px;width:100%;border-radius:0}#dgTable input{width:100%;min-width:55px;box-sizing:border-box;border:2px solid transparent;border-radius:0;background:transparent;font:inherit;color:#493641;padding:10px 6px;min-height:40px}#dgTable input.dg-selected{background:#eedce7;border-color:#9a748a}#dgTable tr.dg-highlight{background:#fff0b8}#dgSplitter{width:10px;min-width:10px;background:linear-gradient(90deg,#e7d7e0,#c6aab9,#e7d7e0);cursor:col-resize;touch-action:none}#dgSplitter:focus-visible{outline:3px solid #345178}.dg-graph{flex:1;min-width:0;padding:12px 12px 0}#dgTitle{display:block;font:600 23px/1.3 inherit;font-family:inherit;font-size:22px;width:100%;box-sizing:border-box;border:1px dashed #ceb7c2;background:transparent;text-align:center;color:#503b48;padding:10px;border-radius:3px}#dgBoard{display:block;width:100%;height:auto;min-height:330px;touch-action:none;user-select:none}#dgBoard [data-point],#dgBoard [data-bar],#dgBoard [data-sector],#dgBoard [data-picto],#dgBoard [data-label]{cursor:pointer;outline:none}#dgBoard [tabindex]:focus-visible{stroke:#172f61;stroke-width:4}#dgKey{text-align:center;font-size:14px;min-height:20px;margin:0 0 8px}.dg-bottom{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:10px 14px;background:linear-gradient(#f2e8ed,#e5d5df);border-top:1px solid #c7adbb;font-size:14px}#dgStatus{margin:0;flex:1;min-width:170px}#dgScale{width:110px;accent-color:#805d77}#dgPercent{width:19px;height:19px;accent-color:#805d77}.dg-shell [hidden]{display:none!important}#dgHeaderOptions{padding:10px;background:#f1e6eb;font-size:14px}#dgHeaderOptions input,#dgHeaderOptions select{width:100%;box-sizing:border-box;font:inherit;padding:7px}#dgHeaderOptions button{font-size:13px;margin:4px}#dgCreateEdit{display:flex;gap:10px;flex-wrap:wrap;padding:8px}#dgCreateEdit label{display:flex;gap:5px;align-items:center;margin:0;font-size:14px}#dgCreateEdit input{font:inherit;padding:6px;max-width:100px;border:1px solid #b79aa9}#dgOptionsDialog{border:2px solid #8a647d;border-radius:12px;background:#fffaf3;color:#503b48;max-width:450px;width:85%}#dgOptionFields{display:grid;gap:12px}#dgOptionFields label{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:16px}#dgOptionFields select,#dgOptionFields input{max-width:170px;font:inherit;padding:6px}#dgOptionsDialog button{font:inherit;padding:9px 15px;margin-top:16px}#dgOptionsDialog::backdrop{background:#46303b66}#dgHelp{padding:18px 0}#dgHelp summary{cursor:pointer;font-weight:600}#dgHelpText{font-size:16px;line-height:1.6}#dgNotes{position:absolute;inset:0;pointer-events:none;overflow:hidden}.dg-note{position:absolute;width:180px;min-width:130px;height:110px;min-height:80px;max-width:95%;resize:both;overflow:hidden;border:1px solid #aa8299;border-radius:4px;background:#fff9d8;pointer-events:auto;display:flex;flex-direction:column}.dg-note header{background:#e5d2db;display:flex;justify-content:space-between;align-items:center;font-size:12px;padding:3px 6px;cursor:move;touch-action:none}.dg-note button{min-height:22px;font-size:16px;padding:0 5px;border:0;background:transparent}.dg-note textarea{flex:1;min-height:0;width:100%;box-sizing:border-box;border:0;background:transparent;font:16px/1.4 system-ui;padding:7px;resize:none}.dg-note[data-arrow=true]{overflow:visible}.dg-note[data-arrow=true]:before{content:'';position:absolute;left:50%;top:100%;height:45px;width:2px;background:#79536c;pointer-events:none}.dg-note[data-arrow=true]:after{content:'';position:absolute;left:calc(50% - 4px);top:calc(100% + 37px);width:8px;height:8px;border-bottom:2px solid #79536c;border-right:2px solid #79536c;transform:rotate(45deg);pointer-events:none}.is-big .dg-work{min-height:65vh}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #345178;outline-offset:2px}@media(max-width:700px){.dg-work{flex-direction:column}.dg-data{max-width:100%;flex-basis:auto;width:100%!important}.dg-table-scroll{max-height:230px}#dgSplitter{display:none}.dg-top{flex-wrap:wrap}.dg-top #dgMode{max-width:100%}.dg-controls{gap:7px}#dgBoard{min-height:300px}.dg-graph{padding:8px}.dg-bottom{font-size:13px}}
/* Plain movable note cards, matching the tool reference. */
.dg-note{width:210px;height:150px;min-width:130px;min-height:95px;background:#fff;border:2px solid #aaa;border-radius:10px;overflow:hidden!important;box-shadow:none;z-index:2}.dg-note header{height:34px;min-height:34px;box-sizing:border-box;background:linear-gradient(#b494a8,#9c788e);padding:0 7px;justify-content:flex-end;border-radius:7px 7px 0 0}.dg-note header button{font:28px/1 system-ui;color:#fff;min-height:28px;min-width:28px;padding:0;background:transparent;border:0;box-shadow:none}.dg-note textarea{background:#fff;color:#40363b;border:0!important;border-radius:0;padding:10px 12px;outline-offset:-3px;font:18px/1.4 system-ui;box-shadow:none}.dg-note[data-arrow=true]:before,.dg-note[data-arrow=true]:after{display:none}.dg-note-arrows{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}.dg-note-arrows circle{pointer-events:all;cursor:move;touch-action:none}.dg-note-arrows circle:hover,.dg-note-arrows circle:focus-visible{fill:#b4463e22;stroke:#b4463e;stroke-width:2;outline:none}.dg-note-focused{border-color:#8b647d}
.dg-shell[data-mode=create] .dg-work{min-height:520px;background:#fff}.dg-shell[data-mode=create] .dg-graph{background:#fff;padding:12px}.dg-shell[data-mode=create] #dgBoard{min-height:420px}.dg-shell[data-mode=create] .dg-bottom{justify-content:flex-end;padding:8px 12px;gap:10px}.dg-shell[data-mode=create] .dg-controls{padding:0;border:0;justify-content:flex-end;margin-left:auto}.dg-shell[data-mode=create] .dg-controls>label{order:1}.dg-shell[data-mode=create] .dg-controls>label>span{display:none}.dg-shell[data-mode=create] #dgType{min-width:240px;font-size:18px;min-height:42px}.dg-shell[data-mode=create] #dgPointer{order:2}.dg-shell[data-mode=create] #dgErase{order:3}.dg-shell[data-mode=create] #dgOptions{order:4}.dg-shell[data-mode=create] #dgStatus{display:none}#dgPointer,#dgErase{width:40px;min-width:40px;height:40px;padding:7px}#dgPointer svg,#dgErase svg{display:block;width:24px;height:24px}#dgBoard:empty{min-height:500px}.dg-shell[data-mode=create] .dg-graph:has(#dgTitle[hidden]){padding:0}.dg-shell[data-mode=create] #dgCreateEdit:empty{display:none}@media(max-width:700px){.dg-shell[data-mode=create] #dgType{min-width:175px;max-width:100%;font-size:16px}.dg-shell[data-mode=create] .dg-controls{justify-content:flex-start}.dg-shell[data-mode=create] .dg-controls>label{width:100%}.dg-shell[data-mode=create] .dg-work{min-height:420px}.dg-shell[data-mode=create] #dgBoard{min-height:400px}}
/* Guide-aligned graph workspaces and graph-specific tools. */
#dgCanvas{position:relative;background:#fff;min-height:430px}#dgCanvas #dgBoard{width:100%;min-height:400px;height:auto;aspect-ratio:800/540}.dg-shell .dg-graph{background:#fff}.dg-bottom{min-height:58px}.dg-bottom>.dg-controls{margin-left:auto;padding:0;border:0}.dg-bottom>.dg-controls>label>span{display:none}.dg-bottom>.dg-controls select{min-width:230px;font-size:17px}.dg-bottom>#dgCut,.dg-bottom>#dgCopy,.dg-bottom>#dgPaste{font-size:14px}.dg-bottom>#dgStatus{display:none}#dgTitle{border:0;background:#fff;min-height:42px;font-size:21px;padding:7px}#dgTitle:focus{outline:2px solid #9c788e;outline-offset:-2px}#dgTableToggle{position:absolute;right:8px;top:8px;z-index:2;width:36px;height:34px;font-size:0;padding:5px;border:1px solid #b99ba9;background:#f8f2f6}#dgTableToggle:before{content:'▦';font-size:24px;color:#805d77;line-height:1}#dgCreateTools{position:absolute;right:8px;bottom:25px;display:flex;gap:6px;align-items:center;z-index:2}#dgCreateTools button{width:34px;height:34px;padding:0;font-size:24px;line-height:1}#dgCreateTools #dgPercentLabel{position:absolute;bottom:-30px;right:0;white-space:nowrap;font-size:14px;display:flex;align-items:center;gap:6px}#dgGraphPalette{position:absolute;left:0;top:30%;z-index:3;width:52px;display:flex;flex-direction:column;gap:7px;padding:8px 3px;background:#faf5ef;border-right:1px solid #cfbcc6}#dgGraphPalette[data-type=lineplot]{top:auto;bottom:-25px;background:transparent;border:0;width:auto;flex-direction:row}#dgGraphPalette .dg-palette-symbol{width:44px;height:44px;padding:2px;min-height:44px;border:0;background:transparent;cursor:grab;touch-action:none}#dgGraphPalette svg{width:40px;height:40px;display:block}#dgGraphPalette .dg-palette-toggle{position:absolute;left:100%;top:40%;padding:0;width:17px;min-height:40px;background:#faf5ef;border-left:0;border-radius:0 5px 5px 0}#dgGraphPalette.dg-palette-closed{width:0;padding:0;border:0}#dgGraphPalette.dg-palette-closed .dg-palette-symbol{display:none}#dgGraphPalette[data-type=lineplot] .dg-palette-toggle{display:none}.dg-key-button{cursor:pointer;border:1px solid #c5b0be;border-radius:4px;width:fit-content;padding:5px 10px;margin:0 auto 8px!important}#dgSectorColours{position:absolute;left:38%;top:35%;z-index:5;display:flex;gap:6px;flex-wrap:wrap;width:170px;padding:10px;border:1px solid #b99ba9;background:#fffaf3;border-radius:6px;box-shadow:0 5px 18px #70506433}#dgSectorColours button{width:30px;height:30px;min-height:30px;border:1px solid #66505d;padding:0}.dg-vertical-scale{position:absolute;left:12px;top:35px;bottom:95px;z-index:2;display:flex;flex-direction:column;font-size:0!important;width:34px;gap:5px!important}.dg-vertical-scale #dgScale{writing-mode:vertical-lr;direction:rtl;width:20px!important;height:100%;min-height:100px;margin:0;accent-color:#9c788e}.dg-vertical-scale output{font-size:14px}.dg-shell[data-mode=create] #dgCreateEdit{display:none}.dg-shell[data-mode=create] .dg-controls #dgAdd{display:none}.dg-shell[data-mode=create] .dg-controls #dgTableToggle{display:none}.dg-shell[data-mode=create] .dg-work{min-height:480px}.dg-shell[data-mode=create] #dgCanvas #dgBoard{min-height:430px}.dg-note:not(:focus-within).dg-empty-note{background:transparent;border-color:transparent;resize:none}.dg-empty-note:not(:focus-within) header,.dg-empty-note:not(:focus-within) textarea{opacity:0}.dg-empty-note:hover header{opacity:1}@media(max-width:700px){.dg-bottom>.dg-controls select{min-width:170px;font-size:15px}.dg-bottom{gap:5px}.dg-bottom>.dg-controls{width:auto;flex:1}.dg-shell[data-mode=create] .dg-controls>label{width:auto}.dg-bottom>#dgCut,.dg-bottom>#dgCopy,.dg-bottom>#dgPaste{padding:4px;min-height:34px;font-size:12px}.dg-shell[data-mode=create] #dgCanvas #dgBoard{min-height:330px}#dgCreateTools{bottom:15px}#dgGraphPalette{width:36px}#dgGraphPalette .dg-palette-symbol{width:32px;height:32px;min-height:32px}#dgGraphPalette svg{width:30px;height:30px}.dg-vertical-scale{left:0;width:25px;bottom:70px}}
.dg-bottom>#dgGraphPalette[data-type=lineplot]{position:static;flex-direction:row;padding:0 5px;background:transparent;align-self:center;margin-left:auto}.dg-bottom:has(>#dgGraphPalette[data-type=lineplot])>.dg-controls{margin-left:0}#dgOptionFields label[hidden]{display:none}#dgHeaderOptions input:focus{outline:2px solid #9c788e}#dgTable tr:nth-child(even){background:#f0edef}.dg-shell[data-mode=data] #dgBoard{min-height:450px}.dg-shell[data-mode=data] #dgKey:not(.dg-key-button){display:none}
#dgHelpText{max-width:900px}#dgHelpText section{margin:26px 0 32px}#dgHelpText h3{font-size:19px;margin:0 0 15px}#dgHelpText ul{padding-left:25px;margin:0}#dgHelpText li{font-size:16px;line-height:1.65;margin:0 0 16px;padding-left:5px}#dgHelpText li:last-child{margin-bottom:0}
#dgInlineLabel{position:absolute;z-index:6;box-sizing:border-box;font:18px/1.4 system-ui;text-align:center;padding:5px;border:1px solid #9a8391;border-radius:0;background:#fff;color:#40343c}#dgTitle{font-weight:700}#dgCanvas[data-type=pictograph] #dgKey{position:absolute;left:55%;transform:translateX(-50%);z-index:2;display:flex;align-items:center;gap:5px;white-space:nowrap;font-weight:600;font-size:17px;background:#fff;border-color:#aaa;padding:5px 9px;min-height:42px}#dgKey svg{width:34px;height:34px;display:block}#dgGraphPalette .dg-palette-symbol{box-shadow:none;border-radius:0}#dgGraphPalette[data-type=pictograph]{background:#fff;border-right:1px solid #bfa9b5;padding:12px 5px;width:48px}#dgGraphPalette .dg-palette-toggle{box-shadow:none;background:#fff}#dgGraphPalette.dg-palette-closed[data-type=pictograph]{width:0;padding:0}#dgCanvas[data-type=pictograph] #dgBoard{overflow:visible}
#dgCanvas[data-type=circle] .dg-circle-shadow{filter:drop-shadow(0 2px 5px #0004)}#dgCanvas[data-type=circle] .dg-sector-grip{cursor:grab;touch-action:none;filter:drop-shadow(0 1px 1px #0002)}#dgCanvas[data-type=circle] .dg-sector-grip:active{cursor:grabbing}#dgCanvas[data-type=circle] .dg-sector-grip:focus-visible>path:first-child{stroke:#344e79;stroke-width:3}#dgCanvas[data-type=circle] #dgCreateTools{bottom:105px!important;right:18px}#dgCanvas[data-type=circle] #dgCreateTools #dgPercentLabel{bottom:-80px;right:0;font-size:17px;gap:8px}#dgCanvas[data-type=circle] #dgPercent{width:22px;height:22px;min-width:22px;margin:0}#dgCanvas[data-type=circle] #dgSectorColours{left:55%;top:40%}@media(max-width:700px){#dgCanvas[data-type=circle] #dgCreateTools{bottom:85px!important;right:8px}#dgCanvas[data-type=circle] #dgCreateTools #dgPercentLabel{bottom:-65px;font-size:15px}}
#dgCanvas[data-type=circle] .dg-circle-shadow{filter:drop-shadow(0 1px 5px #0005)}#dgCanvas[data-type=circle] .dg-circle-label,#dgCanvas[data-type=circle] .dg-circle-percent{paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}#dgCanvas[data-type=circle] [data-sector]{vector-effect:non-scaling-stroke;stroke-width:1.3}
