
/* One unified hue-ordered palette. Custom color sits beside the background preview. */
#editor [data-panel="backgrounds"] .tool-heading{margin-bottom:13px}
#editor .memo-bg-top127{padding:12px;border:1px solid #e6e4e0;background:linear-gradient(180deg,#fffefa,#fbfaf8);border-radius:12px;margin:0 0 19px;box-shadow:0 3px 10px #1f293705}
#editor .memo-bg-top127 .memo-bg-current126{padding:0 0 11px;margin:0 0 10px;border:0;border-bottom:1px solid #eae8e4;border-radius:0;background:none}
#editor .memo-bg-top127 .memo-bg-current-chip126{width:47px;height:47px;border-radius:8px}
#editor .memo-bg-top127 .memo-bg-current-info126 strong{font-size:12px;color:#373d43}
#editor .memo-bg-custom-controls127{display:grid;grid-template-columns:98px minmax(0,1fr);gap:10px;align-items:end}
#editor .memo-bg-hex-label127{display:grid;gap:5px;font-size:10px;line-height:1.15;font-weight:750;letter-spacing:.035em;color:#65737b;text-transform:uppercase}
#editor .memo-bg-hex-input127{height:40px;min-width:0;width:100%;border:1px solid #dcdedb;border-radius:7px;background:#fff;padding:8px 6px;font:600 12px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;color:#343c44;outline-offset:2px}
#editor .memo-bg-hex-input127:focus{outline:2px solid #9eafbd;border-color:#9eafbd}
#editor .memo-bg-hex-input127[aria-invalid="true"]{border-color:#ce5b5b;background:#fff4f3}
#editor .memo-bg-wheel-wrap126{border:none!important;border-radius:0!important;background:transparent!important;padding:0!important}
#editor .memo-bg-wheel-wrap126 .wheel-picker9{display:block;width:100%;margin:0!important}
#editor .memo-bg-wheel-wrap126 .wheel-picker9>summary{height:40px!important;min-height:40px!important;display:flex!important;justify-content:flex-start!important;padding:7px 9px!important;gap:8px!important;background:#f2f1ed!important;border:1px solid #d8d9d6!important;border-radius:7px!important;color:#343b41!important;cursor:pointer}
#editor .memo-bg-wheel-wrap126 .wheel-picker9>summary:hover{background:#e9ebe8!important;border-color:#b8c3cb!important}
#editor .memo-bg-wheel-wrap126 .wheel-picker9>summary .color-chip{width:22px;height:22px;flex:0 0 22px;border-radius:5px}
#editor .memo-bg-wheel-wrap126 .wheel-picker9>summary span:not(.color-chip){font-size:11px;letter-spacing:0;font-weight:700;white-space:nowrap}
#editor .memo-bg-wheel-wrap126 .wheel-picker9>summary:after{margin-left:auto!important;color:#60727d}
#editor .memo-bg-help127{margin:9px 0 0;font:10px/1.5 Arial,sans-serif;color:#858e93}
#editor .memo-bg-top127 .memo-bg-shades126{margin:11px 0 0;gap:6px}
#editor .memo-bg-top127 .memo-bg-shade126{min-height:39px;padding:4px;gap:5px;border-radius:6px}
#editor .memo-bg-top127 .memo-bg-shade126 i{width:17px;min-width:17px;height:25px}
#editor .memo-bg-top127 .memo-bg-shade126 span{font-size:9px}
#editor .memo-bg-palette-top127{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 9px;gap:8px}
#editor .memo-bg-palette-top127 strong{font-size:12px;font-weight:750;color:#374650}
#editor .memo-bg-palette-top127 small{font-size:10px;color:#919a9e}
#editor .memo-bg-grid126.memo-bg-unified127{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#editor .memo-bg-unified127 .memo-bg-swatch126{height:41px;border-radius:8px}
#editor .memo-bg-palette-note127{font-size:10px;line-height:1.5;color:#939b9e;margin:9px 1px 14px}
#editor #coverInkControls,#editor #pageInkControls{display:none!important}
@media(min-width:851px) and (max-width:1150px){#editor .memo-bg-custom-controls127{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:730px){#editor .memo-bg-custom-controls127{grid-template-columns:99px minmax(0,1fr)}}
