.paper-palette{margin:25px 0;padding:22px;border:1px solid #dce6f5;border-radius:12px;background:#f6f9ff}
.palette-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.palette-heading h3{margin:5px 0 0;font-size:17px;color:#173d70}.palette-eyebrow{font-size:9px;letter-spacing:1.7px;color:#738bab}.palette-actions{display:flex;gap:5px;flex-wrap:wrap}
.palette-swatches{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.palette-swatch{padding:0 0 12px;background:#fff;border:1px solid #dee6f2;border-radius:9px;overflow:hidden;text-align:left;min-width:0}.palette-swatch:hover{border-color:#94b7f5;box-shadow:0 5px 16px #2157b316}.palette-color{height:70px;background:var(--swatch);display:block;position:relative;margin-bottom:11px}.palette-color>span{position:absolute;left:10px;top:8px;background:#fff9;border-radius:4px;padding:3px 5px;font-size:9px;color:#334663}.palette-swatch strong,.palette-swatch small{display:block;margin:0 10px}.palette-swatch strong{font-family:Consolas,monospace;font-size:13px;color:#284f84}.palette-swatch small{font-size:10px;color:#7c8da6;margin-top:4px}.palette-source{font-size:11px;color:#4d71a3;line-height:1.8;margin:15px 0 5px}.palette-annotation{font-size:11px;color:#6b7f9c;line-height:1.9;margin:0}
.paper-palette-mini{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:13px 0;font-size:11px;color:#6e84a6}.paper-palette-mini>div{display:flex;gap:4px}.mini-swatch{width:23px;height:23px;background:var(--swatch);border:1px solid #0000000d;border-radius:5px;padding:0}.mini-swatch:hover{transform:translateY(-2px);box-shadow:0 3px 7px #1d458626}
@media(max-width:620px){.paper-palette{padding:15px}.palette-heading{align-items:flex-start;flex-direction:column}.palette-swatches{gap:5px}.palette-color{height:56px}.palette-swatch strong{font-size:10px;margin-inline:5px}.palette-swatch small{font-size:8px;margin-inline:5px}.palette-swatch{padding-bottom:9px}.palette-heading h3{font-size:16px}.palette-source,.palette-annotation{font-size:11px}}

/* Keep small palette labels readable without altering extracted colors. */
.palette-eyebrow, .palette-swatch small, .palette-annotation,
.paper-palette-mini { color: var(--text-secondary, #425b76); }
.palette-source { color: var(--text-link, #24558f); }
.palette-color > span { color: var(--text-strong, #233e5b); background: #ffffffed; }
