:root{--ink:#292D3E;--muted:#626979;--brand:#6250B8;--brand-dark:#4D3D99;--paper:#F4F5F8;--line:#E2E4EC;--soft:#EFEDF8;--green:#416D59;font-family:'Avenir Next','Segoe UI',sans-serif;font-synthesis:none;color:var(--ink);background:var(--paper)}
html{scroll-padding-top:24px}body{margin:0}main{max-width:1320px;margin:auto;padding:0 40px 28px}a{color:var(--brand);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{border:1px solid var(--line);border-radius:8px;color:var(--ink);padding:10px 16px;min-height:42px;font-size:13px;font-weight:600;background:white}button:hover{background:var(--soft);border-color:#CDC5E8}button.primary{background:var(--brand);border-color:var(--brand);color:white;padding:13px 21px}button.primary:hover{background:var(--brand-dark)}button:disabled{opacity:.55;cursor:wait}select{border:1px solid var(--line);background:white;border-radius:7px;min-height:38px;padding:6px 10px;color:var(--ink)}h1,h2,h3,p{margin:0}h2{font-size:24px;letter-spacing:-.035em;font-weight:650}h3{font-size:17px;letter-spacing:-.025em;font-weight:650}p{color:var(--muted);line-height:1.65}.hint{font-size:13px;color:var(--muted);line-height:1.65}
.topbar{max-width:1320px;margin:auto;padding:0 40px;height:92px;display:flex;align-items:center;justify-content:space-between;gap:28px}.wordmark{display:flex;gap:12px;align-items:center;color:var(--ink);font-size:16px;line-height:1.18;letter-spacing:-.035em;font-weight:750}.wordmark:hover{text-decoration:none}.brand-sub{display:block;font-weight:550}.nav-links{display:flex;gap:32px;align-items:center}.nav-links a{color:var(--muted);font-size:13px;font-weight:550;padding:8px 0}.nav-links a[aria-current]{color:var(--ink)}.local-badge{font-size:12px;color:var(--green);padding:7px 11px;border:1px solid #D9E4DD;border-radius:20px;background:#EDF3EF;white-space:nowrap}
.hero{display:flex;justify-content:space-between;align-items:flex-end;gap:40px;border:0;padding:38px 0 46px}h1{font-size:clamp(38px,4.8vw,59px);line-height:1.08;font-weight:600;letter-spacing:-.055em;margin:0 0 22px;max-width:700px}.lead{font-size:16px;line-height:1.7}.hero-note{padding-bottom:5px;min-width:260px}.hero-note>p:first-child{font-size:13px;font-weight:550;color:var(--ink)}.format-tags{display:flex;gap:7px;margin:14px 0 18px}.format-tags span{font-size:12px;background:white;border:1px solid var(--line);padding:6px 9px;border-radius:5px}.hero-note .quiet{font-size:12px;line-height:1.8}
.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.workspace-heading h2{font-size:19px}.workspace-heading>span{font-size:12px;color:var(--muted)}.workspace{display:grid;grid-template-columns:312px minmax(0,1fr);border:1px solid var(--line);background:white;border-radius:18px;overflow:hidden;box-shadow:0 5px 24px #252A3D04}.input-panel{padding:26px;border-right:1px solid var(--line)}.panel-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-title h3{font-size:15px;letter-spacing:-.025em}.step{display:inline-flex;justify-content:center;align-items:center;font-size:12px;color:var(--brand);background:var(--soft);width:27px;height:27px;border-radius:50%;font-weight:600;flex-shrink:0}
.dropzone{min-height:174px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:18px 10px;border:1.5px dashed #CBC5DE;border-radius:12px;background:#FAF9FD;cursor:pointer;text-align:center}.dropzone:hover,.dropzone.drag-over{background:var(--soft);border-color:var(--brand)}.upload-symbol{font-size:30px;font-weight:400;color:var(--brand);line-height:1;margin-bottom:10px}.dropzone strong{font-size:13px}.dropzone>span:not(.upload-symbol){font-size:12px;color:var(--muted)}.dropzone small{font-size:12px;color:var(--muted);margin-top:12px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.paste-hint{font-size:12px;margin:14px 0 16px;line-height:1.8}kbd{font-family:inherit;font-size:12px;border:1px solid var(--line);padding:1px 4px;border-radius:3px;background:white}.sample-button{width:100%;color:var(--brand);background:white;font-size:12px}
.file-info{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;font-size:12px;margin-top:20px}.file-info strong{overflow-wrap:anywhere;max-width:185px;line-height:1.6;padding-top:5px}.text-button{border:0;background:none;color:var(--brand);padding:5px 0;font-size:12px;min-height:32px}.text-button:hover{background:none;text-decoration:underline}.page-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;margin-top:16px}.page-controls input{width:48px;min-height:36px;padding:5px;border:1px solid var(--line);border-radius:5px}.page-controls button{padding:6px 11px;min-height:36px}.refine-section{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.input-panel .hint{font-size:12px}.field{display:flex;justify-content:space-between;align-items:center;font-size:12px;margin-top:16px;gap:8px}.field select{min-width:60px}.check{display:flex;align-items:center;gap:8px;font-size:12px;margin:15px 0;line-height:1.6}input[type=checkbox]{width:15px;height:15px;accent-color:var(--brand)}.wide{width:100%;margin:2px 0 12px}.crop-info{display:flex;justify-content:space-between;flex-wrap:wrap;align-items:center}.manual{border-top:1px solid var(--line);padding-top:17px;margin-top:22px;font-size:12px;color:var(--muted)}summary{cursor:pointer;padding:5px 0;line-height:1.6}.manual label{display:block;margin-top:14px}.manual textarea{width:100%;border:1px solid var(--line);border-radius:6px;padding:10px;font-size:12px;margin:10px 0;resize:vertical}.manual button{width:100%}
.source-panel{display:flex;flex-direction:column;min-width:0;padding:24px;background:#FEFEFF}.source-head{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:12px;color:var(--muted);margin-bottom:18px}.source-head strong{font-size:12px;color:var(--ink)}.source-head span{text-align:right;overflow-wrap:anywhere}.preview-stage{position:relative;display:flex;justify-content:center;align-items:center;flex:1;min-height:352px;background:#F1F2F7;border-radius:10px;overflow:hidden}.preview-stage:has(canvas:not([hidden])){display:flex;min-height:0;user-select:none;touch-action:none}.preview-stage canvas{display:block;max-width:100%;max-height:570px;width:auto;height:auto;margin:auto;cursor:crosshair;touch-action:none}.empty-preview{max-width:440px;padding:28px 22px;text-align:center}.example-figure{background:white;border:1px solid #E5E5EF;border-radius:8px;padding:22px 26px;margin:0 auto 23px;max-width:304px;box-shadow:0 12px 24px #252A3D06}.example-figure img{display:block;width:100%;height:auto}.empty-preview strong{display:block;font-size:15px;font-weight:600;letter-spacing:-.025em}.empty-preview p{font-size:12px;margin:9px 0}.empty-preview small{color:var(--muted);font-size:12px}#crop-overlay{position:absolute;pointer-events:none;border:2px solid var(--brand);background:#6250B817;box-shadow:0 0 0 3000px #252A3D22}.canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px;min-height:28px}#task-status{font-size:12px;color:var(--muted);line-height:1.7}#task-status.error{color:#A33443}#view-palette{flex-shrink:0;font-size:12px;font-weight:650}
#results{margin-top:32px;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.results-head{display:flex;align-items:center;justify-content:space-between;padding:26px 30px;gap:24px;border:0}.result-name{min-width:0}.ready-label{font-size:12px;color:var(--green)}.results-head h2{font-size:25px;margin:7px 0 5px;overflow-wrap:anywhere}.results-head .hint{font-size:12px}.results-head .primary{flex-shrink:0}.result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 30px;border-bottom:1px solid var(--line)}.result-tabs{display:flex;gap:28px}.result-tabs button{padding:15px 0 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:var(--muted);font-size:13px;font-weight:550;white-space:nowrap}.result-tabs button[aria-selected=true]{color:var(--brand);border-bottom-color:var(--brand)}.result-tabs button:hover{color:var(--brand)}.vision-control{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);padding-bottom:5px}.vision-control select{font-size:12px;min-height:32px}.tab-panel{margin:0;padding:28px 30px 26px}.section-head{display:flex;justify-content:space-between;align-items:center;gap:18px}.section-head .hint{margin-top:6px;font-size:12px}.section-head>.text-button{flex-shrink:0}
.colors{display:grid;grid-template-columns:repeat(auto-fit,minmax(142px,1fr));gap:12px;margin-top:23px}.color{border:1px solid var(--line);border-radius:10px;overflow:hidden}.swatch{height:145px}.index{font-family:inherit;font-size:12px;font-weight:550;top:13px;left:14px}.values{padding:13px}.hex{font-size:14px;font-weight:550;border:0;background:#F5F5F9;padding:8px;border-radius:5px;font-family:'Avenir Next','Segoe UI',sans-serif;letter-spacing:.025em}.rgb{font-size:12px;margin:10px 0 12px;white-space:normal;overflow-wrap:anywhere}.copy{font-size:12px;padding:5px 8px;min-height:30px;margin:0 4px 3px 0;font-weight:500;border-radius:5px}.palette-footnote{margin-top:22px;display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid var(--line);padding-top:16px}.palette-footnote p{font-size:12px}.derived-label{color:var(--brand);background:var(--soft);padding:5px 9px;border-radius:5px;font-size:12px;white-space:nowrap}
#tonal{margin-top:18px}.tonal{display:grid;grid-template-columns:122px minmax(150px,1fr) 224px;gap:20px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.tonal .name{font-family:inherit;font-size:12px;font-weight:500}.gradient{height:36px;border-radius:5px}.chip{height:36px;min-height:36px;min-width:0;border-radius:4px}.chips{gap:4px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:22px}.continuous-scales{margin-top:28px}.scale-block{border:1px solid var(--line);border-radius:10px;padding:22px}.scale-block .hint{margin-top:7px;font-size:12px}.scale{height:48px;border-radius:5px;margin-top:20px}.scale-labels{font-size:12px}.download-menu{margin-top:16px;gap:8px}.download-menu button{font-size:12px;padding:8px 12px;min-height:36px}.figure-grid{margin-top:22px}.preview{padding:22px;border:1px solid var(--line);border-radius:10px}.controls{margin-bottom:16px;font-size:12px}.controls select{font-size:12px;min-height:32px}.legend{gap:12px;font-size:12px}
.readability{margin-top:24px;border-top:1px solid var(--line);padding-top:14px}.readability>summary{font-size:13px;font-weight:600}#audit-summary{color:var(--muted);font-size:12px;font-weight:400;margin-left:8px}.audit{margin-top:14px;gap:28px;background:#F4F5F8;border-radius:8px;padding:22px}.audit h3{font-size:14px}.audit ul{font-size:12px}.contrast-row{font-size:12px;border-bottom:1px solid var(--line)}.note{font-size:12px;margin-top:16px}.export-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:23px}.export-card{border:1px solid var(--line);border-radius:12px;padding:23px;background:#FEFEFF;display:flex;flex-direction:column}.file-type{color:var(--brand);font-size:12px;margin-bottom:20px}.export-card h3{font-size:22px;margin-bottom:11px;letter-spacing:-.04em}.export-card p{font-size:12px;line-height:1.85}.export-actions{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}.export-actions button{font-size:12px;padding:9px 12px;color:var(--brand);border-color:#D7D0EA}.export-card details{margin-top:auto;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:11px}.export-card details p{margin-top:10px;font-size:12px}.export-card .export-note{font-size:12px;margin-top:auto}#status{margin:0;padding:13px 30px;font-size:12px;color:var(--brand);background:#F7F5FC}#status:empty{display:none}
.how{margin-top:65px;padding-top:0}.how-heading{display:flex;align-items:center;justify-content:space-between;gap:30px}.how-heading h2{font-size:30px;line-height:1.25;letter-spacing:-.045em}.how-heading p{font-size:13px}.how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:44px;margin-top:30px}.how-grid article{padding-top:20px;border-top:1px solid var(--line)}.how-grid .step{margin-bottom:16px}.how-grid h3{font-size:16px;margin-bottom:10px}.how-grid p{font-size:12px;max-width:300px}footer{display:flex;justify-content:space-between;align-items:flex-start;gap:30px;border-top:1px solid var(--line);padding-top:25px;margin-top:54px;font-size:12px;line-height:1.8;color:var(--muted)}footer strong{color:var(--ink);font-size:12px}footer p{font-size:12px;margin:4px 0}footer>div:last-child{text-align:right}footer a{margin-left:16px;color:var(--muted)}[hidden]{display:none!important}.skip-link{position:absolute;top:-100px;left:20px;background:white;padding:12px 16px;z-index:20}.skip-link:focus{top:12px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,label[tabindex]:focus-visible,summary:focus-visible,a:focus-visible,[role=button]:focus-visible,[role=tabpanel]:focus-visible{outline:3px solid #A799DE;outline-offset:3px}
@media(min-width:1100px){.colors:has(.color:nth-child(7)){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){main,.topbar{padding-left:26px;padding-right:26px}.hero{gap:24px;padding-top:28px}.hero-note{min-width:235px}.local-badge{display:none}.workspace{grid-template-columns:275px minmax(0,1fr)}.input-panel{padding:22px}.source-panel{padding:20px}.result-tabs{gap:20px}.tonal{grid-template-columns:106px 1fr 180px;gap:14px}.export-card{padding:18px}.export-grid{gap:12px}}
@media(max-width:760px){.topbar{height:76px}.nav-links{gap:18px}.hero{padding:25px 0 32px}h1{font-size:40px}.hero-note{display:none}.lead{font-size:14px}.workspace-heading>span{display:none}.workspace{grid-template-columns:1fr}.input-panel{border-right:0;border-bottom:1px solid var(--line)}.dropzone{min-height:148px}.source-panel{padding:20px}.preview-stage{min-height:300px}.paste-hint{font-size:12px}.panel-title h3{font-size:16px}.manual{font-size:12px}.input-panel .hint{font-size:12px}.check{font-size:12px}.results-head{padding:24px;display:block}.results-head h2{font-size:23px}.results-head>.primary{margin-top:17px;width:100%}.result-toolbar{display:block;padding:0 24px}.result-tabs{justify-content:space-between;gap:12px}.result-tabs button{font-size:12px}.vision-control{justify-content:flex-end;padding:12px 0;border-top:1px solid #F1F1F6}.tab-panel{padding:23px 24px}.section-head{display:block}.section-head>.text-button,.section-head>.derived-label{display:inline-block;margin-top:8px}.colors{grid-template-columns:repeat(3,minmax(0,1fr))}.swatch{height:130px}.two-col,.audit{grid-template-columns:1fr}.tonal{grid-template-columns:110px 1fr;gap:12px}.chips{grid-column:1/-1}.export-grid{grid-template-columns:1fr;gap:16px}.export-card{padding:24px}.export-card .file-type{margin-bottom:12px}.how{margin-top:42px}.how-heading{display:block}.how-heading h2{font-size:27px}.how-heading p{margin-top:16px}.how-grid{grid-template-columns:1fr;gap:20px;margin-top:24px}.how-grid p{max-width:none}}
@media(max-width:450px){main,.topbar{padding-left:18px;padding-right:18px}.wordmark{font-size:13px;gap:8px}.wordmark img{width:29px;height:29px}.nav-links{gap:14px}.nav-links a{font-size:12px}.nav-links a:first-child{display:none}h1{font-size:38px}.lead{font-size:13px}.workspace-heading h2{font-size:18px}.input-panel{padding:22px}.source-panel{padding:17px}.source-head{align-items:flex-start;font-size:12px}.source-head strong{font-size:12px}.preview-stage{min-height:282px}.empty-preview{padding:24px 18px}.empty-preview strong{font-size:13px}.example-figure{padding:18px;margin-bottom:18px}.results-head{padding:22px 20px}.result-toolbar{padding:0 20px}.result-tabs{gap:8px}.result-tabs button{font-size:12px}.tab-panel{padding:22px 20px}.colors{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.values{padding:12px}.copy{font-size:12px;padding:5px 6px}.palette-footnote{display:block}.tonal{grid-template-columns:93px minmax(0,1fr);gap:10px}.tonal .name{font-size:12px}.gradient,.chip{height:32px;min-height:32px}.scale-block,.preview,.audit{padding:18px}.export-card{padding:20px}.canvas-footer{display:block}#view-palette{display:inline-block;margin-top:8px}#status{padding:12px 20px}footer{display:block;margin-top:36px}footer>div:last-child{text-align:left;margin-top:14px}footer a{margin:0 14px 0 0}}
@media(max-width:360px){.result-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
