:root{font-family:Arial,Helvetica,sans-serif;color:#20201e;background:#f5f1e8;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--paper: #f5f1e8;--ink: #20201e;--cobalt: #234bc4;--vermilion: #d74331;--ochre: #f2c538}*{box-sizing:border-box}body{margin:0;min-width:320px}#root{min-height:100svh;display:flex;flex-direction:column}main{flex:1;display:grid;width:100%}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button,input,textarea,select{border-radius:2px}button,select{cursor:pointer}button{min-height:52px;padding:12px 23px;border:1px solid var(--ink);background:transparent;font-size:20px;font-weight:700;display:inline-flex;gap:12px;align-items:center;justify-content:center}button:hover:not(:disabled){background:#e9e3d8}button:disabled{opacity:.43;cursor:not-allowed}button svg{flex:0 0 auto}button.primary{background:var(--cobalt);color:var(--paper);border-color:var(--cobalt)}button.primary:hover:not(:disabled){background:#1b3ca0}:focus-visible{outline:3px solid var(--cobalt);outline-offset:4px}button.primary:focus-visible{outline-color:var(--ink)}::selection{background:var(--ochre);color:var(--ink)}.site-header{position:sticky;top:0;z-index:10;width:100%;background:var(--paper);display:flex;justify-content:space-between;align-items:center;gap:40px;padding:16px 3.1%;border-bottom:1px solid var(--ink)}.brand{display:block;width:180px;flex-shrink:0;color:inherit;text-decoration:none}.brand img{display:block;width:100%;height:auto}.brand span{display:block;padding-left:0;font-size:15px;line-height:1.15;margin-top:2px;white-space:nowrap}nav{display:flex;align-items:center;gap:40px;padding-top:4px}nav a{position:relative;font-size:clamp(24px,2.5vw,38px);text-decoration:none;color:var(--ink);padding:8px 8px 20px}nav a[aria-current]{font-weight:750}nav a[aria-current]:after{content:"";position:absolute;bottom:0;height:7px;background:var(--cobalt);left:0;right:0}.workspace{display:grid;grid-template-columns:44% 56%;padding:16px 2.7% 0;min-height:0}.workspace.decode{grid-template-columns:47% 53%}.column{min-width:0;padding-top:12px;padding-bottom:16px}.input-column{padding-right:30px;border-right:1px solid var(--ink)}.output-column{padding-left:32px}h1,.section-title{font-size:clamp(38px,4vw,60px);line-height:1.08;letter-spacing:-1.9px;font-weight:800;margin:0 0 30px}h2.wheel-title{font-size:clamp(30px,3.1vw,46px);line-height:1.1;letter-spacing:-1.4px;font-weight:800;margin:33px 0 25px}textarea{display:block;background:transparent;border:1px solid var(--ink);padding:15px 19px;width:100%;resize:vertical;font-size:clamp(23px,2.45vw,36px);line-height:1.35}textarea::placeholder{color:#76736c;font-size:.79em}.message-input{height:176px;min-height:140px}.wheel-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px 26px}.field{min-width:0}.field label,.field-label,.paste-panel>label{display:block;font-size:20px;font-weight:700;margin-bottom:9px;line-height:1.2}input,select{width:100%;min-width:0;height:54px;border:1px solid var(--ink);background:transparent;padding:10px 15px;font-size:22px}.select-wrap{position:relative}.select-wrap:after{content:"";position:absolute;width:10px;height:10px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg);right:18px;top:19px;pointer-events:none}select{appearance:none;padding-right:38px;text-overflow:ellipsis}select option{background:var(--paper);color:var(--ink)}select[id$=brightness]{font-size:18px}.hue-field{grid-row:span 3}.hue-control{display:flex;flex-direction:column;align-items:flex-start;gap:16px}.hue-wheel{position:relative;width:160px;height:160px;flex-shrink:0;border-radius:50%;cursor:crosshair;touch-action:none;-webkit-user-select:none;user-select:none;background:conic-gradient(#e31c1c,#e3e31c,#1ce31c,#1ce3e3,#1c1ce3,#e31ce3,#e31c1c);box-shadow:inset 0 0 0 1px #20201e40}.hue-center{position:absolute;inset:15%;border-radius:50%;background:var(--paper);display:grid;place-items:center;pointer-events:none}.hue-center>span{width:34px;height:34px}.hue-marker{position:absolute;width:20px;height:20px;border:3px solid var(--paper);outline:2px solid var(--ink);border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}.hue-value{width:112px}.hue-value label{font-size:16px}.hue-value input{height:46px}.hue-range,.field-hint{display:block;font-size:13px;color:#65625b;margin-top:6px}input[aria-invalid=true]{border-color:var(--vermilion)}.wheel-fields .row-limit{width:auto;margin:0}.row-limit input{font-size:27px}.preview-wrap{width:100%;overflow:auto;max-height:460px}.stripe{display:block;width:100%;height:auto;image-rendering:pixelated}.image-info{margin:13px 0 24px;font-size:14px;color:#65625b;min-height:17px}.actions{display:flex;flex-wrap:wrap;gap:18px}.actions button{flex:1 1 auto;min-height:68px;font-size:clamp(18px,2vw,29px);padding:14px 21px}.actions .primary{flex-grow:1.2}.actions svg{width:31px;height:31px}.empty-preview{min-height:134px;border:1px dashed #99958c;display:flex;gap:17px;justify-content:center;align-items:center;padding:24px}.empty-preview p{font-size:18px;color:#65625b;margin:0}.empty-mark{display:flex;height:38px}.empty-mark i{width:13px;background:var(--cobalt)}.empty-mark i:nth-child(2){background:var(--vermilion)}.empty-mark i:nth-child(3){background:var(--ochre)}.feedback{margin-top:14px;min-height:22px;font-size:16px;line-height:1.4;overflow-wrap:anywhere}.feedback:empty{margin-top:0;min-height:0}.feedback.error{color:#a42c20;border-left:3px solid var(--vermilion);padding-left:12px}.copy-fallback{margin-top:16px}.copy-fallback input{font-size:16px}.upload-area{min-width:0}.upload-area.dragging{outline:3px dashed var(--cobalt);outline-offset:7px;background:#234bc40b}.upload-placeholder{border:1px dashed #99958c;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:192px;gap:14px;padding:22px}.upload-placeholder>svg{width:32px;height:32px;color:var(--cobalt)}.upload-placeholder p{margin:0;font-size:16px;color:#65625b}.file-row{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:23px}.file-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:24px;min-width:0}.file-row button{flex-shrink:0}.wheel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:37px;margin-bottom:25px}.wheel-heading .wheel-title{margin:0}button.text-button{border:0;min-height:44px;padding:6px 0;font-size:18px;font-weight:500;text-decoration:underline;text-underline-offset:4px;flex-shrink:0}button.text-button:hover{background:transparent;color:var(--cobalt)}.paste-panel{border-left:4px solid var(--ochre);padding-left:16px;margin:0 0 24px}.paste-panel textarea{font-size:16px;padding:10px;margin-bottom:12px}.paste-panel button{font-size:16px;min-height:44px}.decode-footer{position:sticky;bottom:0;z-index:10;display:flex;justify-content:center;padding:14px 22px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--ink);background:var(--paper)}.decode-footer .decode-button{width:min(100%,360px);margin:0;min-height:56px;font-size:24px}.settings-column .wheel-heading{margin-top:0}.result-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:30px;border:1px solid var(--ink);background:var(--paper);color:var(--ink);overflow:auto}.result-dialog::backdrop{background:#20201e80}.dialog-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin-bottom:24px}.dialog-heading .section-title{font-size:clamp(30px,4vw,42px);margin:0}.dialog-close{flex-shrink:0;width:44px;min-height:44px;padding:0;font-size:32px;line-height:1}.decoded-message{min-height:244px;height:244px;margin-bottom:29px;white-space:pre-wrap}.copy-message{min-height:64px;font-size:27px}.loading{font-size:16px}.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}@media(min-width:1600px){.site-header,main{max-width:1800px;margin-inline:auto}}@media(min-width:1191px)and (max-height:950px){h1,.section-title{font-size:clamp(36px,3.2vw,46px);margin-bottom:22px}.message-input{height:144px}h2.wheel-title{font-size:38px;margin-top:24px;margin-bottom:18px}.wheel-heading{margin-top:24px;margin-bottom:18px}.wheel-heading .wheel-title{margin:0}.wheel-fields{row-gap:16px}.hue-wheel{width:136px;height:136px}.hue-control{gap:12px}.row-limit{margin-top:18px}}@media(max-width:1190px){.site-header{padding:16px 3%}nav{gap:22px}.input-column{padding-right:24px}.output-column{padding-left:24px}.wheel-fields{gap:22px 18px}.field label,.field-label{font-size:17px}input,select{font-size:18px}.wheel-heading{flex-wrap:wrap}.file-row span{font-size:19px}.file-row button{font-size:18px;padding-inline:16px}}@media(min-width:901px)and (max-width:1190px){.wheel-fields{grid-template-columns:1fr}.hue-field{grid-row:auto}.hue-control{flex-direction:row;align-items:center;gap:26px}.row-limit{width:100%}}@media(max-width:900px){.site-header{display:block;padding:14px 22px 0}.brand{width:min(132px,100%)}.brand span{padding-left:0;font-size:13px}nav{margin-top:12px;gap:24px;justify-content:flex-start}nav a{font-size:24px;padding:9px 3px 12px}nav a[aria-current]:after{height:5px}.workspace,.workspace.decode{display:flex;flex-direction:column;padding:0 22px;min-height:0}.column{padding:30px 0}.input-column{border-right:0;border-bottom:1px solid var(--ink)}h1,.section-title{font-size:38px;letter-spacing:-1.2px;margin-bottom:23px}h2.wheel-title{font-size:31px;letter-spacing:-.8px;margin-top:28px;margin-bottom:21px}.message-input{font-size:24px;height:155px;padding:13px 14px}.wheel-fields{gap:21px 16px}.field label,.field-label{font-size:16px;margin-bottom:8px}input,select{font-size:17px;height:51px;padding-left:11px}select{padding-right:27px}.select-wrap:after{right:12px;width:8px;height:8px;top:19px}.row-limit{margin-top:23px;width:calc(50% - 8px)}.actions{gap:12px}.actions button{min-height:56px;padding:12px 15px;font-size:20px}.actions svg{width:25px;height:25px}.image-info{margin-bottom:22px}.file-row{gap:12px;margin-top:20px}.file-row span{font-size:18px}.file-row button{font-size:16px;min-height:46px;padding:10px 13px}.wheel-heading{margin-top:29px;margin-bottom:22px;gap:8px}.wheel-heading .wheel-title{margin:0}button.text-button{font-size:16px}.result-dialog{padding:20px}.dialog-heading{gap:10px}.dialog-heading .section-title{font-size:30px;letter-spacing:-1px}.decoded-message{font-size:24px;padding:14px;min-height:200px;height:230px}.copy-message{min-height:55px;font-size:22px}}@media(max-width:480px){.wheel-fields{grid-template-columns:1fr}.hue-field{grid-row:auto}.hue-control{flex-direction:row;align-items:center;gap:20px}.hue-wheel{width:144px;height:144px}.hue-value{width:104px}.row-limit{width:100%}}@media(max-width:370px){nav{gap:18px}nav a{font-size:22px}.section-title{font-size:34px}}.site-header{display:block;max-width:none;padding:0}.header-inner{width:100%;max-width:1800px;margin:auto;padding:16px clamp(22px,2.7vw,48px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px}.header-inner .brand{width:180px}.header-inner nav{padding:0;margin:0;gap:28px}.header-inner nav a{font-size:20px;padding:12px 4px;min-height:44px}.header-inner nav a[aria-current]:after{height:3px}.language-select{justify-self:end;width:160px}.language-select select{height:44px;font-size:15px;padding-left:12px}.language-select:after{top:15px}.construction-header{grid-template-columns:1fr 1fr}.construction{display:grid;place-items:center;padding:48px 22px;text-align:center}.construction-content{max-width:760px}.construction-content h1{font-size:clamp(36px,6vw,72px);overflow-wrap:anywhere}.construction-content p{font-size:clamp(20px,3vw,28px)}.construction-art{display:flex;justify-content:center;height:110px;gap:0;margin:0 auto 36px}.construction-art i{width:38px;background:var(--cobalt)}.construction-art i:nth-child(2){background:var(--vermilion);transform:translateY(-18px)}.construction-art i:nth-child(3){background:var(--ochre)}.field label,button,.dialog-heading{overflow-wrap:anywhere}@media(max-width:900px){.header-inner{grid-template-columns:1fr auto;gap:8px 12px;padding:12px 22px 0}.header-inner .brand{width:132px}.header-inner nav{grid-row:2;grid-column:1 / -1;justify-content:center;gap:24px}.header-inner nav a{font-size:18px;text-align:center}.language-select{grid-row:1;grid-column:2;width:132px}.language-select select{font-size:14px;padding-left:8px;padding-right:26px}.construction-header{padding-bottom:12px}}.language-icon{position:absolute;width:18px;height:18px;left:10px;top:13px;pointer-events:none}.language-select select{padding-left:35px}@media(max-width:900px){.language-icon{display:none}.language-select select{padding-left:8px}}.preset-tools{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-bottom:24px}.preset-tools .field{flex:1 1 220px}.preset-tools button{font-size:17px;min-height:54px}.preset-name{margin-bottom:24px}.preset-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px;margin-top:24px}.preset-actions button{font-size:17px}button.danger{color:#a42c20;border-color:#a42c20}.presets-page{padding:28px clamp(22px,2.7vw,48px);min-width:0}.presets-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px}.presets-heading h1{margin:0}.preset-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,380px),1fr));gap:24px;margin-top:24px}.preset-card{border:1px solid #20201e40;min-width:0;display:flex;flex-direction:column;background:#ffffff30}.preset-card h2,.preset-delete-name{overflow-wrap:anywhere}.preset-card h2{margin-top:0}.preset-card dl>div{display:flex;justify-content:space-between;gap:16px;margin-block:12px}.preset-card dt{color:#65625b}.preset-card dd{margin:0;text-align:right}@media(max-width:900px){.header-inner nav{gap:8px;width:100%}.header-inner nav a{flex:1 1 0;min-width:0;overflow-wrap:anywhere}}@media(max-width:480px){.header-inner nav:has(a[href="#presets"]) a{font-size:15px}.preset-card-body{padding:18px}.preset-actions button{flex:1 1 auto}}.preset-card dt,.preset-card dd{min-width:0;overflow-wrap:anywhere;flex:1}.decode-footer{gap:16px}.decode-footer .save-preset-button,.decode-footer .load-preset-button,.decode-footer .decode-button{flex:1 1 0;min-width:0;max-width:320px;min-height:56px;font-size:20px}.preset-summary{margin:20px 0}.preset-summary>div{display:flex;justify-content:space-between;gap:16px;margin-block:12px}.preset-summary dt{color:#65625b}.preset-summary dd{margin:0;text-align:right}.preset-summary dt,.preset-summary dd{min-width:0;overflow-wrap:anywhere;flex:1}@media(max-width:480px){.decode-footer{gap:12px}.decode-footer .save-preset-button,.decode-footer .load-preset-button,.decode-footer .decode-button{font-size:16px;padding:12px 8px}}.footer-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:16px;width:100%}.footer-actions button span{min-width:0;overflow-wrap:anywhere}.wheel-heading .text-button{max-width:min(330px,100%);min-width:0;text-align:left;font-size:16px;line-height:1.4}.wheel-heading{flex-wrap:wrap}.preset-toast,.inline-toast{background:var(--ink);color:var(--paper);padding:14px 18px;border-left:4px solid var(--ochre);line-height:1.5}.preset-toast{position:absolute;bottom:calc(100% + 12px);left:50%;transform:translate(-50%);width:max-content;max-width:min(520px,calc(100% - 32px));display:flex;align-items:center;gap:16px;box-shadow:0 4px 16px #20201e26}.preset-toast button{color:inherit;padding:0;min-width:32px;min-height:36px;border:0}.preset-toast button:hover:not(:disabled){background:#ffffff20}.preset-toast button:focus-visible{outline-color:var(--ochre)}@media(max-width:600px){.footer-actions{gap:10px}.footer-actions button{gap:8px}.footer-actions button svg{width:20px;height:20px}.footer-actions:has(.load-preset-button) .decode-button{flex-basis:100%;max-width:650px}}.preset-palette{display:flex;height:40px;flex-shrink:0}.preset-palette span{flex:1;min-width:0}.preset-card-body{padding:24px;display:flex;flex-direction:column;flex:1}.preset-card h2{font-size:24px;line-height:1.3;margin:0 0 8px}.preset-card .preset-summary{margin:8px 0 24px}.preset-card .preset-summary>div{margin:0;padding-block:10px;border-bottom:1px solid #20201e1a;gap:20px;align-items:baseline}.preset-card .preset-summary dt{font-size:14px;line-height:1.4}.preset-card .preset-summary dd{font-size:15px;font-weight:600;line-height:1.4}.preset-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:auto}.preset-card-actions button{min-width:0;min-height:44px;font-size:15px;padding:10px 12px;gap:8px}.preset-card-actions button span{min-width:0}.preset-card-actions button svg{width:20px;height:20px}.preset-card-actions .preset-apply{grid-column:1 / -1;justify-content:space-between;min-height:48px}.preset-card-actions button:not(.primary){border-color:transparent}.preset-card-actions .danger:hover{background:#d7433110}@media(max-width:480px){.preset-card-body{padding:18px}}
