:root{color-scheme:light;--ink:#282239;--muted:#817b8c;--accent:#7655e8;--chosen-color:#7e1639}
*{box-sizing:border-box}
html{min-width:320px;min-height:100%;background:#f8f7fb;scroll-behavior:smooth}
body{min-height:100vh;margin:0;background:radial-gradient(ellipse at 4% 14%,#ffe8f0 0,transparent 25%),radial-gradient(ellipse at 98% 13%,#def3ff 0,transparent 27%),#f8f7fb;color:var(--ink);font-family:Inter,'Segoe UI',Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a58af0;outline-offset:3px}
.site-header{width:min(1080px,calc(100% - 48px));height:68px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #46366013}.brand{display:flex;align-items:center;gap:9px;color:#2c2440;text-decoration:none;font-size:16px;font-weight:800;letter-spacing:-.45px}.brand-mark{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#7449e8,#bc4fcf);color:#fff;box-shadow:0 4px 12px #8052d83b}.brand-period{color:#9952dc}.header-tools{display:flex;align-items:center;gap:16px}.lab-label{display:flex;align-items:center;gap:7px;color:#8b819b;font-size:8px;font-weight:800;letter-spacing:1.4px}.lab-label i{width:6px;height:6px;border-radius:50%;background:#54c689;box-shadow:0 0 0 4px #54c68920}.random-button{display:flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #e7e2ed;border-radius:9px;background:#ffffffbb;color:#6b5b8b;cursor:pointer;font-size:9px;font-weight:700;transition:all .18s}.random-button:hover{transform:translateY(-1px);border-color:#c9b9ed;background:#fff}.random-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.workspace{width:min(1000px,calc(100% - 48px));margin:auto;padding:40px 0 22px}.intro{margin:0 4px 21px}.intro-tag{display:flex;align-items:center;gap:7px;color:#9a76c3;font-size:8px;font-weight:800;letter-spacing:1.4px}.intro-tag span{color:#f0a847;font-size:10px}.intro h1{margin:8px 0 5px;color:#2d263e;font-size:clamp(30px,4vw,40px);font-weight:800;letter-spacing:-1.8px}.intro h1 span{color:#8a52d9}.intro p{margin:0;color:#898293;font-size:11px;line-height:1.6}
.studio-card{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(350px,.92fr);gap:0;overflow:hidden;border:1px solid #6750831c;border-radius:18px;background:#fff;box-shadow:0 14px 48px #31204f12}.color-preview{--chosen-color:#7e1639;--preview-ink:#fff;position:relative;isolation:isolate;min-height:370px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden;padding:22px 24px;background:linear-gradient(135deg,var(--chosen-color),#000000);color:var(--preview-ink);transition:background .15s,color .15s}.color-preview:before{position:absolute;z-index:-1;inset:0;background:radial-gradient(circle at 80% 24%,#ffffff38 0 1px,transparent 2px),linear-gradient(135deg,transparent 48%,#ffffff12 48.2%,transparent 48.6%);background-size:20px 20px,auto;content:''}.preview-orbit{position:absolute;z-index:-1;border:1px solid #ffffff38;border-radius:50%;pointer-events:none}.orbit-a{width:245px;height:245px;right:3%;top:4%;box-shadow:0 0 0 18px #ffffff08,0 0 0 40px #ffffff07}.orbit-b{width:150px;height:150px;right:15%;top:17%;border-color:#ffffff64}.preview-orb{position:absolute;z-index:-1;width:88px;height:88px;right:25%;top:26%;border:1px solid #ffffff90;border-radius:50%;background:radial-gradient(circle at 30% 27%,#ffffffab,transparent 24%),linear-gradient(140deg,#ffffff65,#ffffff08 70%);box-shadow:inset -10px -12px 25px #201a3726,0 15px 28px #201a372c;backdrop-filter:blur(2px)}.preview-caption,.preview-index,.sample-label,.sample-note{font-size:7px;font-weight:750;letter-spacing:1.25px;opacity:.75}.preview-caption{position:relative}.preview-sample{position:relative;max-width:300px;margin-top:auto;margin-bottom:4px}.sample-label{display:block;margin-bottom:12px}.preview-sample strong{display:block;font-size:clamp(29px,4vw,43px);font-weight:780;line-height:.99;letter-spacing:-1.5px}.preview-sample em{font-family:Georgia,serif;font-weight:500}.sample-note{display:block;margin-top:14px;font-size:8px;letter-spacing:.35px}.preview-index{position:absolute;right:22px;bottom:23px;line-height:1.7;text-align:right}.preview-index b{font-size:9px}
.controls{padding:24px 24px 20px}.control-heading{display:flex;align-items:center;justify-content:space-between}.eyebrow{display:block;margin-bottom:5px;color:#a08bc2;font-size:7px;font-weight:800;letter-spacing:1.2px}.control-heading h2{margin:0;color:#302840;font-size:15px;font-weight:760;letter-spacing:-.3px}.color-indicator{width:19px;height:19px;border:3px solid #fff;border-radius:50%;background:#7e1639;box-shadow:0 0 0 1px #ded8e8,0 2px 7px #37274b25}.hex-control{display:flex;align-items:center;gap:8px;margin-top:17px}.picker-button{position:relative;width:47px;height:47px;display:grid;place-items:center;flex:none;overflow:hidden;border:1px solid #e4deeb;border-radius:12px;background:#faf9fc;color:white;cursor:pointer}.picker-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.picker-button span{width:29px;height:29px;display:grid;place-items:center;border-radius:8px;background:var(--chosen-color);box-shadow:0 2px 8px #38265d2c;font-size:18px}.hex-input-wrap{height:45px;flex:1;display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #e6e1ec;border-radius:10px;background:#fcfbfd}.hex-input-wrap:focus-within{border-color:#ae97e6;box-shadow:0 0 0 3px #a48ae51c}.hex-input-wrap label{color:#a49aaf;font-size:7px;font-weight:800;letter-spacing:1px}.hex-input-wrap input{width:100%;min-width:0;border:0;outline:0;background:none;color:#463a5b;font-family:ui-monospace,Consolas,monospace;font-size:13px;font-weight:750;text-transform:uppercase}.copy-button{width:37px;height:37px;display:grid;place-items:center;flex:none;border:1px solid #e7e1ed;border-radius:9px;background:#faf8fd;color:#766297;cursor:pointer}.copy-button:hover{border-color:#c4b1e9;background:#f5efff}.copy-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.color-values{display:flex;align-items:center;justify-content:space-between;margin:10px 1px 0;color:#8d8599;font-family:ui-monospace,Consolas,monospace;font-size:8px}.color-values button{padding:4px 7px;border:0;border-radius:6px;background:#f2eef9;color:#7453bd;cursor:pointer;font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:8px;font-weight:700}.sliders{display:grid;gap:13px;margin-top:18px}.slider-row label{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px;color:#777084;font-size:9px;font-weight:650}.slider-row output{color:#514469;font-size:9px;font-variant-numeric:tabular-nums;font-weight:750}.slider-row input{width:100%;height:5px;margin:0;appearance:none;border-radius:99px;background:#e9e5ed;cursor:pointer}.slider-row input::-webkit-slider-thumb{width:15px;height:15px;appearance:none;border:3px solid white;border-radius:50%;background:#7e1639;box-shadow:0 1px 5px #34234249}.slider-row input::-moz-range-thumb{width:10px;height:10px;border:3px solid white;border-radius:50%;background:#7e1639;box-shadow:0 1px 5px #34234249}.hue-slider{background:linear-gradient(90deg,#f44,#ffd72e,#38c875,#38cfe0,#4857ed,#c944db,#f44)!important}.sat-slider{background:linear-gradient(90deg,#bbb,var(--chosen-color))!important}.light-slider{background:linear-gradient(90deg,#2d293b,var(--chosen-color),#fff)!important}.contrast-strip{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:9px;margin-top:18px;padding:9px 10px;border:1px solid #ece7f0;border-radius:10px;background:#faf9fc}.contrast-sample{display:flex;align-items:center;gap:7px;min-width:0;color:var(--chosen-color)}.contrast-sample b{font-family:Georgia,serif;font-size:16px}.contrast-sample span{overflow:hidden;color:#81798e;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.contrast-info{display:flex;align-items:flex-end;flex-direction:column;gap:2px}.contrast-info span{color:#a098aa;font-size:6px;font-weight:800;letter-spacing:.55px;white-space:nowrap}.contrast-info strong{color:#493d5e;font-family:ui-monospace,Consolas,monospace;font-size:10px}.contrast-grade{padding:5px 6px;border-radius:6px;background:#fff0d8;color:#a66817;font-size:6px;font-weight:850;letter-spacing:.35px;white-space:nowrap}.contrast-grade[data-level=pass]{background:#e8f8ee;color:#198252}.contrast-grade[data-level=large]{background:#fff0d8;color:#a66817}.contrast-grade[data-level=low]{background:#ffe9ed;color:#b3425c}
.palette-card{margin-top:13px;padding:18px 21px 14px;border:1px solid #6750831c;border-radius:16px;background:#ffffffed;box-shadow:0 10px 32px #31204f0b}.palette-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.palette-heading h2{margin:0;color:#302840;font-size:14px;font-weight:750;letter-spacing:-.3px}.export-button{display:flex;align-items:center;gap:6px;padding:7px 10px;border:1px solid #e5deef;border-radius:8px;background:#fbf9fe;color:#6d5a8f;cursor:pointer;font-size:8px;font-weight:750;transition:all .18s}.export-button:hover{border-color:#c2afe8;background:#f5efff}.export-button svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.harmony-row{display:flex;gap:5px;margin:14px 0 11px;overflow:auto;scrollbar-width:thin}.harmony{flex:none;padding:7px 10px;border:0;border-radius:7px;background:#f6f4f8;color:#81798e;cursor:pointer;font-size:8px;font-weight:700;transition:all .18s}.harmony:hover{color:#60449e;background:#f0eafb}.harmony.is-active{background:#352a4b;color:#fff;box-shadow:0 3px 9px #33274724}.palette-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.palette-swatch{min-width:0;padding:0;overflow:hidden;border:1px solid #eae6ee;border-radius:9px;background:#fff;cursor:pointer;text-align:left;transition:transform .18s,box-shadow .18s}.palette-swatch:hover{transform:translateY(-2px);box-shadow:0 7px 15px #3021441c}.swatch-fill{height:53px;display:block}.swatch-info{display:flex;justify-content:space-between;align-items:center;gap:4px;padding:7px}.swatch-info small{color:#a098a9;font-size:6px;font-weight:800;letter-spacing:.35px}.swatch-info b{color:#594e68;font-family:ui-monospace,Consolas,monospace;font-size:8px}.palette-bottom{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-top:12px;color:#938a9f;font-size:8px}.palette-bottom>span b{color:#7654be}.save-color{padding:5px 8px;border:1px solid #e5def0;border-radius:7px;background:#fbf9ff;color:#7152b4;cursor:pointer;font-size:8px;font-weight:700;white-space:nowrap}.save-color:hover{border-color:#c3afe9;background:#f4efff}.save-color span{font-size:12px}.saved-colors{display:flex;flex-wrap:wrap;gap:7px;padding-top:11px}.saved-colors[hidden]{display:none}.favorite{display:flex;align-items:center;gap:6px;padding:4px 6px;border:1px solid #ebe6ef;border-radius:7px;background:#fff;color:#645a72;cursor:pointer;font-family:ui-monospace,Consolas,monospace;font-size:7px}.favorite:hover{border-color:#c3afe9}.favorite i{width:13px;height:13px;border:1px solid #34274720;border-radius:4px}.favorite b{margin-left:3px;color:#a69bad;font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:11px}.footer{display:flex;justify-content:space-between;gap:10px;padding:15px 3px 0;color:#a098aa;font-size:7px;letter-spacing:.4px}.footer i{padding:0 4px;color:#dc7cac}.toast{position:fixed;z-index:5;right:20px;bottom:20px;max-width:calc(100% - 40px);padding:10px 14px;transform:translateY(10px);border:1px solid #d9cbed;border-radius:9px;background:#302646;color:#fff;box-shadow:0 8px 22px #251b3729;font-size:10px;opacity:0;pointer-events:none;transition:all .2s}.toast.visible{transform:translateY(0);opacity:1}
@media(max-width:760px){.studio-card{grid-template-columns:1fr}.color-preview{min-height:280px}.preview-orbit.orbit-a{right:15%}.preview-orb{right:29%}.controls{padding:20px 22px}.palette-card{margin-top:12px}}
@media(max-width:520px){.site-header,.workspace{width:calc(100% - 30px)}.site-header{height:60px}.header-tools{gap:8px}.lab-label{font-size:7px;letter-spacing:.9px}.random-button{padding:7px 8px;font-size:8px}.workspace{padding-top:28px}.intro{margin-bottom:16px}.intro h1{font-size:31px;letter-spacing:-1.3px}.intro p{font-size:10px}.studio-card{border-radius:15px}.color-preview{min-height:250px;padding:17px}.preview-sample strong{font-size:34px}.preview-orbit.orbit-a{width:200px;height:200px;right:0}.preview-orbit.orbit-b{width:120px;height:120px;right:12%}.preview-orb{width:70px;height:70px;right:24%}.controls{padding:17px}.palette-card{padding:15px 14px 12px}.palette-heading h2{font-size:12px}.harmony{padding:7px 8px;font-size:7px}.palette-grid{gap:5px}.swatch-fill{height:44px}.swatch-info{padding:6px 4px}.swatch-info small{font-size:5px}.swatch-info b{font-size:7px}.palette-bottom{align-items:flex-start;font-size:7px}.save-color{font-size:7px}.footer{flex-direction:column;align-items:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

/* Give palette controls and swatches comfortable, separate hit areas. */
.harmony-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0 17px}
.harmony{width:100%;min-height:42px;padding:10px 12px;border:1px solid #ffffff1c;border-radius:10px;font-size:10px;white-space:normal}
.palette-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.palette-swatch{min-height:112px;border-radius:11px}
.swatch-fill{height:69px}
.swatch-info{flex-direction:row;align-items:center;justify-content:space-between;gap:7px;padding:8px}
.swatch-info small{font-size:7px;letter-spacing:.3px}
.swatch-info b{font-size:9px}
@media(max-width:600px){
  .harmony-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:15px 0}
  .harmony{min-height:42px;font-size:10px}
  .palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .palette-swatch{min-height:105px}
  .swatch-fill{height:64px}
  .swatch-info{align-items:flex-start;flex-direction:column;gap:4px;padding:7px}
  .swatch-info small{font-size:7px}
  .swatch-info b{font-size:9px}
}

/* Keep the harmony controls and their color cards clear on narrow screens. */
.harmony-row{flex-wrap:wrap;overflow:visible}
.harmony{flex:0 0 auto}
.palette-swatch{display:flex;flex-direction:column;min-height:84px}
.swatch-info{display:flex;align-items:flex-start;flex-direction:column;justify-content:center;gap:3px;min-width:0}
.swatch-info small,.swatch-info b{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:520px){.harmony-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.harmony{width:100%;min-height:34px}.palette-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}.palette-swatch{min-height:80px}.swatch-info{padding:6px 4px}.swatch-info small{font-size:5px;letter-spacing:0}.swatch-info b{font-size:7px}}

/* Final responsive spacing for the palette controls and swatches. */
.harmony-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:16px 0;overflow:visible}
.harmony{width:100%;min-width:0;min-height:42px;padding:9px 8px;flex:none;border:1px solid #ffffff20;border-radius:10px;font-size:clamp(9px,.8vw,11px);line-height:1.25;white-space:normal}
.palette-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.palette-swatch{min-height:104px;border-radius:10px}
.swatch-fill{height:66px;flex:none}
.swatch-info{min-height:36px;align-items:flex-start;justify-content:center;gap:4px;padding:6px 7px}
.swatch-info small{font-size:7px;letter-spacing:.2px}
.swatch-info b{font-size:9px}
@media(max-width:600px){
  .harmony-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}
  .harmony{min-height:40px;padding:8px;font-size:10px}
  .palette-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .palette-swatch{min-height:101px}
  .swatch-fill{height:62px}
  .swatch-info{min-height:37px;padding:6px}
  .swatch-info small{font-size:7px;letter-spacing:0}
  .swatch-info b{font-size:9px}
}
@media(max-width:360px){
  .palette-grid{gap:6px}
  .swatch-info{padding:5px 4px}
  .swatch-info small{font-size:6px}
  .swatch-info b{font-size:8px}
}
