/* E-010 / SET-002: a shared colour workspace, within the original Morrown palette. */
.value-picker-body.color-palette-screen{display:flex;flex-direction:column;gap:20px;padding:20px;max-width:520px}
.color-palette-screen>[hidden],.color-palette-screen [data-color-panel][hidden]{display:none!important}
.color-context{display:flex;gap:14px;align-items:center;min-height:94px;padding:16px;border:1px solid var(--line);border-radius:20px;background:var(--surface);flex:none;position:relative;overflow:hidden}
.color-context:before{content:'';position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 3px 3px 0;background:var(--chosen-color)}
.color-context-mark{display:grid;place-items:center;width:46px;height:46px;flex:none;border-radius:15px;background:var(--chosen-color);color:var(--chosen-ink);border:1px solid color-mix(in srgb,var(--text) 15%,transparent)}
.color-context>div{min-width:0;display:grid;gap:4px}
.color-context small{font-size:11px;line-height:1.4;color:var(--muted)}
.color-context strong{font-size:16px;line-height:1.35;font-weight:600;overflow-wrap:anywhere}
.color-selection{display:flex;gap:6px 10px;flex-wrap:wrap;color:var(--muted);font-size:11px;line-height:1.5}
.color-selection code{font-family:inherit;font-variant-numeric:tabular-nums;letter-spacing:.025em}
.color-editor-switch{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:var(--surface);border:1px solid var(--line);border-radius:15px;flex:none}
.color-editor-switch button{border:0;border-radius:11px;min-height:44px;padding:9px 8px;color:var(--muted);background:transparent;font:inherit;font-size:13px;line-height:1.4;font-weight:550}
.color-editor-switch button[aria-pressed=true]{background:var(--surface-2);color:var(--text);box-shadow:0 1px 3px #0000000c}
.color-palette-screen .color-palette{display:grid;grid-template-columns:repeat(4,minmax(44px,1fr));gap:10px;margin:0;padding:2px}
.color-palette-screen .color-swatch{aspect-ratio:auto;min-height:48px;height:48px;width:100%;border-radius:14px;border:1px solid color-mix(in srgb,var(--text) 12%,transparent);padding:0;background:var(--swatch);color:var(--swatch-contrast);display:grid;place-items:center;transition:box-shadow 120ms ease,outline-color 120ms ease}
.color-palette-screen .color-swatch[aria-pressed=true]{outline:2px solid var(--text);outline-offset:3px;box-shadow:inset 0 0 0 3px var(--bg)}
.color-swatch>i{display:grid;place-items:center}
.color-palette-screen section.color-recent{margin:22px 0 0}
.color-palette-screen section.color-recent h3{font-size:12px;line-height:1.5;margin:0 0 12px;font-weight:500;color:var(--muted)}
.color-palette-note{font-size:12px;line-height:1.6;margin:18px 0 0;color:var(--muted)}
.color-palette-screen .color-plane{height:clamp(150px,30vh,220px);border-radius:17px}
.color-palette-screen .color-hue{padding:0;margin:20px 0;display:grid;gap:14px}
.color-palette-screen .color-hue>span{margin:0;font-size:12px}
.color-palette-screen .color-hue input{height:24px;min-height:24px;margin:0;touch-action:pan-y}
.color-palette-screen .color-hue input::-webkit-slider-thumb{width:30px;height:30px}
.color-palette-screen .color-code-field{display:grid;gap:8px;margin:0}
.color-code-field>span{font-size:12px;color:var(--muted)}
.color-code-field>div{display:flex;align-items:center;gap:12px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.color-code-field>div:focus-within{outline:2px solid var(--accent-graphic);outline-offset:2px}
.color-code-field>div:has([aria-invalid=true]){border-color:var(--danger)}
.color-palette-screen .color-result-dot{width:24px;height:24px;min-width:24px;margin:0;border-radius:8px;background:var(--chosen-color);border:1px solid var(--line)}
.color-code-field input[type=text]{font:inherit;font-size:17px;letter-spacing:.06em;font-variant-numeric:tabular-nums;width:100%;min-width:0;min-height:50px;background:transparent;color:var(--text);border:0;border-radius:0;padding:12px 0;outline:0;box-shadow:none}
.color-code-field small,.color-palette-screen .color-plane-help{font-size:11px;line-height:1.6;color:var(--muted);margin:0}
.color-palette-screen .color-plane-help{margin:18px 0 0}
.color-palette-screen button:focus-visible,.color-palette-screen [tabindex]:focus-visible{outline:2px solid var(--accent-graphic);outline-offset:4px}
.value-picker[data-picker-kind=color]>header{border-bottom:0;padding-bottom:4px}
.value-picker[data-picker-kind=color]>header p{display:none}
.value-picker[data-picker-kind=color]>footer{grid-template-columns:1fr 1.7fr}
.value-picker[data-picker-kind=color]>footer .btn{font-size:14px;line-height:1.45;min-width:0;padding-inline:10px;word-break:normal}

/* Appearance: preview first, then mode and a compact named palette. */
.appearance-composition{padding:14px;border:1px solid var(--line);border-radius:20px;background:var(--surface);display:grid;gap:14px;min-width:0}
.appearance-preview-heading{display:flex;gap:10px;align-items:center;justify-content:space-between;font-size:12px;font-weight:550;line-height:1.5;flex-wrap:wrap}
.appearance-preview-heading small{font-size:10px;line-height:1.5;padding:3px 8px;border:1px solid var(--line);border-radius:20px;color:var(--muted);font-weight:400}
.appearance-sample{display:flex;align-items:center;gap:12px;min-width:0}
.appearance-sample-icon{display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:14px;background:var(--accent-soft);color:var(--accent-ink)}
.appearance-sample>div{min-width:0;display:grid;gap:5px;flex:1}
.appearance-sample strong{font-size:15px;line-height:1.4;font-weight:600}
.appearance-sample small{font-size:11px;line-height:1.5;color:var(--muted)}
.appearance-sample-check{width:28px;height:28px;flex:none;display:grid;place-items:center;background:var(--accent);color:var(--accent-contrast);border-radius:50%}
.settings-screen[data-settings-section=appearance] .mode-options{grid-template-columns:1fr 1fr;gap:4px;padding:4px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.settings-screen[data-settings-section=appearance] .mode-options label>span{flex-direction:row;gap:8px;padding:11px 8px;min-height:48px;border:0;border-radius:12px;background:transparent;color:var(--muted);box-shadow:none}
.settings-screen[data-settings-section=appearance] .mode-options input:checked+span{color:var(--text);background:var(--surface-2);box-shadow:0 1px 3px #0000000c}
.settings-screen[data-settings-section=appearance] .mode-options svg{width:19px;height:19px}
.settings-screen[data-settings-section=appearance] .theme-options{display:flex;flex-wrap:wrap;gap:8px;font-size:14px}
.settings-screen[data-settings-section=appearance] .theme-option{flex:1 0 20%;min-width:max-content}
.settings-screen[data-settings-section=appearance] .theme-option-body>span:last-child{white-space:nowrap}
#modal .settings-screen[data-settings-section=appearance]{gap:20px}
.settings-screen[data-settings-section=appearance] .theme-option-body{min-height:76px;padding:10px 8px;gap:7px;border:1px solid transparent;border-radius:14px;background:var(--surface);font-size:11px;line-height:1.45}
.settings-screen[data-settings-section=appearance] .theme-option input:checked+.theme-option-body{border-color:var(--accent-graphic);background:var(--surface-2);box-shadow:none;color:var(--text)}
.settings-screen[data-settings-section=appearance] .theme-option-swatch{width:28px;height:28px;border-radius:10px}
.theme-custom .theme-custom-field{margin:0;min-width:0;flex:1 1 160px;position:relative}
.theme-custom .theme-custom-field .value-trigger{min-height:48px;padding:10px 12px;border-radius:12px;box-shadow:none;border:1px solid var(--line);background:var(--surface-2);font-size:13px}
.theme-custom .theme-custom-field [data-value-label]{gap:8px;min-width:0}
.theme-custom .theme-custom-field [data-value-label]>span{font-size:12px}
.theme-custom .theme-custom-field .value-color-dot{width:22px;height:22px;border:1px solid var(--line);border-radius:7px}
.settings-screen[data-settings-section=appearance] .theme-custom{padding:14px;gap:10px;border:0;border-radius:17px;background:var(--surface)}
.settings-screen[data-settings-section=appearance] .theme-custom>label{font-size:13px;flex:1 1 120px;min-height:34px}
@media(prefers-reduced-motion:reduce){.color-palette-screen .color-swatch{transition:none}}

/* Only meaningful names and values remain visible. */
.color-context{min-height:78px;padding:14px;border-radius:17px}
.color-palette-screen .color-plane-help{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0;white-space:nowrap}

.color-selection code{display:none}

.color-palette-screen .color-plane-help{position:absolute;left:-10000px;top:0;width:1px;height:1px;min-width:0;min-height:0;overflow:hidden;clip-path:none;margin:0;white-space:nowrap}
