.paint-preview{padding:40px 20px;background:#0d1117;border:1px solid #363c4d;border-radius:12px;margin-bottom:24px;text-align:center;overflow-wrap:anywhere}#preview{font-size:clamp(24px,5vw,42px);font-weight:800;background-clip:text;-webkit-background-clip:text;color:transparent}.paint-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}.paint-row{display:flex;gap:12px;align-items:end;margin-bottom:12px}.paint-row label{flex:1;min-width:0}.paint-row input[type=color]{padding:4px;height:44px}.paint-actions{display:flex;gap:12px;margin-top:28px}#builder>label,#image-fields>label{margin-top:18px}#collection article{border-bottom:1px solid #363c4d;padding:18px 0}#collection button{margin:8px 8px 0 0}code{overflow-wrap:anywhere}#paint-admin input{margin-bottom:12px}@media(max-width:600px){.paint-fields{grid-template-columns:1fr}.paint-row{flex-wrap:wrap}.paint-row label{min-width:65px}}
.paint-actions,.preview-toolbar{flex-wrap:wrap;display:flex;gap:10px}.preview-toolbar{align-items:center;margin-bottom:16px}.preview-toolbar label{margin:0}.paint-preview{text-align:left;padding:28px;font-size:16px}.sample-message{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-block:14px;line-height:1.7}.sample-time{color:#9296a8;font-size:12px}.sample-user{color:#bba8f5;font-weight:700}#preview{font-size:20px}.paint-preview.light{background:#fafafa;color:#242730}.light .sample-user{color:#7049ad}.light .sample-time{color:#626875}#gradient-bar{position:relative;height:48px;margin:18px 12px 24px;border:1px solid #8b8d99;border-radius:8px;cursor:crosshair}#gradient-bar input[type=range]{position:absolute;inset:0;width:100%;height:48px;margin:0;padding:0;appearance:none;background:transparent;border:0;pointer-events:none;min-height:0}#gradient-bar input[type=range]::-webkit-slider-runnable-track{background:transparent;height:8px}#gradient-bar input[type=range]::-webkit-slider-thumb{appearance:none;width:22px;height:28px;border:3px solid white;border-radius:6px;background:var(--point-color);pointer-events:auto;cursor:ew-resize;box-shadow:0 0 0 1px #161821;margin-top:10px}#gradient-bar input[type=range]::-moz-range-track{background:transparent;height:8px}#gradient-bar input[type=range]::-moz-range-thumb{width:18px;height:24px;border:3px solid white;border-radius:6px;background:var(--point-color);pointer-events:auto;cursor:ew-resize}#gradient-bar input:focus-visible{outline:3px solid #d4c5ff;z-index:1}input[type=range]{accent-color:#bba8f5}.paint-library{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px}.paint-library article,#collection article{padding:20px;border:1px solid #363c4d;border-radius:12px;margin-block:16px;overflow-wrap:anywhere}.paint-library button{margin:6px 6px 0 0}.paint-swatch{display:inline-block;font-size:24px;font-weight:800;background-clip:text;-webkit-background-clip:text;color:transparent;max-width:100%;overflow-wrap:anywhere}.check-label{display:flex;align-items:center;gap:12px}.check-label input{width:auto}#look-form label{margin-top:16px}#look-form button{margin-top:16px}#looks button{margin:6px}#collection label{margin-top:18px}#presets button{margin-bottom:12px}
:root{background:#09090c;color:#e3dfed}body{background-image:linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px);background-size:8px 8px}main{max-width:1040px}header{margin-bottom:36px}h1{font-size:36px}section{background:#101013;border-color:#35313e;border-radius:3px;box-shadow:inset 0 0 0 4px #0b0b0e}h2:before{content:'▪';color:#bca0f4;margin-right:10px}button,input,select{border-radius:3px}button{background:#18171d;border-color:#4a4455}button[aria-pressed=true],button.primary{background:#c3a4f4;color:#211531}input,select{background:#0c0c10;border-color:#494251}.paint-nav{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.paint-nav a{border:1px solid #4a405b;background:#181322;padding:14px 20px;color:#dbcef1;text-decoration:none}.paint-nav a:hover{background:#302444}.paint-preview{background:#08080b;border-radius:2px;border-color:#494052}.paint-preview #preview{font-size:clamp(24px,4vw,36px)}.sample-message:first-child,.sample-message:last-child{display:none}.paint-preview .sample-message{min-height:70px}#profile-form{max-width:620px;margin-block:24px}#profile-form label{margin-top:16px}.warning{color:#f3ce91;font-size:13px;line-height:1.6;border-left:3px solid #c6a1ee;padding-left:14px}.check-label input{flex:0 0 20px;min-height:20px;accent-color:#c3a4f4}#profile-save{margin-top:16px}#status{position:sticky;top:0;z-index:5;background:#17121e;padding:12px;border:1px solid #4a3a60}#status:empty{display:none}.paint-library article,#collection article{background:#111015;border-color:#3a3445;border-radius:3px}.paint-library article small{display:block;color:#a69ab6;margin-bottom:14px}.paint-swatch{padding-block:20px;font-size:28px}#collection{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:16px}.paint-actions{margin-bottom:20px}input[type=file]{padding:22px;border:2px dashed #8c6bb3;background:#1a1326}#editor,#mine-section,#library-section{scroll-margin-top:65px}#import-form{max-width:520px;margin-block:20px}@media(max-width:600px){main{padding:20px 12px}.paint-nav a{padding:12px}section{padding:20px}.key-row{flex-wrap:wrap}.key-row input{min-width:0}}
/* Paint cabinet: separate library and editor, matching the compact source flow. */
.paints-page{background:#0b0b0e;background-image:none}.paints-page main{max-width:1080px;padding-top:30px}.paints-page header{margin-bottom:36px}.paints-page h1{font-size:30px;letter-spacing:-.02em}.paints-page .intro{margin:0 0 24px}.paints-page .paint-nav{gap:0;border-bottom:1px solid #39313f;margin:0 0 28px}.paints-page .paint-nav button{border:0;border-bottom:3px solid transparent;background:transparent;padding:14px 22px;color:#a69caf;font-size:14px}.paints-page .paint-nav button[aria-selected=true]{color:#d3b2ff;border-bottom-color:#b990ed;background:#b990ed0c}.paints-page section{box-shadow:none;padding:26px;background:#111014;border-color:#39323f}.paints-page h2:before{content:none}.paints-page h2{font-size:23px;margin-bottom:12px}.paints-page h3{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#aaa0b4;margin:28px 0 14px}.paints-page #account-details{padding:20px 24px;border:1px solid #39323f;background:#111014;margin-bottom:20px}.paints-page summary{cursor:pointer;color:#c8bdd3;font-size:13px;padding:4px 0}.paints-page #account-details[open]>summary{margin-bottom:24px}.paints-page #editor{max-width:760px;margin:auto;padding:24px}.paints-page #editor-title{font-size:20px;margin-bottom:22px}.paints-page .preview-hero{border:1px solid #44384f;background:#0b090e;box-shadow:inset 0 0 0 4px #141018}.paints-page .preview-toolbar{padding:12px 16px;margin:0;gap:4px}.paints-page .preview-toolbar strong{font-size:11px;font-weight:500;color:#b4a7c0;margin-right:auto}.paints-page .preview-toolbar button{font-size:11px;min-height:30px;padding:5px 10px}.paints-page .preview-toolbar label{display:none}.paints-page .paint-preview{border:0;background:transparent;box-shadow:none;padding:24px 22px;margin:0;min-height:130px}.paints-page .paint-preview.light{background:#f3f1f5}.paints-page .paint-preview #preview{font-size:27px}.paints-page .sample-message{gap:3px;font-size:15px}.paints-page .sample-time{display:none}.paints-page .sample-message:nth-child(2){display:block;margin:0;min-height:70px;padding:10px 0}.paints-page .preview-options{margin:14px 0 24px}.paints-page .preview-options input{margin-top:12px}.paints-page #builder>.paint-actions{margin:24px 0;display:grid;grid-template-columns:1fr 1fr;gap:0}.paints-page #builder>.paint-actions button{border-radius:0}.paints-page #type{max-width:300px}.paints-page #image-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;border:1px dashed #675374;min-height:145px;background:#b28bd908;cursor:pointer;overflow:hidden;margin:0;gap:8px;padding:16px}.paints-page #image-drop:hover,.paints-page #image-drop.dragging{border-color:#cbabf1;background:#b28bd915}.paints-page #image-drop:focus-within{outline:2px solid #d1b4f4;outline-offset:3px}.paints-page #image{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer;padding:0}.paints-page #image-prompt{line-height:1.8;font-size:14px;color:#d4c2e4;pointer-events:none}.paints-page #image-drop small{font-size:11px;color:#9688a2;pointer-events:none}.paints-page #image-thumbnail{max-height:130px;max-width:100%;object-fit:contain;pointer-events:none}.paints-page .image-file-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px;color:#a99ab4;overflow-wrap:anywhere}.paints-page .image-file-actions button{font-size:11px;min-height:30px}.paints-page .segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:0}.paints-page .segmented button{border-radius:0;font-weight:500;min-height:42px}.paints-page .segmented button+button{border-left:0}.paints-page .fit-samples{display:grid;grid-template-columns:1fr 2fr;gap:12px;margin:20px 0}.paints-page .fit-samples>div{background:#0b090e;border:1px solid #342b3e;min-width:0;padding:14px 12px;display:flex;align-items:center;flex-direction:column;gap:12px;overflow:hidden}.paints-page .fit-samples small{font-size:9px;letter-spacing:.08em;color:#91819e}.paints-page .fit-samples .paint-swatch{font-size:21px;white-space:nowrap;padding:8px 0;overflow-wrap:normal}.paints-page .image-advanced{border-top:1px solid #302737;padding:14px 0}.paints-page .editor-savebar{position:sticky;bottom:0;z-index:3;background:#17121d;border:1px solid #4b3b59;padding:16px;margin:28px -8px -8px;box-shadow:0 -8px 24px #0005}.paints-page .editor-savebar .paint-actions{gap:8px;margin:12px 0 0}.paints-page .editor-savebar button{flex:1;white-space:nowrap}.paints-page .editor-savebar button:last-child{flex:0}.paints-page .save-name label{font-size:11px;color:#a99ab4;margin-bottom:6px}.paints-page .save-name input{min-height:38px;font-size:13px}.paints-page #save-hint:empty{display:none}.paints-page #library-section{padding:0;border:0;background:transparent}.paints-page #library-section>.paint-fields{grid-template-columns:2fr 1fr 1fr;align-items:end;border:1px solid #39323f;padding:18px;background:#111014;gap:14px}.paints-page #library-section>.paint-fields .check-label{grid-column:1/-1;margin:0}.paints-page .library-import{margin:18px 0}.paints-page .paint-library{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.paints-page .paint-library article{margin:0;padding:16px;position:relative;min-width:0}.paints-page .paint-library h3{font-size:14px;letter-spacing:0;text-transform:none;color:#e5d9ee;margin:14px 0 7px}.paints-page .paint-library small{font-size:11px;margin-bottom:14px}.paints-page .paint-library .paint-swatch{font-size:23px;display:block;text-align:center;background-color:#09070b;padding:24px 0}.paints-page .paint-library button{min-height:32px;padding:6px 9px;font-size:11px;margin:4px 4px 0 0}.paints-page .paint-library button[aria-pressed]{font-size:0}.paints-page .paint-library button[aria-pressed]:before{content:'☆';font-size:18px}.paints-page .paint-library button[aria-pressed=true]:before{content:'★'}.paints-page #collection article h3{font-size:15px;text-transform:none;letter-spacing:0;color:#e5d9ee}.paints-page button:disabled{cursor:not-allowed}.paints-page .hint{color:#aaa0b4}.paints-page #status{color:#e0cafa}.paints-page .editor-savebar .hint{margin:10px 0 0}@media(max-width:720px){.paints-page main{padding:20px 14px}.paints-page .paint-nav button{padding:12px 14px;font-size:13px}.paints-page .paint-library{grid-template-columns:repeat(2,minmax(0,1fr))}.paints-page #library-section>.paint-fields{grid-template-columns:1fr 1fr}.paints-page #library-section>.paint-fields>label:first-child{grid-column:1/-1}.paints-page #editor{padding:18px}.paints-page .editor-savebar .paint-actions{flex-wrap:wrap}.paints-page .fit-samples{grid-template-columns:1fr}.paints-page .editor-savebar{position:static}.paints-page .paint-preview #preview{font-size:23px}}@media(max-width:440px){.paints-page .paint-library{grid-template-columns:1fr}.paints-page .segmented button{font-size:11px;padding:8px}.paints-page .paint-nav button{padding:12px 10px}}
.paints-page .editor-savebar{display:grid;grid-template-columns:minmax(120px,1fr) auto;align-items:end;gap:12px;padding:12px}.paints-page .editor-savebar .paint-actions{margin:0;flex-wrap:nowrap}.paints-page .save-name label{margin-top:0}.paints-page .editor-savebar .hint{grid-column:1/-1}.paints-page .editor-savebar button{min-height:38px;padding:8px 12px;font-size:12px}.paints-page .paint-library article{background-image:linear-gradient(#ffffff02 1px,transparent 1px),linear-gradient(90deg,#ffffff02 1px,transparent 1px);background-size:5px 5px;box-shadow:inset 3px 3px #08070a,inset -3px -3px #08070a}.paints-page .paint-library article:hover{border-color:#8c6eab}.paints-page .paint-library article:focus-within{border-color:#c4a0ed}@media(max-width:720px){.paints-page .editor-savebar{grid-template-columns:1fr}.paints-page .editor-savebar .paint-actions{flex-wrap:wrap}}
/* Keep the paint inside the text box; card spacing must not stretch its stops. */
.paint-card-preview{display:flex;align-items:center;justify-content:center;min-height:86px;background:#09070b;overflow:hidden}
.paints-page .paint-library .paint-swatch,.paint-card-preview .paint-swatch{display:inline-block;width:auto;padding:0;line-height:1;white-space:nowrap;background-color:transparent;font-size:23px}
.paints-page #collection .paint-swatch,.paints-page .fit-samples .paint-swatch{padding:0;line-height:1}
.paints-page .fit-samples>div{padding-block:16px}
.library-pages{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:12px 0}
#library-count{scroll-margin-top:24px}
/* Constructor follows the reference's compact, text-first editor. */
.paints-page #editor{padding:22px 20px 0;background:#0d0c0f;border:1px solid #353039;box-shadow:inset 4px 4px #09080b,inset -4px -4px #09080b}
.paints-page .editor-heading{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.paints-page .editor-heading h2{margin:0;font-size:18px}
.paints-page .editor-heading h2:before{display:none}
.paints-page .editor-heading button{min-height:34px;font-size:12px;padding:7px 12px}
.paints-page .preview-hero{position:relative;border:1px solid #38323f;background:#08080a;padding:16px 18px;margin-bottom:24px;box-shadow:inset 4px 4px #0e0c11,inset -4px -4px #0e0c11}
.paints-page .preview-toolbar{margin:0;gap:0}
.paints-page .preview-toolbar #chat-sample{margin-right:auto}
.paints-page .preview-toolbar button{font-size:12px;min-height:31px;padding:6px 12px;border-radius:0}
.paints-page .preview-toolbar button[aria-pressed=true],.paints-page #builder button[aria-pressed=true]{background:#bfa0f0;color:#17111f;border-color:#ccb1f2}
.paints-page .preview-toolbar>label{display:none}
.paints-page .paint-preview{padding:0!important;margin:0;border:0;background:transparent!important;box-shadow:none}
.paints-page .paint-preview .sample-message{display:none}
.paints-page .paint-preview .sample-message:nth-child(2){display:flex;gap:7px;min-height:80px;margin:0;line-height:1.15;flex-wrap:wrap;align-content:center}
.paints-page .paint-preview .sample-time{display:none}
.paints-page .paint-preview #preview{font-size:34px;line-height:1;padding:0;white-space:nowrap;max-width:100%;overflow:hidden}
.paints-page .preview-hero:has(.light){background:#f6f4f9;color:#211b29}
.paints-page .preview-options{margin:0 0 20px}
.paints-page .preview-options:not([open]){display:none}
.paints-page #builder>.paint-actions{display:inline-flex;gap:0;margin:0 0 20px;padding:3px;border:1px solid #353039}
.paints-page #builder>.paint-actions button{margin:0;min-height:31px;padding:6px 14px;font-size:12px}
.paints-page .editor-block{border-top:1px solid #2d2931;padding:20px 4px}
.paints-page .editor-block h3,.paints-page #image-fields h3{font-size:11px;letter-spacing:.14em;color:#a39aa9;margin:0 0 14px}
.paints-page .editor-block .paint-actions{margin:0;gap:10px}
.paints-page .editor-block button{min-height:34px;padding:7px 12px;font-size:12px}
.paints-page #gradient-bar{height:46px;border-radius:0;margin:0 4px 14px;border-color:#8e6db5}
.paints-page #gradient-bar input[type=range]{height:46px}
.paints-page #gradient-bar input[type=range]::-webkit-slider-thumb{width:12px;height:22px;border:3px solid white;border-radius:0;margin-top:11px;box-shadow:0 0 0 1px #17121e}
.paints-page .stop-toolbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.paints-page #selected-stop{font-size:12px;color:#a39aa9;margin-right:auto}
.paints-page #stop-color{width:34px;height:32px;min-height:32px;padding:0;border:0;cursor:pointer}
.paints-page #stop-flip{margin-left:auto}
.paints-page .stop-details{margin-top:16px;font-size:12px;color:#9c90a7}
.paints-page .stop-details[open]{padding:12px 0}
.paints-page .editor-block .paint-fields{margin-top:16px;grid-template-columns:1fr;gap:14px}
.paints-page #angle{width:66px;display:inline-block;min-height:32px;padding:4px 8px;vertical-align:middle;margin-left:12px}
.paints-page #angle-slider{width:calc(100% - 100px);display:inline-block;min-height:24px;padding:0;vertical-align:middle}
.paints-page .editor-block label{font-size:12px;color:#b1a8b9}
.paints-page #tile-buttons{display:flex;margin-top:10px}
.paints-page #tile-buttons button{min-width:50px}
.paints-page #move-buttons{grid-template-columns:repeat(4,1fr)}
.paints-page #image-fields{padding:16px 4px 0}
.paints-page #file-state{margin-left:8px;padding:4px 8px;background:#292035;color:#cbb3ed;letter-spacing:.06em;font-size:10px}
.paints-page #file-state:empty{display:none}
.paints-page #image-drop{height:auto;aspect-ratio:4/1;min-height:130px;background:#070609;border-color:#4b4354;border-radius:0}
.paints-page #image-crop{height:auto;aspect-ratio:4/1;min-height:130px;width:100%;border:1px solid #4b4354;background-color:#070609;background-repeat:no-repeat;cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;overflow:hidden;outline-offset:4px}
.paints-page #image-crop.dragging{cursor:grabbing;border-color:#c4a0ed}
.paints-page .crop-zoom{display:flex;gap:10px;align-items:center;font-size:11px;color:#a99ab5;margin:8px 0}
.paints-page .crop-zoom input{flex:1;width:0;min-height:24px;padding:0;accent-color:#bc9cea}
.paints-page #crop-help{font-size:11px;margin:4px 0 12px}
.paints-page .image-file-actions{justify-content:flex-start;flex-wrap:wrap;font-size:11px}
.paints-page #image-filename{flex-basis:100%}
.paints-page .image-file-actions button{background:transparent}
.paints-page #image-help{font-size:11px;line-height:1.7;margin:14px 0 22px}
.paints-page .fit-block{padding-top:20px;border-top:1px solid #2d2931}
.paints-page #fit-buttons button{position:relative;padding:34px 4px 8px;font-size:11px}
.paints-page #fit-buttons button:before{content:'';position:absolute;top:10px;left:calc(50% - 24px);width:48px;height:11px;background:linear-gradient(90deg,#ff827c 0 20%,#f8d78d 20% 40%,#96e8b7 40% 60%,#90d2f5 60% 80%,#bea0f4 80%)}
.paints-page #fit-buttons button[data-fit=tile]:before{background-size:24px 100%}
.paints-page #fit-buttons button[data-fit=stretch]:before{width:60px;left:calc(50% - 30px)}
.paints-page #fit-description{font-size:12px;min-height:38px;line-height:1.6}
.paints-page .fit-samples{margin:14px 0;gap:12px}
.paints-page .fit-samples>div{background:#08070a;border:1px solid #2e2836;display:flex;flex-direction:column;gap:14px;align-items:flex-start;overflow:hidden;padding:14px}
.paints-page .fit-samples small{font-size:10px;letter-spacing:0;color:#a79ab2}
.paints-page .fit-samples .paint-swatch{font-size:19px}
.paints-page .editor-savebar{grid-template-columns:minmax(120px,1fr) auto;padding:14px 4px;margin:10px 0 0;border:0;border-top:1px solid #39313f;background:#0e0b12f5;box-shadow:0 -10px 20px #0007}
.paints-page .editor-savebar .paint-actions{grid-column:1/-1;justify-content:flex-end}
.paints-page .editor-savebar .paint-actions button{flex:0 1 auto;min-width:0;font-size:12px;min-height:35px;white-space:nowrap;padding:7px 12px}
.paints-page .editor-savebar button[name=apply]{background:#c0a0f0;color:#170f20;border-color:#d4b7f9}
.paints-page #editor-undo,.paints-page #editor-redo{font-size:22px;line-height:1;padding:4px 10px}
.paints-page #new{display:none}
.paints-page .publish-control{display:flex;gap:10px;align-items:center;font-size:12px;margin:0}
.paints-page .publish-control input{width:34px;height:20px;min-height:20px;accent-color:#bca0ed}
.paints-page .publish-control small{display:block;font-size:10px;color:#9c8daa;margin-top:3px}
@media(min-width:900px){.paints-page #gradient-fields{display:grid;grid-template-columns:1.1fr 1fr;column-gap:30px;align-items:start}.paints-page #gradient-fields>.editor-block:first-child{grid-column:1/-1}.paints-page #gradient-fields>.editor-block:nth-child(2){grid-row:2/4}.paints-page #gradient-fields>.editor-block:nth-child(4){grid-column:2}.paints-page #image-fields{display:grid;grid-template-columns:1.1fr 1fr;gap:30px}.paints-page .fit-block{border-top:0;padding-top:0}.paints-page .editor-savebar{grid-template-columns:minmax(160px,1fr) auto auto;align-items:center}.paints-page .editor-savebar .paint-actions{grid-column:auto}.paints-page .editor-savebar .save-name label{display:none}}
@media(max-width:600px){.paints-page #editor{padding:18px 14px 0}.paints-page .paint-preview #preview{font-size:26px}.paints-page .editor-savebar{position:sticky;bottom:0}.paints-page .editor-savebar .paint-actions{flex-wrap:nowrap}.paints-page #image-crop,.paints-page #image-drop{min-height:110px}.paints-page .fit-samples{grid-template-columns:1fr}.paints-page #stop-flip{margin-left:0}}
.paints-page #chat-preview{min-height:0}
.paints-page .preview-hero{padding:12px 18px}
.paints-page .preview-hero .preview-toolbar{padding:0;min-height:0}
.paints-page .preview-hero .sample-message:nth-child(2){padding:0;min-height:76px}

