/* Observed palette library with localized reference thumbnails and local custom images. */
.jmc-editor .jpl-overlay { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 16px; background: #000b; color: #ededf0; font: 13px/20px "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; }
.jmc-editor .jpl-overlay *, .jmc-editor .jpl-overlay *::before, .jmc-editor .jpl-overlay *::after { box-sizing: border-box; }
.jmc-editor .jpl-dialog { display: flex; flex-direction: column; width: 800px; height: 604px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); min-width: 0; overflow: hidden; border: 0; border-radius: 20px; outline: none; background: #191919; box-shadow: 0 20px 70px #0005; }
.jmc-editor .jpl-header { display: flex; flex: 0 0 84px; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 24px; }
.jmc-editor .jpl-title { padding: 0; margin: 0; color: #eeeeef; font-size: 14px; font-weight: 500; line-height: 24px; }
.jmc-editor .jpl-close { display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 3px; border: 0; border-radius: 6px; background: transparent; color: #d7d7de; }
.jmc-editor .jpl-close svg { width: 18px; height: 18px; }
.jmc-editor .jpl-close:hover { background: #ffffff0d; }
.jmc-editor .jpl-body { flex: 1 1 444px; min-height: 0; min-width: 0; padding: 0 24px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #4b4b4e transparent; }
.jmc-editor .jpl-grid { --jpl-columns: 4; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-content: start; min-width: 0; }
.jmc-editor .jpl-card { position: relative; display: block; width: 100%; height: 158px; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 8px; }
.jmc-editor .jpl-choice, .jmc-editor .jpl-create { display: flex; flex-direction: column; align-items: stretch; width: 100%; height: 158px; min-height: 0; padding: 0 0 8px; margin: 0; border: 0; border-radius: 8px; outline-offset: 2px; background: transparent; color: #b6b6bf; font: inherit; text-align: center; }
.jmc-editor .jpl-preview-placeholder { display: flex; flex: 0 0 102px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 102px; min-width: 0; padding: 8px; overflow: hidden; border-radius: 8px; background: #252527; color: #74747e; font-size: 11px; line-height: 16px; }
.jmc-editor .jpl-preview-placeholder svg { width: 22px; height: 22px; }
.jmc-editor .jpl-swatches { display: flex; flex: 0 0 16px; gap: 4px; width: 100%; height: 16px; margin-top: 4px; }
.jmc-editor .jpl-swatch { display: block; flex: 1 1 0; height: 16px; min-width: 0; border-radius: 8px; }
.jmc-editor .jpl-swatch:first-child { flex-grow: 2; }
.jmc-editor .jpl-card-name { display: block; flex: 0 0 20px; width: 100%; min-width: 0; height: 20px; padding: 0 2px; margin-top: 8px; overflow: hidden; color: inherit; font-size: 12px; font-weight: 400; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; }
.jmc-editor .jpl-choice:hover { color: #f0f0f3; }
.jmc-editor .jpl-card.is-selected .jpl-preview-placeholder { box-shadow: inset 0 0 0 2px #fff; }
.jmc-editor .jpl-create-preview { display: grid; flex: 0 0 122px; place-items: center; width: 100%; height: 122px; min-width: 0; border-radius: 8px; background: #242424; color: #7e7e87; }
.jmc-editor .jpl-create-preview svg { width: 20px; height: 20px; }
.jmc-editor .jpl-create:hover .jpl-create-preview { background: #2c2c2e; color: #aaaab3; }
.jmc-editor .jpl-card-more { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; min-height: 0; padding: 3px; border: 0; border-radius: 5px; background: #222a; color: #dedee4; opacity: 0; }
.jmc-editor .jpl-card-more svg { width: 16px; height: 16px; }
.jmc-editor .jpl-card:hover .jpl-card-more, .jmc-editor .jpl-card:focus-within .jpl-card-more { opacity: 1; }
.jmc-editor .jpl-card-more:hover { background: #0009; }
.jmc-editor .jpl-footer { display: flex; flex: 0 0 76px; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; padding: 20px 24px; }
.jmc-editor .jpl-status { flex: 1 1 auto; min-width: 0; max-height: 40px; padding: 0; margin: 0; overflow: auto; color: #8e8e99; font-size: 11px; line-height: 18px; }
.jmc-editor .jpl-confirm { display: grid; flex: 0 0 80px; place-items: center; width: 80px; height: 36px; min-height: 0; padding: 8px 16px; border: 0; border-radius: 8px; background: #f4f4f5; color: #202024; font: inherit; font-weight: 500; }
.jmc-editor .jpl-confirm:disabled { background: #454548; color: #82828a; opacity: 1; }
.jmc-editor .jpl-confirm:not(:disabled):hover { background: #fff; }
.jmc-editor .jpl-more-menu { position: fixed; z-index: 1; display: flex; flex-direction: column; gap: 2px; max-width: calc(100vw - 16px); padding: 6px; border: 1px solid #ffffff14; border-radius: 8px; background: #27272b; color: #dddde5; box-shadow: 0 8px 24px #0006; }
.jmc-editor .jpl-more-item { display: block; min-height: 36px; padding: 8px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; }
.jmc-editor .jpl-more-item:not(:disabled):hover { background: #ffffff0d; }
.jmc-editor .jpl-more-item:disabled { color: #74747f; opacity: 1; }
@media (hover: none) { .jmc-editor .jpl-card-more { opacity: 1; } }
@media (max-width: 700px) { .jmc-editor .jpl-grid { --jpl-columns: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .jmc-editor .jpl-grid { --jpl-columns: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); } .jmc-editor .jpl-header { flex-basis: 68px; padding: 16px; } .jmc-editor .jpl-body { padding-inline: 16px; } .jmc-editor .jpl-footer { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .jmc-editor .jpl-overlay button { transition: none; } }
/* Observed right-hand editing layer; saves create a local copy of the preset. */
.jmc-editor .jpl-dialog { position: relative; }
.jmc-editor .jpl-local-preview { display: block; flex: 0 0 102px; width: 100%; height: 102px; min-width: 0; border-radius: 8px; object-fit: cover; }
.jmc-editor .jpl-card.is-selected .jpl-local-preview { outline: 2px solid #fff; outline-offset: -2px; }
.jmc-editor .jpl-image-preview { position: relative; display: block; flex: 0 0 102px; width: 100%; height: 102px; min-width: 0; overflow: hidden; border-radius: 8px; background: #252527; }
.jmc-editor .jpl-preview-state { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: #92929c; font-size: 11px; line-height: 16px; text-align: center; }
.jmc-editor .jpl-image-preview.is-error .jpl-preview-state { color: #aaaab4; }
.jmc-editor .jpl-card.is-selected .jpl-image-preview { outline: 2px solid #fff; outline-offset: -2px; }
.jmc-editor .jpl-edit-panel { position: absolute; z-index: 2; top: 8px; right: 8px; bottom: 8px; display: flex; flex-direction: column; width: 480px; max-width: calc(100% - 16px); min-width: 0; min-height: 0; overflow: hidden; border: 0; border-radius: 12px; background: #262626; box-shadow: -10px 0 36px #0003; }
.jmc-editor .jpl-edit-header { display: flex; flex: 0 0 68px; align-items: center; gap: 12px; min-width: 0; padding: 16px 24px; }
.jmc-editor .jpl-edit-name { display: block; flex: 1 1 auto; width: 100%; min-width: 0; height: 36px; padding: 6px 0; border: 1px solid transparent; border-radius: 5px; outline: none; background: transparent; color: #eeeef3; font: inherit; user-select: text; }
.jmc-editor .jpl-edit-name:focus { padding-inline: 6px; border-color: #696970; background: #ffffff06; }
.jmc-editor .jpl-edit-close { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 9px; margin-right: -12px; border: 0; border-radius: 6px; background: transparent; color: #d4d4dd; }
.jmc-editor .jpl-edit-close svg { width: 18px; height: 18px; }
.jmc-editor .jpl-edit-close:hover { background: #ffffff0d; }
.jmc-editor .jpl-edit-body { flex: 1 1 auto; min-height: 0; min-width: 0; padding: 0 24px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #505057 transparent; }
.jmc-editor .jpl-edit-preview { position: relative; display: block; width: 100%; height: 270px; min-width: 0; overflow: hidden; border-radius: 8px; background: #333336; }
.jmc-editor .jpl-edit-preview .jpl-local-preview { width: 100%; height: 270px; border-radius: 8px; object-fit: cover; }
.jmc-editor .jpl-edit-preview .jpl-image-preview { width: 100%; height: 270px; }
.jmc-editor .jpl-edit-preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 270px; padding: 16px; color: #83838f; font-size: 12px; line-height: 20px; }
.jmc-editor .jpl-edit-preview-empty svg { width: 32px; height: 32px; }
.jmc-editor .jpl-replace-image { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 8px; border: 0; border-radius: 6px; background: #2228; color: #fff; }
.jmc-editor .jpl-replace-image svg { width: 16px; height: 16px; }
.jmc-editor .jpl-replace-image:hover { background: #111b; }
.jmc-editor .jpl-colour-count { height: 20px; padding: 0; margin: 32px 0 12px; color: #b4b4be; font-size: 12px; line-height: 20px; }
.jmc-editor .jpl-edit-colours { display: grid; grid-template-columns: 118px repeat(5, minmax(0, 1fr)); grid-auto-rows: 55px; gap: 8px; min-width: 0; min-height: 118px; }
.jmc-editor .jpl-edit-colour { position: relative; min-width: 0; min-height: 0; border-radius: 8px; background: #808080; color: #777780; }
.jmc-editor .jpl-edit-colour.is-primary { grid-column: 1; grid-row: 1 / span 2; }
.jmc-editor .jpl-edit-colour-button { position: relative; display: block; width: 100%; height: 100%; min-height: 0; padding: 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: inherit; text-align: left; }
.jmc-editor .jpl-primary-label { position: absolute; top: 8px; left: 8px; color: inherit; font-size: 12px; line-height: 20px; }
.jmc-editor .jpl-primary-hex { position: absolute; bottom: 8px; left: 8px; color: inherit; font-size: 12px; line-height: 20px; }
.jmc-editor .jpl-edit-colour-button > svg { position: absolute; right: 6px; bottom: 6px; width: 14px; height: 14px; opacity: 0; }
.jmc-editor .jpl-remove-colour { position: absolute; z-index: 1; top: -5px; right: -5px; display: grid; place-items: center; width: 16px; height: 16px; min-height: 0; padding: 2px; border: 0; border-radius: 8px; background: #252528; color: #fff; opacity: 0; }
.jmc-editor .jpl-remove-colour svg { width: 12px; height: 12px; }
.jmc-editor .jpl-edit-colour:hover .jpl-edit-colour-button > svg, .jmc-editor .jpl-edit-colour:focus-within .jpl-edit-colour-button > svg, .jmc-editor .jpl-edit-colour:hover .jpl-remove-colour, .jmc-editor .jpl-edit-colour:focus-within .jpl-remove-colour { opacity: 1; }
.jmc-editor .jpl-add-colour, .jmc-editor .jpl-colour-blank { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 12px; border: 0; border-radius: 8px; background: #2d2d2d; color: #8c8c94; }
.jmc-editor .jpl-add-colour svg { width: 20px; height: 20px; }
.jmc-editor .jpl-add-colour:hover { background: #37373a; color: #dddde3; }
.jmc-editor .jpl-edit-footer { display: flex; flex: 0 0 68px; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; padding: 16px 24px; }
.jmc-editor .jpl-edit-status { flex: 1 1 auto; min-width: 0; max-height: 36px; padding: 0; margin: 0; overflow: auto; color: #aaaab8; font-size: 11px; line-height: 16px; }
.jmc-editor .jpl-edit-save { flex: 0 0 80px; width: 80px; height: 36px; min-height: 0; padding: 8px 16px; border: 0; border-radius: 8px; background: #f4f4f5; color: #202024; font: inherit; }
.jmc-editor .jpl-edit-save:disabled { background: #46464b; color: #81818c; opacity: 1; }
.jmc-editor .jpl-colour-picker { position: fixed; z-index: 4; display: flex; flex-direction: column; width: 240px; height: 244px; max-width: calc(100vw - 16px); padding: 16px; border: 0; border-radius: 12px; outline: none; background: #333334; color: #eeeef3; box-shadow: 0 8px 28px #0007; }
.jmc-editor .jpl-sv { position: relative; display: block; flex: 0 0 140px; width: 100%; height: 140px; border-radius: 8px; outline-offset: 2px; background-color: red; background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent); cursor: crosshair; touch-action: none; }
.jmc-editor .jpl-sv-point { position: absolute; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px #0007; transform: translate(-50%, -50%); pointer-events: none; }
.jmc-editor .jpl-hue { display: block; flex: 0 0 16px; width: 100%; min-width: 0; height: 16px; min-height: 0; padding: 0; margin: 10px 0 0; border: 0; border-radius: 2px; appearance: none; background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; }
.jmc-editor .jpl-hue::-webkit-slider-runnable-track { height: 16px; border: 0; border-radius: 2px; background: transparent; }
.jmc-editor .jpl-hue::-webkit-slider-thumb { width: 4px; height: 20px; margin-top: -2px; border: 1px solid #fff; border-radius: 2px; appearance: none; background: #ffffff99; box-shadow: 0 0 2px #0008; }
.jmc-editor .jpl-hue::-moz-range-track { height: 16px; border: 0; background: transparent; }
.jmc-editor .jpl-hue::-moz-range-thumb { width: 4px; height: 20px; border: 1px solid #fff; border-radius: 2px; background: #ffffff99; }
.jmc-editor .jpl-picker-bottom { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin-top: 10px; }
.jmc-editor .jpl-eyedropper { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; min-height: 0; padding: 10px; border: 1px solid #ffffff0b; border-radius: 6px; background: transparent; color: #d3d3dc; }
.jmc-editor .jpl-eyedropper svg { width: 16px; height: 16px; }
.jmc-editor .jpl-eyedropper:hover { background: #ffffff08; }
.jmc-editor .jpl-hex { display: block; flex: 1 1 164px; width: 164px; min-width: 0; height: 36px; padding: 8px; border: 1px solid #ffffff0b; border-radius: 6px; outline: none; background: transparent; color: #e3e3e9; font: inherit; font-size: 13px; line-height: 20px; text-align: center; user-select: text; }
.jmc-editor .jpl-hex:focus { border-color: #ffffff38; }
.jmc-editor .jpl-hex[aria-invalid="true"] { border-color: #f17788; }
@media (hover: none) { .jmc-editor .jpl-edit-colour .jpl-edit-colour-button > svg, .jmc-editor .jpl-edit-colour .jpl-remove-colour { opacity: 1; } }
@media (max-width: 520px) { .jmc-editor .jpl-edit-body { padding-inline: 16px; } .jmc-editor .jpl-edit-header, .jmc-editor .jpl-edit-footer { padding-inline: 16px; } .jmc-editor .jpl-edit-preview, .jmc-editor .jpl-edit-preview .jpl-local-preview, .jmc-editor .jpl-edit-preview-empty { height: 220px; } .jmc-editor .jpl-edit-colours { grid-template-columns: 90px repeat(5, minmax(0, 1fr)); gap: 5px; } }
@media (max-width: 520px) { .jmc-editor .jpl-edit-preview .jpl-image-preview { height: 220px; } }
.jmc-editor .jpl-create-menu { min-width: 148px; }
.jmc-editor .jpl-create-menu .jpl-more-item:focus-visible { outline: 1px solid #b8bfd3; outline-offset: -1px; background: #ffffff0d; }
.jmc-editor .jpl-custom-preview { position: relative; display: flex; flex: 0 0 102px; width: 100%; height: 102px; min-width: 0; overflow: hidden; border-radius: 8px; }
.jmc-editor .jpl-custom-preview-band { display: block; flex: 1 1 0; height: 100%; min-width: 0; }
.jmc-editor .jpl-custom-preview-band:first-child { flex-grow: 2; }
.jmc-editor .jpl-custom-preview-label { position: absolute; right: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 2px 6px; overflow: hidden; border-radius: 4px; background: #0006; color: #fff; font-size: 10px; line-height: 16px; text-overflow: ellipsis; white-space: nowrap; }
.jmc-editor .jpl-card.is-selected .jpl-custom-preview { outline: 2px solid #fff; outline-offset: -2px; }
.jmc-editor .jpl-edit-name-button { display: inline-flex; flex: 1 1 auto; align-items: center; justify-content: flex-start; gap: 6px; min-width: 0; height: 36px; padding: 6px 0; border: 0; background: transparent; color: #eeeef3; font: inherit; text-align: left; }
.jmc-editor .jpl-edit-name-button > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jmc-editor .jpl-edit-name-button > svg { flex: 0 0 14px; width: 14px; height: 14px; color: #9a9aa4; }
.jmc-editor .jpl-custom-panel .jpl-edit-body { padding-top: 8px; }
.jmc-editor .jpl-custom-wheel-section { width: 100%; min-width: 0; }
.jmc-editor .jpl-wheel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 28px; color: #b8b8c1; }
.jmc-editor .jpl-wheel-mode-label { min-width: 0; font-size: 12px; line-height: 20px; }
.jmc-editor .jpl-wheel-modes { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 4px; height: 28px; padding: 2px; border-radius: 6px; background: #29292b; }
.jmc-editor .jpl-wheel-mode { display: grid; flex: 0 0 26px; place-items: center; width: 26px; height: 24px; min-height: 0; padding: 4px; border: 0; border-radius: 5px; background: transparent; color: #85858f; }
.jmc-editor .jpl-wheel-mode > svg { width: 16px; height: 16px; }
.jmc-editor .jpl-wheel-mode:hover { background: #ffffff08; color: #b8b8c3; }
.jmc-editor .jpl-wheel-mode[aria-pressed="true"] { background: #ffffff0d; color: #c8c8d0; }
.jmc-editor .jpl-colour-wheel { position: relative; width: 226px; max-width: 100%; height: auto; aspect-ratio: 1; margin: 12px auto 0; border-radius: 50%; background: radial-gradient(circle closest-side, #aaa, #aaa0), conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); touch-action: none; cursor: crosshair; }
.jmc-editor .jpl-wheel-marker { position: absolute; z-index: 1; display: block; width: 16px; height: 16px; min-height: 0; padding: 0; transform: translate(-50%, -50%); border: 2px solid #dddde5; border-radius: 50%; background: transparent; box-shadow: 0 0 2px #0003; cursor: grab; touch-action: none; }
.jmc-editor .jpl-wheel-marker.is-selected { z-index: 2; width: 24px; height: 24px; border-color: #f4f4f7; }
.jmc-editor .jpl-wheel-marker:active { cursor: grabbing; }
.jmc-editor .jpl-wheel-marker:focus-visible { outline: 2px solid #fff8; outline-offset: 3px; }
.jmc-editor .jpl-custom-panel .jpl-colour-count { margin-top: 12px; }
.jmc-editor .jpl-custom-panel .jpl-edit-colour.is-selected { outline: 2px solid #e6e6ed; outline-offset: 1px; }
.jmc-editor .jpl-image-loading { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 4px 8px; border-radius: 5px; background: #0009; color: #e3e3e9; font-size: 11px; line-height: 18px; pointer-events: none; }
.jmc-editor .jpl-custom-panel :is(.jpl-edit-name-button, .jpl-wheel-mode, .jpl-edit-save):focus-visible { outline: 2px solid #b8bfd3; outline-offset: 2px; }
@media (max-width: 520px) { .jmc-editor .jpl-wheel-modes { gap: 1px; } .jmc-editor .jpl-wheel-mode { flex-basis: 24px; width: 24px; } .jmc-editor .jpl-wheel-heading { gap: 6px; } }
