.jd-card-editor{border:1px solid #e3dbfa;border-radius:20px;background:#fff;margin-top:12px;overflow:hidden;color:#17153f;box-shadow:0 8px 28px #23144808}
.jd-card-editor-bar{display:flex;flex-direction:column;gap:8px;background:linear-gradient(120deg,#faf8ff,#f6fbfc);padding:12px;border-bottom:1px solid #ece5fb}
.jd-card-editor-modes,.jd-card-editor-tools,.jd-card-editor-ink,.jd-card-editor-selection{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.jd-card-editor [hidden]{display:none!important}
.jd-card-editor-bar button{background:#fff;color:#5e31d7;border:1px solid #dfd4fa;border-radius:12px;padding:8px 11px;font:600 13px/1.25 Arial,sans-serif;min-height:36px;cursor:pointer;transition:background .12s}
.jd-card-editor-bar button:hover{background:#efe8ff}.jd-card-editor-bar button[aria-pressed=true]{background:#6437ee;color:#fff;border-color:#6437ee;box-shadow:0 3px 10px #6437ee22}
.jd-card-editor-bar button:focus-visible{outline:2px solid #976aff;outline-offset:2px}.jd-card-editor-bar button:disabled{opacity:.4;cursor:default}
.jd-card-editor-bar [data-format]{min-width:36px;font-size:17px}.jd-card-editor-bar [data-remove]{color:#b73551;background:#fff7f8;border-color:#f2d3dc}
.jd-card-editor-bar label{display:flex;gap:8px;align-items:center;margin:0;font:500 12px/1.5 Arial,sans-serif;color:#5d5670}
.jd-card-editor-bar input[type=range]{width:100px!important;padding:0!important;accent-color:#6437ee;box-shadow:none!important}
.jd-card-editor-bar input[type=color]{width:32px!important;height:32px;padding:3px!important;border-radius:9px!important}
.jd-card-editor-bar output{min-width:40px;font-size:12px}
.jd-card-editor-help{margin:0!important;padding:10px 14px!important;color:#78718a;font:400 12px/1.6 Arial,sans-serif!important}
.jd-card-editor-page{padding:14px 16px 12px;background:#fff}
.jd-card-editor-stage{position:relative;width:100%;max-width:none;min-height:180px;isolation:isolate}
.jd-card-editor-text,.jd-card-editor-text div,.jd-card-editor-text p,.jd-card-editor-text span{font-family:Inter,Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:24px!important;letter-spacing:normal!important;word-spacing:normal!important;text-transform:none!important}
.jd-card-editor-text{position:relative;z-index:1;min-height:180px;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;font-weight:500!important;color:#17153f!important;padding:0!important;margin:0!important;cursor:text}
.jd-card-editor-text div,.jd-card-editor-text p{margin:0!important;padding:0!important;min-height:24px}
.jd-card-editor-text:empty:before{content:attr(data-placeholder);color:#9a93a7;pointer-events:none}
.jd-card-editor-text b,.jd-card-editor-text strong{font-weight:700!important}.jd-card-editor-text i,.jd-card-editor-text em{font-style:italic}
.jd-card-editor-overlay{position:absolute;inset:0;z-index:2;background:transparent!important;touch-action:none;pointer-events:none;max-width:none!important;border:0!important;margin:0!important;padding:0!important}
.jd-card-editor-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #f0ebf8;padding:10px 14px;color:#8a829b;font:400 11px/1.5 Arial,sans-serif}
.jd-card-editor-footer .is-over{color:#b73551}.jd-card-editor-note{padding:0 14px!important;margin:0!important;color:#b73551;font:400 13px/1.6 Arial,sans-serif!important}.jd-card-editor-note:not(:empty){padding:10px 14px!important}
@media(max-width:600px){.jd-card-editor-page{padding:12px}.jd-card-editor-bar{padding:10px}.jd-card-editor-bar button{min-height:40px}.jd-card-editor-footer span:last-child{display:none}}

/* The letter text keeps its native 18px size; ink can be below or above it. */
.jd-card-editor-under{position:absolute;inset:0;z-index:0;pointer-events:none!important;background:transparent!important;max-width:none!important;border:0!important;margin:0!important;padding:0!important}

.jd-card-editor-under{position:absolute;inset:0;z-index:0;pointer-events:none!important;background:transparent!important;max-width:none!important;border:0!important;margin:0!important;padding:0!important}
.jd-card-editor-scroll{max-height:440px;min-height:180px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#d8cbfc transparent;resize:vertical}
.jd-card-editor-bar{position:relative;padding:10px 12px;gap:6px;background:linear-gradient(120deg,#fbf9ff,#f9fcff);box-shadow:0 3px 12px #24124c04}
.jd-card-editor-bar button{border-color:transparent;background:transparent;border-radius:999px;color:#776a9b;font-size:12px;padding:7px 10px}
.jd-card-editor-bar button[aria-pressed=true]{background:#eee7ff;color:#5e32d7;border-color:#e6dcfc;box-shadow:none}
.jd-card-editor-help{display:none}.jd-card-editor-footer{padding:7px 12px}.jd-card-editor-ink,.jd-card-editor-selection{padding-top:5px;border-top:1px solid #f0eafa}
.jd-card-editor-bar .jd-text-colour{border-left:1px solid #e7def7;padding-left:8px;font-size:17px;font-weight:700}
.jd-card-editor-bar .jd-text-colour input{width:25px!important;height:25px;border:0}
@media(max-width:600px){.jd-card-editor-scroll{max-height:48dvh;resize:none}.jd-card-editor-bar{gap:3px;padding:8px}.jd-card-editor-bar button{min-height:38px;padding:6px 9px}.jd-card-editor-page{padding:12px}.jd-card-editor-selection label{flex-wrap:wrap}}

/* v78: compact platform tools; writing area scrolls independently. */
.jd-card-editor{border:1px solid #e8e0fc;border-radius:24px;box-shadow:0 12px 34px rgba(56,29,110,.045);transition:border-color .2s,box-shadow .2s}
.jd-card-editor:focus-within{border-color:#cbb8fc;box-shadow:0 12px 34px #642ef009}
.jd-card-editor .jd-card-editor-bar{padding:12px 14px;gap:10px;background:linear-gradient(115deg,#fcfaff,#f8faff);border-bottom:1px solid #ede7fa}
.jd-card-editor .jd-card-editor-modes{display:flex;align-self:flex-start;gap:3px;padding:4px;border:1px solid #ece5fb;background:#ffffffcc;border-radius:999px;box-shadow:0 3px 10px #2b165306;max-width:100%;box-sizing:border-box}
.jd-card-editor .jd-card-editor-bar button{display:inline-flex;align-items:center;justify-content:center;gap:7px;font:600 12px/1.2 Arial,sans-serif;min-height:35px;color:#75688f;border:1px solid transparent;border-radius:999px;transition:background .15s,color .15s,box-shadow .15s;padding:8px 12px;white-space:nowrap}
.jd-card-editor .jd-card-editor-bar button i{font-size:15px;line-height:1}
.jd-card-editor .jd-card-editor-modes button[aria-pressed=true]{color:#fff;background:linear-gradient(135deg,#8154ff,#5d2dea);border-color:transparent;box-shadow:0 4px 10px #6637e52a}
.jd-card-editor .jd-card-editor-bar button:hover:not(:disabled):not([aria-pressed=true]){background:#efe9fb;color:#5f32d6}
.jd-card-editor .jd-card-editor-tools{gap:5px;flex-wrap:wrap;padding:0 2px}
.jd-card-editor .jd-card-editor-tools button{min-width:35px;padding:7px 9px;border-radius:11px}
.jd-card-editor .jd-card-editor-tools button[data-format]{font-size:16px}
.jd-card-editor .jd-card-editor-tools button[aria-pressed=true]{background:#eee5ff;color:#6435dd;border-color:#e7dafa;box-shadow:none}
.jd-card-editor .jd-card-editor-tools button[data-undo]{margin-left:6px;border-left:1px solid #e9e1f5;border-radius:0 11px 11px 0}
.jd-card-editor .jd-card-editor-bar button:disabled{opacity:.33}
.jd-card-editor .jd-card-editor-tools .jd-text-colour{position:relative;display:inline-flex;justify-content:center;width:36px;height:35px;box-sizing:border-box;padding:0;border:0;margin:0 3px 0 0;border-radius:11px;cursor:pointer;background:#fff;box-shadow:inset 0 0 0 1px #ebe3f8}
.jd-card-editor .jd-text-colour-label{font:bold 17px/1 Arial,sans-serif;color:#322251;pointer-events:none;position:relative;padding-bottom:5px}
.jd-card-editor .jd-text-colour-label span{position:absolute;bottom:0;left:0;right:0;height:3px;border-radius:3px;background:linear-gradient(90deg,#7650ee,#14b9bf,#f39790)}
.jd-card-editor .jd-card-editor-tools .jd-text-colour input[type=color]{position:absolute;inset:0;opacity:0;width:100%!important;height:100%!important;cursor:pointer}
.jd-card-editor .jd-card-editor-page{padding:18px 16px}
.jd-card-editor .jd-card-editor-footer{border-top:1px solid #f2edf9;color:#9a91ab;font-size:11px}
.jd-card-editor .jd-card-editor-selection,.jd-card-editor .jd-card-editor-ink{gap:8px;padding-top:9px;border-color:#eae3f6}
.jd-card-editor .jd-card-editor-text:empty:before{color:#aaa1b8;font-weight:400}
textarea[data-jd-rich-editing] ~ .jd-character-count{display:none!important}
@media(max-width:600px){.jd-card-editor .jd-card-editor-bar{padding:9px;gap:8px}.jd-card-editor .jd-card-editor-modes{width:100%;justify-content:space-between;gap:0;padding:3px}.jd-card-editor .jd-card-editor-modes button{padding:8px 7px;font-size:11px;gap:4px;min-height:40px}.jd-card-editor .jd-card-editor-bar button i{font-size:14px}.jd-card-editor .jd-card-editor-tools button,.jd-card-editor .jd-card-editor-tools .jd-text-colour{min-height:40px}.jd-card-editor .jd-card-editor-page{padding:14px 12px}}

/* The complete visible editing width is both writable and drawable. */
.jd-card-editor-stage{width:100%!important;max-width:none!important;box-sizing:border-box}
.jd-card-editor-text{width:100%;box-sizing:border-box}
.jd-card-editor[data-mode=scroll] .jd-card-editor-overlay{touch-action:pan-y!important;cursor:grab}
@media(max-width:600px){.jd-card-editor .jd-card-editor-modes{flex-wrap:wrap;justify-content:flex-start;border-radius:18px}.jd-card-editor .jd-card-editor-modes button{flex:1 0 auto}}

/* Dedicated touch workspace retains every editing control. */
.jd-draw-workspace{padding:0;border:0;width:100vw;max-width:none;height:100dvh;max-height:none;inset:0;margin:0;background:#fff;overflow:hidden;color:#17153f}
.jd-draw-workspace[open]{display:flex;flex-direction:column}
.jd-draw-workspace::backdrop{background:#19103d70;backdrop-filter:blur(5px)}
.jd-draw-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;background:linear-gradient(120deg,#faf7ff,#f3fbfc);border-bottom:1px solid #ece5f8;flex:none}
.jd-draw-workspace-head strong{display:block;font-size:17px}.jd-draw-workspace-head small{display:block;font-size:11px;line-height:1.5;color:#81738f;margin-top:3px}
.jd-draw-done{border:0;border-radius:999px;background:linear-gradient(135deg,#8051ff,#5e2de6);color:#fff;padding:12px 17px;font-weight:700;min-height:44px;white-space:nowrap}
.jd-draw-workspace .jd-card-editor{display:flex;flex-direction:column;flex:1;min-height:0;border:0;border-radius:0;box-shadow:none;margin:0!important;overflow:hidden}
.jd-draw-workspace .jd-card-editor-scroll{order:0;flex:1;min-height:0;max-height:none!important;resize:none;overscroll-behavior:contain}
.jd-draw-workspace .jd-card-editor-bar{order:1;flex:none;max-height:40dvh;overflow-y:auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e6dcfa;border-bottom:0;box-shadow:0 -8px 25px #32165009}
.jd-draw-workspace .jd-card-editor-footer{display:none}
.jd-draw-workspace .jd-card-editor-note{order:2;flex:none}
.jd-draw-workspace .jd-card-editor-bar button{min-height:44px!important;min-width:42px}
.jd-draw-workspace .jd-card-editor-tools [data-format],.jd-draw-workspace .jd-card-editor-tools [data-bullets],.jd-draw-workspace .jd-card-editor-tools .jd-text-colour{display:none}
.jd-draw-workspace .jd-card-editor-bar [data-mode=write]{background:#ede6fc}
.jd-draw-workspace .jd-card-editor-bar input[type=range]{height:32px;min-width:115px}
.jd-draw-workspace .jd-card-editor-modes{flex-wrap:wrap;justify-content:flex-start}
.jd-card-editor[data-mode=write] .jd-card-editor-selection{display:none!important}

.jd-draw-workspace .jd-card-editor-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start}
.jd-draw-workspace .jd-card-editor-modes,.jd-draw-workspace .jd-card-editor-selection{grid-column:1/-1}
.jd-draw-workspace .jd-card-editor-tools{grid-column:2;grid-row:2;align-self:start;flex-wrap:nowrap}
.jd-draw-workspace .jd-card-editor-ink{grid-column:1;grid-row:2;min-width:0}
.jd-draw-workspace .jd-card-editor-tools button[data-undo]{margin-left:0;border-left:0;border-radius:11px}
.jd-draw-workspace .jd-card-editor-bar label{flex-wrap:wrap}
.jd-draw-workspace .jd-card-editor-bar input[type=color]{min-width:40px;min-height:40px}
.jd-draw-workspace .jd-card-editor-selection label{flex:1 0 100%}
.jd-draw-workspace .jd-card-editor-scroll{scroll-behavior:auto;overflow-anchor:none}
.jd-draw-workspace .jd-card-editor-modes{border-radius:18px}
/* Highlight is separate from ink colour and foreground text colour. */
.jd-card-editor .jd-highlight-colour{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:0;border-radius:11px;background:#fff2a8;color:#443668;cursor:pointer;border:1px solid #e9dfa8}
.jd-card-editor .jd-highlight-colour input[type=color]{position:absolute;inset:0;opacity:0;width:100%!important;height:100%!important;cursor:pointer}
.jd-card-editor .jd-highlight-colour i{pointer-events:none}
.jd-draw-workspace .jd-highlight-colour,.jd-draw-workspace [data-clear-highlight]{display:none!important}
@media(max-width:600px){.jd-card-editor .jd-highlight-colour{min-width:40px;min-height:40px}}

.jd-card-editor .jd-card-emoji-panel{max-height:220px;overflow:auto;border:1px solid #e8defa;border-radius:16px;background:#fff;padding:12px;scrollbar-width:thin;scrollbar-color:#cfc0f7 transparent}
.jd-card-emoji-panel strong{display:block;font:600 11px/1.5 Inter,Arial,sans-serif;color:#8b7caa;margin:8px 4px 5px}
.jd-card-emoji-grid{display:flex;flex-wrap:wrap;gap:3px}
.jd-card-editor .jd-card-emoji-grid button{font:22px/1.2 'Apple Color Emoji','Segoe UI Emoji',sans-serif;min-width:38px;min-height:38px;padding:5px;border-radius:10px}
.jd-draw-workspace .jd-card-emoji-toggle,.jd-draw-workspace .jd-card-emoji-panel{display:none!important}
@media(max-width:760px),(hover:none),(pointer:coarse){.jd-card-editor .jd-card-emoji-toggle,.jd-card-editor .jd-card-emoji-panel{display:none!important}}

/* Compact rectangular controls with direct colour feedback. */
.jd-card-editor .jd-text-colour-label{padding-bottom:0}
.jd-card-editor .jd-text-colour-label span{display:none}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{width:28px!important;min-width:28px!important;max-width:28px;height:36px;min-height:36px;flex:0 0 28px;padding:0!important;border-radius:5px!important;box-sizing:border-box}
.jd-card-editor .jd-card-editor-modes{border-radius:12px}
@media(max-width:600px){.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{height:40px;min-height:40px}}
.jd-card-editor .jd-card-editor-ink input[data-color]{border:0!important;outline:none;box-shadow:none!important;padding:0!important;background:transparent!important;border-radius:4px!important;cursor:pointer}
.jd-card-editor input[data-color]::-webkit-color-swatch-wrapper{padding:0}
.jd-card-editor input[data-color]::-webkit-color-swatch{border:0;border-radius:4px}
.jd-card-editor input[data-color]::-moz-color-swatch{border:0;border-radius:4px}
.jd-card-editor input[data-color]:focus-visible{outline:2px solid #976aff;outline-offset:3px}

/* v85: compact, high-contrast tool groups with persistent selection feedback. */
.jd-card-editor .jd-card-editor-bar{padding:12px;gap:10px;background:linear-gradient(125deg,#f3eeff 0%,#f7f9ff 70%,#eefafa 100%);border-bottom:1px solid #dcd0f5}
.jd-card-editor .jd-card-editor-modes{display:flex;align-self:stretch;width:100%;padding:5px;gap:4px;border-radius:14px;border:1px solid #ddd1f6;background:#fff;box-shadow:0 3px 10px #24144b08;flex-wrap:wrap}
.jd-card-editor .jd-card-editor-modes button{flex:1 1 auto;min-height:40px;padding:9px 11px;border-radius:10px;color:#443261;font-weight:700}
.jd-card-editor .jd-card-editor-modes button i{color:#7543df}
.jd-card-editor .jd-card-editor-modes button[aria-pressed=true]{background:linear-gradient(135deg,#7944f8,#5925d8);color:#fff;box-shadow:0 4px 10px #6332da30}
.jd-card-editor .jd-card-editor-modes button[aria-pressed=true] i{color:#fff}
.jd-card-editor .jd-card-editor-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0}
.jd-card-editor .jd-tools-group{display:flex;flex-wrap:nowrap;align-items:center;gap:3px;padding:4px;border:1px solid #dfd4f1;border-radius:12px;background:#fff;box-shadow:0 2px 5px #28134305}
.jd-card-editor .jd-card-editor-tools button{height:38px;min-height:38px;min-width:36px;padding:7px 9px;margin:0;border-radius:8px;color:#392452;border:1px solid transparent;font-weight:700}
.jd-card-editor .jd-card-editor-tools button[data-format]{font-size:17px}
.jd-card-editor .jd-card-editor-tools button[aria-pressed=true],.jd-card-editor .jd-card-editor-tools button[aria-expanded=true]{color:#fff;background:#6430de;border-color:#6430de;box-shadow:0 2px 5px #5624d12b}
.jd-card-editor .jd-card-editor-bar button:disabled{opacity:1;color:#aaa1b8;background:#f6f4f8;box-shadow:none;cursor:default}
.jd-card-editor .jd-card-editor-tools button[data-undo]{margin:0;border-left:1px solid transparent;border-radius:8px}
.jd-card-editor .jd-card-editor-tools .jd-text-colour{width:36px;height:36px;min-height:36px;margin:0;border-radius:8px;box-shadow:inset 0 0 0 1px #e2d8f3;background:#faf8ff}
.jd-card-editor .jd-text-colour-label{font-size:20px;padding:0}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{flex:0 0 30px;min-width:30px!important;max-width:30px;width:30px!important;height:36px;min-height:36px;border-radius:5px!important;margin:0 3px;border:0;box-shadow:inset 0 0 0 1px #59440022}
.jd-card-editor .jd-highlight-colour.is-active{outline:2px solid #6430de;outline-offset:1px}
.jd-card-editor .jd-tools-colors [data-clear-highlight]{color:#87540c;background:#fff8df}
.jd-card-editor .jd-tools-history .jd-card-emoji-toggle{color:#6430de;background:#f0e8ff}
.jd-card-editor .jd-card-editor-ink,.jd-card-editor .jd-card-editor-selection{gap:10px;padding:10px;border:1px solid #dcd0ef;border-radius:12px;background:#ffffffdc}
.jd-card-editor .jd-card-editor-ink label,.jd-card-editor .jd-card-editor-selection label{color:#49355e;font-weight:600}
.jd-card-editor .jd-card-editor-bar [data-new]{background:#e7f7f5;color:#126b64;border:1px solid #c0e7df;border-radius:9px}
.jd-card-editor .jd-card-editor-bar [data-remove]:not(:disabled){background:#fff0f1;color:#ad2943;border:1px solid #f1cbd4;border-radius:9px}
.jd-card-editor .jd-card-editor-selection [data-layer][aria-pressed=true]{background:#6430de;color:#fff;box-shadow:0 3px 7px #6430de24}
.jd-card-editor .jd-card-editor-bar button:focus-visible{outline:2px solid #5124c7;outline-offset:2px}
.jd-draw-workspace .jd-tools-format,.jd-draw-workspace .jd-tools-colors{display:none!important}
.jd-draw-workspace .jd-card-editor-tools{align-self:start}
@media(max-width:600px){.jd-card-editor .jd-card-editor-bar{padding:9px;gap:8px}.jd-card-editor .jd-card-editor-modes button{min-height:42px;padding:9px 8px;font-size:11px}.jd-card-editor .jd-card-editor-tools{gap:6px}.jd-card-editor .jd-tools-group{padding:3px;gap:2px}.jd-card-editor .jd-card-editor-tools button{min-width:38px;min-height:42px;height:42px;padding:7px}.jd-card-editor .jd-card-editor-tools .jd-text-colour{min-height:40px;height:40px}.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{min-height:40px;height:40px}}

/* v86: bare utility icons; feedback only for a press or an active state. */
.jd-card-editor [data-clear-highlight],
.jd-card-editor [data-undo],
.jd-card-editor [data-redo],
.jd-card-editor [data-emoji-toggle],
.jd-card-editor [data-mode="erase"]{background:transparent!important;border-color:transparent!important;box-shadow:none!important}
.jd-card-editor [data-clear-highlight]:active:not(:disabled),
.jd-card-editor [data-clear-highlight][aria-pressed="true"]:not(:disabled),
.jd-card-editor [data-clear-highlight][aria-expanded="true"]:not(:disabled),
.jd-card-editor [data-undo]:active:not(:disabled),
.jd-card-editor [data-undo][aria-pressed="true"]:not(:disabled),
.jd-card-editor [data-undo][aria-expanded="true"]:not(:disabled),
.jd-card-editor [data-redo]:active:not(:disabled),
.jd-card-editor [data-redo][aria-pressed="true"]:not(:disabled),
.jd-card-editor [data-redo][aria-expanded="true"]:not(:disabled),
.jd-card-editor [data-emoji-toggle]:active:not(:disabled),
.jd-card-editor [data-emoji-toggle][aria-pressed="true"]:not(:disabled),
.jd-card-editor [data-emoji-toggle][aria-expanded="true"]:not(:disabled),
.jd-card-editor [data-mode="erase"]:active:not(:disabled),
.jd-card-editor [data-mode="erase"][aria-pressed="true"]:not(:disabled),
.jd-card-editor [data-mode="erase"][aria-expanded="true"]:not(:disabled){background:#6430de!important;color:#fff!important;border-color:#6430de!important;box-shadow:none!important}
.jd-card-editor [data-clear-highlight]:disabled,
.jd-card-editor [data-undo]:disabled,
.jd-card-editor [data-redo]:disabled,
.jd-card-editor [data-emoji-toggle]:disabled,
.jd-card-editor [data-mode="erase"]:disabled{background:transparent!important;color:#aaa1b8!important}

/* v87: Word-inspired compact ribbon, with JobDropper accents. */
.jd-card-editor .jd-card-editor-bar{padding:10px 12px;gap:8px;background:linear-gradient(110deg,#f9f7ff,#f5f8ff);border-bottom:1px solid #ded5f2}
.jd-card-editor .jd-card-editor-modes{width:100%;box-sizing:border-box;gap:3px;padding:3px;background:#fff;border:1px solid #e1d8f2;border-radius:9px;box-shadow:none}
.jd-card-editor .jd-card-editor-modes button{flex:1 1 auto;border-radius:6px;min-height:34px;padding:7px 10px;font-size:12px;line-height:1.3;font-weight:600;box-shadow:none}
.jd-card-editor .jd-card-editor-modes button[aria-pressed=true]{background:#6530de;color:#fff;box-shadow:inset 0 -2px 0 #47209e}
.jd-card-editor .jd-card-editor-tools{gap:0;align-items:stretch;padding:3px 0 0;background:transparent}
.jd-card-editor .jd-tools-group{position:relative;gap:2px;padding:2px 10px 19px;background:transparent;border:0;border-right:1px solid #ddd3ec;border-radius:0;box-shadow:none;flex-wrap:nowrap}
.jd-card-editor .jd-tools-group:first-child{padding-left:0}
.jd-card-editor .jd-tools-group:last-child{border-right:0}
.jd-card-editor .jd-tools-group::after{position:absolute;bottom:0;left:0;right:0;text-align:center;color:#756486;font:500 10px/15px Arial,sans-serif;letter-spacing:.2px;pointer-events:none}
.jd-card-editor .jd-tools-group:nth-child(1)::after{content:'Text'}
.jd-card-editor .jd-tools-group:nth-child(2)::after{content:'Colour'}
.jd-card-editor .jd-tools-group:nth-child(3)::after{content:'Tools'}
.jd-card-editor .jd-card-editor-tools button{height:32px;min-height:32px;min-width:31px;padding:5px 7px;border-radius:5px;border:1px solid transparent;background:transparent;color:#332448;box-shadow:none;font-weight:600}
.jd-card-editor .jd-card-editor-tools button:hover:not(:disabled){color:#6430de;border-color:#d7c7f3}
.jd-card-editor .jd-card-editor-tools button[aria-pressed=true],.jd-card-editor .jd-card-editor-tools button[aria-expanded=true]{background:#e8ddff;color:#5124bd;border-color:#b99aef;box-shadow:inset 0 -2px 0 #7540e1}
.jd-card-editor .jd-card-editor-ink,.jd-card-editor .jd-card-editor-selection{padding:8px 0 0;border:0;border-top:1px solid #ded5ed;border-radius:0;background:transparent;gap:8px}
.jd-card-editor .jd-card-editor-ink button,.jd-card-editor .jd-card-editor-selection button{border-radius:6px;min-height:32px;padding:6px 9px;font-size:12px}
.jd-card-editor .jd-card-editor-bar input[type=range]{width:90px!important}
@media(max-width:600px){
.jd-card-editor .jd-card-editor-bar{padding:8px;gap:7px}
.jd-card-editor .jd-card-editor-modes button{min-height:42px;padding:8px 7px;font-size:11px}
.jd-card-editor .jd-card-editor-tools{row-gap:6px}
.jd-card-editor .jd-tools-group{padding:0 6px 17px}
.jd-card-editor .jd-card-editor-tools button{min-width:38px;min-height:42px;height:42px}
}

.jd-card-editor .jd-card-editor-tools .jd-text-colour{width:31px;height:32px;min-height:32px;background:transparent;border-radius:5px;box-shadow:none}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{width:28px!important;min-width:28px!important;max-width:28px;height:32px;min-height:32px;border-radius:4px!important;box-shadow:inset 0 0 0 1px #66480024}
.jd-card-editor .jd-card-editor-tools [data-format]{font-size:16px}
@media(max-width:600px){.jd-card-editor .jd-card-editor-tools .jd-text-colour,.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{height:40px;min-height:40px}}

/* v88: highlight icon with a selected-colour underline, no filled box. */
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour, .jd-card-editor .jd-card-editor-tools .jd-highlight-colour.is-active{position:relative;background:transparent!important;border:0!important;outline:none!important;box-shadow:none!important;color:#49355e;padding:0 0 5px!important;border-radius:0!important}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour::after{content:'';position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:19px;height:3px;border-radius:1px;background:var(--jd-highlight-colour,#fff2a8);pointer-events:none}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour i{color:inherit;pointer-events:none}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour:hover, .jd-card-editor .jd-card-editor-tools .jd-highlight-colour:focus-within{color:#6430de}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour.is-active i{color:#6430de}

/* v89: compact icon toolbar; neutral idle controls and clear active states. */
.jd-card-editor .jd-card-editor-bar{padding:8px;gap:6px;background:#fafaff;border-bottom:1px solid #e7e4ef;min-width:0}
.jd-card-editor .jd-card-editor-modes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;width:100%;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.jd-card-editor .jd-card-editor-modes button{display:flex;align-items:center;justify-content:center;min-width:0;width:100%;height:44px;min-height:44px;padding:0;border:0;border-radius:10px;background:transparent;color:#535362;box-shadow:none}
.jd-card-editor .jd-card-editor-modes button i{font-size:20px;color:inherit}
.jd-card-editor .jd-card-editor-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:2px;min-width:0;width:100%;box-sizing:border-box;padding:5px 0 0;border-top:1px solid #e7e4ef;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#d6d2e0 transparent}
.jd-card-editor .jd-tools-group{display:contents}
.jd-card-editor .jd-tools-group::after{display:none!important;content:none!important}
.jd-card-editor .jd-card-editor-tools button{flex:1 0 40px;display:flex;align-items:center;justify-content:center;min-width:40px;min-height:44px;height:44px;padding:0;border:0;border-radius:9px;background:transparent!important;color:#535362;box-shadow:none!important}
.jd-card-editor .jd-card-editor-tools button i{font-size:19px;color:inherit}
.jd-card-editor .jd-card-editor-bar button:not(:disabled):is([aria-pressed=true],[aria-expanded=true],:active){background:#6735dc!important;color:#fff!important;box-shadow:none!important;border:0!important}
.jd-card-editor .jd-card-editor-bar button:not(:disabled):is([aria-pressed=true],[aria-expanded=true],:active) i{color:inherit}
.jd-card-editor .jd-card-editor-bar button:disabled{background:transparent!important;color:#b9b6c2!important;opacity:1}
.jd-card-editor .jd-card-editor-bar button:focus-visible{outline:2px solid #6735dc;outline-offset:-2px}
@media(hover:hover){.jd-card-editor .jd-card-editor-bar button:hover:not(:disabled):not([aria-pressed=true]):not([aria-expanded=true]){color:#252532}}

.jd-card-editor .jd-card-editor-tools .jd-text-colour,.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{flex:1 0 40px;width:40px!important;min-width:40px!important;max-width:none;height:44px;min-height:44px;margin:0;padding:0;border:0;box-shadow:none;background:transparent}
.jd-card-editor .jd-tools-history .jd-card-emoji-toggle,.jd-card-editor .jd-tools-colors [data-clear-highlight]{color:#535362}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{color:#535362}
@media(max-width:760px),(hover:none),(pointer:coarse){.jd-card-editor .jd-card-editor-tools .jd-card-emoji-toggle{display:none!important}}

/* v90: soft blue active controls. */
.jd-card-editor .jd-card-editor-bar button:not(:disabled):is([aria-pressed=true],[aria-expanded=true],:active){background:#e2f1fc!important;color:#294e69!important;box-shadow:none!important;border-color:transparent!important}
.jd-card-editor .jd-card-editor-bar button:not(:disabled):is([aria-pressed=true],[aria-expanded=true],:active) i{color:#294e69!important}
.jd-card-editor .jd-card-editor-bar button:focus-visible{outline-color:#82b6d8!important}

.jd-card-editor [data-undo],.jd-card-editor [data-redo]{display:none!important}
.jd-card-editor .jd-card-editor-modes button i,.jd-card-editor .jd-card-editor-tools button i{font-size:17px!important}
.jd-card-editor .jd-card-editor-bar button{font-weight:500}
.jd-card-editor .jd-card-editor-tools button:not(:disabled):not([aria-pressed=true]):not([aria-expanded=true]){color:#666a73}

/* v91: compact grouped tools, restored history and direct highlight. */
.jd-card-editor .jd-card-editor-modes{display:flex;justify-content:flex-start;gap:3px}
.jd-card-editor .jd-card-editor-modes button{flex:0 0 42px;width:42px;min-width:42px;height:42px;min-height:42px;border-radius:8px}
.jd-card-editor .jd-card-editor-tools{gap:2px;justify-content:flex-start}
.jd-card-editor .jd-card-editor-tools button{flex:0 0 36px;min-width:36px;width:36px;height:40px;min-height:40px}
.jd-card-editor .jd-card-editor-tools [data-undo],.jd-card-editor .jd-card-editor-tools [data-redo]{display:flex!important}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour{display:flex;align-items:center;flex:0 0 44px!important;min-width:44px!important;width:44px!important;height:40px;min-height:40px;position:relative;padding:0!important}
.jd-card-editor .jd-card-editor-tools .jd-highlight-colour [data-apply-highlight]{flex:0 0 28px;min-width:28px;width:28px;background:transparent!important;color:#535362!important}
.jd-card-editor .jd-highlight-colour .jd-highlight-picker{position:relative;display:flex;align-items:center;justify-content:center;width:16px;height:40px;cursor:pointer}
.jd-card-editor .jd-highlight-colour .jd-highlight-picker i{font-size:10px!important}
.jd-card-editor .jd-highlight-colour .jd-highlight-picker input{position:absolute;inset:0;opacity:0;width:100%!important;height:100%!important;cursor:pointer}
.jd-card-editor .jd-highlight-colour::after{left:14px;width:17px;bottom:3px}
@media(max-width:600px){.jd-card-editor .jd-card-editor-modes button{flex:1 0 40px;width:auto;min-height:44px}.jd-card-editor .jd-card-editor-tools button{min-height:44px;height:44px}}

.jd-card-editor .jd-card-editor-tools .jd-text-colour{flex:0 0 36px;width:36px!important;min-width:36px!important}

/* Keep text metrics consistent when mobile browsers autosize text. */
.jd-card-editor-text,.jd-anchor-text{-webkit-text-size-adjust:100%;text-size-adjust:100%}
