:root{color-scheme:light;--accent:#a51d29;--border:#d5dce2;--muted:#52616c}*{box-sizing:border-box}body{margin:0;background:#f3f6f8;color:#182832;font:16px/1.5 system-ui,sans-serif}main{max-width:1280px;margin:32px auto;padding:28px;background:white;border-radius:12px;box-shadow:0 4px 30px #1427380c}h1{margin:0;font-size:2rem}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}header p{margin:.3em 0;color:var(--muted)}label{display:flex;flex-direction:column;gap:6px}input,textarea,button,.button{font:inherit}input,textarea{padding:10px;border:1px solid var(--border);border-radius:6px;max-width:100%}textarea{resize:vertical}button,.button{display:inline-block;border:1px solid transparent;border-radius:6px;background:var(--accent);color:white;padding:10px 16px;cursor:pointer;text-decoration:none}button:disabled{opacity:.55;cursor:wait}.secondary{background:#edf1f4;color:#1c3344;border-color:var(--border)}button:hover,.button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #359bd0;outline-offset:2px}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.editor{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--border);border-radius:8px;overflow:hidden}.editor textarea{border:0;border-radius:0;min-height:480px;font:14px/1.65 ui-monospace,monospace;tab-size:4;padding:18px}.editor section{border-left:1px solid var(--border);padding:18px;max-height:650px;overflow:auto;overflow-wrap:anywhere}.editor section h1{font-size:1.8rem}.editor section h2{font-size:1.3rem}.editor section h3{font-size:1.1rem}.editor section pre{white-space:pre-wrap;background:#f0f3f5;padding:12px}.framebreak{font:12px system-ui;color:#606c78;border-top:1px dashed #9aabb8;padding:6px 0;margin:18px 0}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px}.hint,small,.muted{color:var(--muted)}.hint{font-size:.88rem}.fields+label{margin-top:14px}fieldset{border:1px solid var(--border);border-radius:8px;margin:22px 0;padding:16px}legend{padding:0 8px}.drop{padding:18px;border:2px dashed var(--border);border-radius:8px;background:#f8fafb}.drop.drag{border-color:var(--accent);background:#fff1f1}.drop input{font-size:.9rem;background:white}.file-thumbnail{display:block;width:80px;height:64px;object-fit:contain;border:1px solid var(--border);border-radius:6px;background:white;margin-top:10px}.file-note{font-size:.85rem;color:var(--muted);overflow-wrap:anywhere}.colors{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.colors input[type=color]{width:72px;height:45px;padding:4px}.colors input[type=text],#color-hex{width:130px}.actions{display:flex;gap:20px;align-items:center;margin:24px 0}.actions span{font-size:.85rem;color:var(--muted)}#result{background:#f4f7fa;border:1px solid var(--border);border-radius:8px;padding:20px;margin:24px 0}#result h2{margin-top:0}#warnings{color:#8e3700}#downloads{display:flex;gap:12px;flex-wrap:wrap}#downloads[hidden],[hidden]{display:none!important}footer{font-size:.85rem;color:var(--muted);margin-top:30px;padding-top:16px;border-top:1px solid var(--border)}.login{max-width:500px;margin-top:12vh}.login form{display:grid;gap:20px}.notice{padding:16px;background:#fff3d7;border-radius:6px}details li{margin:8px 0}.editor textarea.drag{outline:3px solid #359bd0;outline-offset:-3px}#editor-note[data-error=true]{color:#a51d29}.upload-title{display:flex;align-items:center;justify-content:space-between;min-height:30px;gap:12px}.clear-file{background:white;color:#a51d29;border:1px solid var(--border);font-size:24px;line-height:1;padding:0;width:28px;height:28px}.drop small,.drop input,.drop .file-note{display:block;margin-top:8px}.categories{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.category{--rubric:#bd2025;display:grid;grid-template-columns:24px 1fr;gap:4px 10px;border:1px solid var(--border);border-top:10px solid var(--rubric);border-radius:6px;padding:14px;cursor:pointer}.category.tech{--rubric:#0c9897}.category.work{--rubric:#0082c0}.category strong{font-size:1.5rem;color:var(--rubric)}.category span{grid-column:2;font-size:.85rem}.category:has(input:checked){outline:2px solid var(--rubric);background:#f5f8fa}.category input{align-self:center}.categories+small{display:block}@media(max-width:760px){main{margin:0;padding:18px;border-radius:0}.editor,.fields{grid-template-columns:1fr}.editor textarea{min-height:320px}.editor section{border-left:0;border-top:1px solid var(--border);max-height:420px}header{align-items:start}.actions{align-items:start;flex-direction:column}.editor-toolbar{gap:10px}.categories{grid-template-columns:1fr}}
