:root{--surface:#fff;--surface2:#f7f5fc;--page:#fff;--border:#e5def1;--text:#29243d;--subtext:#746d86}
:root[data-theme=dark]{color-scheme:dark;--surface:#1a1c24;--surface2:#222431;--page:#101116;--border:#343044;--text:#f0edf7;--subtext:#b7afc9;--ink:#f0edf7;--muted:#b7afc9;--purple:#a78bfa;--purple-dark:#c4b5fd;--soft:#222431;--line:#343044}
body{background:var(--page);color:var(--text)}.content-width{width:min(1200px,calc(100% - 48px))}.page-grid{width:min(1580px,100%);grid-template-columns:110px minmax(0,1200px) 110px;gap:24px}.header-inner{width:min(1320px,calc(100% - 48px));gap:20px}.site-header{background:var(--surface);border-color:var(--border)}.brand{gap:9px;align-items:center}.brand-mark{object-fit:contain;width:44px!important;height:44px!important;transform:scale(1.28);margin-right:3px}.brand .brand-subtitle{margin-left:3px;padding-left:11px;align-self:center;line-height:1.4}.theme-toggle{border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:9px;padding:9px 12px;font-size:12px;white-space:nowrap}.header-badge{font-size:11px}.site-header nav{gap:19px}.tool-grid{display:block}.tool-group{margin:0 0 42px;scroll-margin-top:22px}.tool-group-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px}.tool-group-heading h2{font-size:24px;margin:0}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.category-jump{display:inline-flex;padding:7px 9px;color:var(--subtext);border-bottom:1px solid transparent;font-size:12px}.category-jump:hover{color:var(--purple);border-color:var(--purple)}.catalog-controls{align-items:center}.tool-card{background:var(--surface);border-color:var(--border)}.tool-card h3 button{font-size:16px;line-height:1.4}.tool-card h3{margin-bottom:7px}.tool-card p{font-size:12px;line-height:1.65;color:var(--subtext);min-height:40px}.tool-card-bottom{font-size:10px;margin-top:12px;color:var(--subtext)}.tool-card--visual{padding-bottom:18px}.tool-card-image{border-bottom:1px solid var(--border)}
.editor-panel,.editor-card{background:var(--surface);border-color:var(--border);padding:26px}.tool-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:18px}.tool-form>.control-row,.tool-form>.range-field,.tool-form>.palette-grid,.tool-form>.color-result,.tool-form>.bg-controls{width:100%}.tool-form>.tool-field{flex:1 1 160px}.tool-field,.field,.pdf-control{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0;min-width:0;color:var(--subtext);font-size:13px}.editor-card>.field{margin:18px 0}.tool-field>input,.tool-field>select,.pdf-control>input,.pdf-control>select{width:100%;min-width:0}.control-row,.toolbar{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}.control-row>.tool-field,.toolbar>.field{flex:1 1 140px}.tool-form>button{margin:0}.editor-panel input:not([type=hidden]):not([type=range]):not([type=checkbox]):not([type=file]),.editor-panel select,.editor-panel textarea,.editor-card input:not([type=hidden]):not([type=range]):not([type=checkbox]):not([type=file]),.editor-card select,.editor-card textarea{border:1px solid var(--border);background:var(--surface2);color:var(--text);border-radius:8px;padding:10px 12px;min-height:42px;font-size:14px;line-height:1.45}.editor-panel textarea,.editor-card textarea{width:100%;resize:vertical}.editor-panel input[type=range],.editor-card input[type=range]{accent-color:var(--purple)}.checkbox-row{color:var(--subtext);font-size:13px;gap:8px}.dropzone{background:var(--surface2);border-color:var(--border);padding:32px 20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px}.dropzone .button{margin:0}.dropzone.has-file{padding:15px 20px;gap:8px}.upload-caption{color:var(--subtext)}.button{padding:11px 16px;min-height:42px;font-size:13px;line-height:1.4}.button.primary{color:#fff}.button.subtle{background:var(--surface2);border-color:var(--border);color:var(--purple)}.result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;padding-top:20px;margin-top:20px;border-top:1px solid var(--border)}.status:empty,.status-box:empty,.image-meta:empty{display:none}.status,.processing-note,.image-meta,.muted,.tool-note,.hint,.help-text{color:var(--subtext);font-size:12px;line-height:1.7}.processing-note{display:block;margin:12px 0}.help-details{width:100%;margin:24px 0 0;padding:16px 0 0;border-top:1px solid var(--border);color:var(--subtext);font-size:12px}.help-details summary{cursor:pointer}.help-details p{line-height:1.8;margin:12px 0 0}.tool-preview{border-color:var(--border);background:var(--surface2);margin-top:20px}.image-preview{min-height:180px;max-height:550px;display:flex;align-items:center;justify-content:center}.image-preview.is-zoomed{display:block}.image-preview canvas{max-height:510px;object-fit:contain}.image-preview.is-zoomed canvas{max-height:none}.background-editor .image-preview{min-height:260px}.bg-controls{background:var(--surface2);border-color:var(--border);padding:16px;display:flex;flex-direction:column;gap:16px}.bg-toolbar,.bg-backgrounds,.bg-view-controls{gap:9px;display:flex;flex-wrap:wrap;align-items:center}.bg-options{padding:14px 0;border-block:1px solid var(--border)}.bg-options .tool-field{margin-bottom:12px}.bg-backgrounds>.color-hex{display:none}.bg-layout{gap:20px}.range-field{padding:4px 0}.range-field label{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.range-field input{flex:1;min-width:120px}.range-value{padding:4px 8px;background:var(--surface2);border:1px solid var(--border);border-radius:6px;min-width:38px;text-align:center}
.color-control{display:inline-flex;gap:8px;align-items:center;position:relative;max-width:100%;vertical-align:middle}.color-control-swatch{height:42px;width:44px;flex:0 0 44px;border:2px solid var(--border);border-radius:9px;box-shadow:inset 0 0 0 2px #ffffff66}.color-control-hex{width:105px!important;min-width:0;font-family:ui-monospace,monospace}.color-popover{position:absolute;z-index:20;top:50px;left:0;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:15px;box-shadow:0 15px 45px #0004;display:flex;flex-direction:column;gap:12px;width:252px;color:var(--text)}.color-popover>.text-button{align-self:flex-end}.color-square{width:220px;height:130px;touch-action:none;border-radius:6px}.color-rgb{display:flex;gap:8px}.color-channel{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:11px;flex:1}.color-channel input{width:100%;padding:8px!important}.color-presets{display:flex;gap:6px;flex-wrap:wrap}.color-presets button{width:22px;height:22px;border:1px solid var(--border);border-radius:50%}.color-hue{background:linear-gradient(90deg,red,#ff0,#0f0,#0ff,#00f,#f0f,red);width:100%;accent-color:var(--purple)}.color-result{display:flex;flex-wrap:wrap;gap:12px}.color-code-card{border:1px solid var(--border);background:var(--surface2);border-radius:10px;padding:12px;min-width:160px;flex:1}.color-code-card strong{font-size:11px;color:var(--subtext)}.color-code-card code{display:block;margin-top:6px;font-size:14px;word-break:break-word}.color-magnifier{position:absolute;pointer-events:none;width:110px;height:110px;z-index:2;border:3px solid white;border-radius:50%;box-shadow:0 4px 20px #0006}.palette-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:14px}.palette-card{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface2)}.palette-card .palette-color{height:80px}.palette-card .palette-info{padding:12px;font-size:12px;line-height:1.65}.palette-card code{display:block;font-weight:650}.palette-card small{display:block;color:var(--subtext)}.direction-switch{display:flex;gap:10px;align-items:center;justify-content:center;padding:16px;border:1px solid var(--border);background:var(--surface2);border-radius:12px;margin-bottom:20px}.direction-switch button[aria-pressed=true]{background:var(--purple);color:var(--page)}.page-thumbnails{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;width:100%;margin:20px 0}.page-thumbnail{background:var(--surface2);border:1px solid var(--border);border-radius:10px;padding:12px;min-width:0}.page-thumbnail[draggable=true]{cursor:grab}.page-thumbnail canvas{display:block;max-width:100%;height:150px;object-fit:contain;margin:auto;background:white}.page-thumbnail.is-selected{border-color:var(--purple);box-shadow:0 0 0 2px var(--purple)}.thumbnail-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.thumbnail-actions button{padding:5px 8px;min-height:30px;font-size:11px}.page-thumbnail p{font-size:12px;text-align:center;margin:8px 0}.pdf-live-preview{border:1px solid var(--border);padding:18px;border-radius:10px;background:var(--surface2);display:flex;flex-direction:column;align-items:center;gap:12px}.pdf-live-preview canvas{max-width:100%;height:auto;max-height:520px;object-fit:contain;background:white}.file-summary{font-size:13px;color:var(--subtext);overflow-wrap:anywhere}.diff-inputs,.diff-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.diff-line{display:grid;grid-template-columns:42px 1fr;padding:6px 10px;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 ui-monospace,monospace;border-bottom:1px solid var(--border)}.diff-line small{color:var(--subtext)}.diff-add{background:#22c55e18;color:#138056}.diff-remove{background:#ef444418;color:#c43654}.diff-line mark{background:#e6b05040;color:inherit}.diff-preview{margin-top:20px;border:1px solid var(--border);border-radius:10px;overflow:hidden}.metadata-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.metadata-fields label{min-width:0}.metadata-fields input{width:100%}.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0}.tool-heading p{max-width:780px}
[data-theme=dark] .hero{background:linear-gradient(#16141f,#101116)}[data-theme=dark] .glow-violet,[data-theme=dark] .glow-blue{opacity:.13}[data-theme=dark] .floating-card,[data-theme=dark] .mini-check,[data-theme=dark] .mini-pill,[data-theme=dark] kbd,[data-theme=dark] .smart-search,[data-theme=dark] .search-results,[data-theme=dark] .save-current,[data-theme=dark] .related-panel,[data-theme=dark] .steps-grid article,[data-theme=dark] .privacy-strip,[data-theme=dark] dialog,[data-theme=dark] .toast{background:var(--surface);border-color:var(--border);color:var(--text)}[data-theme=dark] .header-badge,[data-theme=dark] .eyebrow,[data-theme=dark] .search-examples button,[data-theme=dark] .personal-chip,[data-theme=dark] .count-pill,[data-theme=dark] .tool-heading-icon,[data-theme=dark] .float-icon,[data-theme=dark] .step-icon,[data-theme=dark] .privacy-icon,[data-theme=dark] .favorite-filter,[data-theme=dark] .empty-state,[data-theme=dark] .ad-placeholder,[data-theme=dark] .tool-icon,[data-theme=dark] .status-box{background:var(--surface2);border-color:var(--border);color:var(--subtext)}[data-theme=dark] .smart-search input{color:var(--text)}[data-theme=dark] .smart-search{box-shadow:0 0 0 4px #a78bfa0a}[data-theme=dark] .search-result-button:hover,[data-theme=dark] .related-button:hover{background:var(--surface2)}[data-theme=dark] .hero-description,[data-theme=dark] .site-header nav,[data-theme=dark] .saved-nav,[data-theme=dark] .tool-heading p,[data-theme=dark] .search-caption,[data-theme=dark] .search-results-head p,[data-theme=dark] .search-result-button small,[data-theme=dark] .personal-note,[data-theme=dark] .steps-grid p,[data-theme=dark] .privacy-strip p,[data-theme=dark] .related-button,[data-theme=dark] .brand-subtitle,[data-theme=dark] .site-footer nav button,[data-theme=dark] .section-eyebrow{color:var(--subtext)}[data-theme=dark] .search-result-button,[data-theme=dark] .related-button,[data-theme=dark] .related-tip,[data-theme=dark] .site-footer{border-color:var(--border)}[data-theme=dark] .diff-add{color:#78dfb5}[data-theme=dark] .diff-remove{color:#ff9db2}
@media(max-width:1200px){.page-grid{grid-template-columns:minmax(0,1fr);padding-inline:28px}.ad-rail{display:none}.header-badge{display:none}.header-inner{gap:16px}}
@media(max-width:760px){.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.editor-panel,.editor-card{padding:20px}.header-inner{height:auto;min-height:72px;flex-wrap:wrap;padding:14px 0;gap:15px}.site-header nav{order:3;width:100%;justify-content:center}.theme-toggle{margin-left:auto}.page-grid{padding-inline:18px}.tool-form>.tool-field{flex-basis:140px}.diff-inputs{grid-template-columns:1fr}.metadata-fields{grid-template-columns:1fr}.tool-heading h1{font-size:25px}.color-popover{max-width:calc(100vw - 50px)}}
@media(max-width:480px){.category-grid{grid-template-columns:1fr}.hero{padding:45px 18px 35px}.hero h1{font-size:44px;letter-spacing:-2px}.hero-description{font-size:14px}.smart-search{padding-left:12px;gap:9px}.smart-search input{font-size:14px}.smart-search .button{padding:10px 13px}.header-inner{width:calc(100% - 32px)}.content-width{width:calc(100% - 36px)}.editor-panel,.editor-card{padding:16px}.diff-columns{grid-template-columns:1fr}.brand .brand-subtitle{font-size:9px}.catalog-controls{flex-wrap:wrap}.color-control-hex{width:91px!important}.tool-form{gap:16px}.direction-switch{flex-wrap:wrap}}

.pixel-size-row{margin-bottom:20px}.pixel-size-row>.tool-field{flex:1 1 100px}.pixel-tool-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.pixel-tool-strip button{font-size:23px;min-width:44px;padding:6px 12px}.pixel-tool-strip button[aria-pressed=true]{background:var(--purple);color:var(--page);border-color:var(--purple)}.pixel-options{padding:16px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;margin-bottom:20px}.pixel-options>.tool-field{flex:1 1 105px}.pixel-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px}.pixel-canvas-wrap{overflow:auto;max-height:580px;padding:16px;background:var(--surface2);border:1px solid var(--border);border-radius:10px}.pixel-canvas-wrap canvas{display:block;margin:auto;image-rendering:pixelated;max-width:none;cursor:crosshair}.pixel-layers{border:1px solid var(--border);border-radius:10px;padding:16px}.pixel-layers h3{margin-bottom:14px}.pixel-layers .tool-field{margin:12px 0}.pixel-layer{display:flex;gap:4px;margin:7px 0;border:1px solid var(--border);border-radius:6px}.pixel-layer.active{border-color:var(--purple)}.pixel-layer button{background:none;border:0;padding:7px;font-size:12px;min-height:34px;white-space:normal}.pixel-layer button:nth-child(2){flex:1;text-align:left}.pixel-layer-actions{display:flex;flex-wrap:wrap;gap:7px}.pixel-layer-actions button{font-size:11px;padding:6px 9px;min-height:32px}.pixel-frames{margin-top:22px;padding:16px;border:1px solid var(--border);border-radius:10px}.pixel-frame-list{display:flex;gap:10px;overflow:auto;margin:14px 0}.pixel-frame-list button{display:flex;flex-direction:column;padding:6px;gap:5px}.pixel-frame-list button[aria-pressed=true]{border-color:var(--purple)}.pixel-frame-list canvas{image-rendering:pixelated;width:54px;height:54px;background:conic-gradient(#ddd 25%,white 0 50%,#ddd 0 75%,white 0) 0 0/12px 12px}.pixel-frames>.tool-field{width:140px;margin:12px 0}.pixel-palette{display:flex;gap:7px;flex-wrap:wrap;width:100%}.pixel-palette button{min-height:28px;width:28px;padding:0;border:2px solid var(--border)}@media(max-width:780px){.pixel-layout{grid-template-columns:1fr}.pixel-layers{width:100%}.pixel-layer-actions{margin-top:14px}}

.cleanup-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;padding:20px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;margin:20px 0}.image-preview{max-height:550px!important;overflow:auto!important}.bg-backgrounds .color-control{width:100%}.tool-form .color-hex{max-width:110px}.tool-form>.bg-controls{margin:0}.color-popover{color:var(--text)}

.discord-editor-layout{display:grid;grid-template-columns:minmax(220px,330px) minmax(0,1fr);gap:28px}.discord-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.discord-controls>.checkbox-row,.discord-controls>.discord-element-list,.discord-controls>h3,.discord-controls>.discord-element-controls,.discord-controls>.control-row{grid-column:1/-1}.discord-element-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px;border:1px solid var(--border);border-radius:10px}.discord-stage{position:sticky;top:20px;align-self:start;padding:28px;display:flex;flex-direction:column;align-items:center;gap:30px;border:1px solid var(--border);border-radius:14px;background:var(--surface2)}.discord-stage>canvas{max-width:100%;max-height:340px;object-fit:contain;background:conic-gradient(#e5e7eb 25%,#fff 0 50%,#e5e7eb 0 75%,#fff 0) 0 0/20px 20px;border-radius:10px}.discord-chat{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.discord-chat>canvas{max-width:100%;object-fit:contain;height:auto}.discord-chat>.muted{width:100%;margin-left:40px}.discord-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--purple);color:var(--page)}.discord-library{padding-top:26px;margin-top:26px;border-top:1px solid var(--border)}.discord-library>input{width:100%;margin:16px 0}.discord-library .control-row{margin-bottom:18px}.discord-symbol-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:7px;margin:20px 0}.discord-symbol-grid button{padding:8px;background:#f6f5fa;min-width:0}.discord-symbol-grid img{width:100%;height:32px;object-fit:contain}.discord-element{display:flex;gap:6px;margin:7px 0}.discord-element button:first-child{flex:1;white-space:normal}.discord-element-controls .color-control{flex-wrap:wrap}.discord-element-controls .color-control-hex{width:82px!important}.discord-controls .color-control{flex-wrap:wrap}.discord-controls .color-control-hex{width:91px!important}.discord-controls .tool-field>input,.discord-controls .tool-field>select{width:100%}.discord-controls .color-popover{left:0}@media(max-width:850px){.discord-editor-layout{grid-template-columns:1fr}.discord-stage{position:static;order:-1}.discord-symbol-grid{grid-template-columns:repeat(8,minmax(0,1fr))}}@media(max-width:480px){.discord-symbol-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.discord-controls{grid-template-columns:1fr}.discord-controls>*{grid-column:1}.discord-stage{padding:18px}}
