:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#243342;background:#f5f7fa;font-size:16px}*{box-sizing:border-box}body{margin:0;height:100dvh;display:flex;flex-direction:column}button,input{font:inherit}button{cursor:pointer;border:1px solid #d8dfe7;background:white;color:#334454;border-radius:9px;padding:10px 14px;font-size:14px;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#eef3f7}button:active{transform:translateY(1px)}button:focus-visible,input:focus-visible,canvas:focus-visible{outline:3px solid #2688dd;outline-offset:2px}button:disabled{opacity:.4;cursor:default}.primary{background:#f7c43b;border-color:#e9b22a;color:#3d3217}.primary:hover{background:#ffcf51}header{height:80px;flex-shrink:0;background:white;border-bottom:1px solid #dfe5ed;display:flex;align-items:center;justify-content:space-between;padding:0 28px;gap:16px}.brand{font-size:18px;font-weight:800;letter-spacing:.08em;display:flex;align-items:center;gap:8px}.brand b{color:#5a7b94}.logo{background:#137fb2;color:white;font-size:30px;width:44px;height:44px;text-align:center;line-height:42px;border-radius:12px;margin-right:6px}.actions{display:flex;gap:8px}main{display:flex;flex:1;min-height:0}aside{width:262px;flex-shrink:0;background:white;padding:25px 22px;overflow-y:auto;border-right:1px solid #dfe5ed}.eyebrow{font-size:12px;font-weight:800;color:#58869c;letter-spacing:.13em}h2{font-size:22px;letter-spacing:-.04em;margin:6px 0 22px}.tools{display:grid;gap:7px}.tools button{text-align:left;display:flex;align-items:center;justify-content:space-between}.active{background:#e7f4fc!important;border-color:#3b9ccc!important;color:#176587!important}kbd{font:12px ui-monospace,monospace;background:#edf1f5;border-radius:4px;padding:2px 5px;color:#667782}.section{display:block;margin:24px 0 12px;font-size:12px;font-weight:800;letter-spacing:.1em;color:#6b7b89}.pieces{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.pieces button{padding:10px 3px;min-height:65px;font-size:12px}.brick-icon{display:block;font-size:20px;letter-spacing:-3px;line-height:22px;color:#5c91ac;margin-bottom:6px}.wide{width:100%;margin-top:10px;padding:10px 8px}#colors{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}#colors button{padding:0;height:28px;width:28px;border-radius:50%;border:2px solid #ffffff;box-shadow:0 0 0 1px #dce2e8}#colors button.chosen{box-shadow:0 0 0 2px #223e51;transform:scale(1.08)}.custom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:14px}input[type=color]{width:36px;height:28px;padding:0;border:0;background:none}.tip{margin-top:24px;background:#f4f7fa;padding:14px;border-radius:10px;font-size:14px;line-height:1.6;color:#677b8b}.tip b{color:#2b455a}.tip p{margin:6px 0}.workspace{position:relative;flex:1;min-width:0;background:#eaf0f7;overflow:hidden}canvas{width:100%;height:100%;display:block;touch-action:none}.canvas-top{position:absolute;z-index:2;top:23px;left:26px;right:26px;display:flex;justify-content:space-between;gap:12px;pointer-events:none}.canvas-top>div{pointer-events:auto}#name{display:block;background:transparent;border:1px solid transparent;font-size:20px;font-weight:700;color:#304758;max-width:240px;border-radius:5px;padding:3px 0}#name:hover{border-color:#b9c8d5}#count{display:block;font-size:13px;color:#6a7d8d;margin-top:3px}.view-tools{display:flex;gap:6px;align-items:flex-start}.view-tools button{background:#ffffffdc;font-size:13px}.canvas-bottom{position:absolute;bottom:20px;left:25px;right:25px;display:flex;gap:10px;justify-content:space-between;font-size:13px;color:#607585;pointer-events:none}#selection{background:white;border-radius:6px;padding:6px 10px;color:#314e63}#hint{padding:6px 0}#toast{position:absolute;bottom:70px;left:50%;transform:translateX(-50%);background:#203c50;color:white;padding:12px 20px;border-radius:10px;box-shadow:0 8px 30px #24405822;opacity:0;transition:opacity .15s;pointer-events:none;text-align:center;max-width:90%}footer{height:38px;display:flex;align-items:center;justify-content:space-between;padding:0 26px;gap:12px;font-size:12px;background:white;color:#6b7c89;border-top:1px solid #dfe5ed}.sep{margin:0 10px;color:#ccd5de}dialog{border:0;border-radius:16px;max-width:480px;padding:28px;color:#2a4052;box-shadow:0 20px 100px #122b4540}dialog::backdrop{background:#152f4c66}dialog p{line-height:1.7}dialog h2{margin-top:0}.dialog-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:24px}#dialog-body table{border-collapse:collapse;width:100%;font-size:14px}td{padding:8px;border-bottom:1px solid #e8ecf0}@media(max-width:800px){header{padding:0 14px;height:68px}.brand{font-size:14px}.brand b{display:none}.actions button{padding:9px;font-size:12px}aside{width:190px;padding:20px 12px}.canvas-top{left:14px;right:14px;top:15px;flex-wrap:wrap}#name{font-size:17px;max-width:170px}.view-tools button{padding:7px;font-size:12px}.canvas-bottom{left:14px;right:14px}#hint{display:none}footer span:last-child{display:none}#colors{gap:7px;grid-template-columns:repeat(6,1fr)}#colors button{width:22px;height:22px}.tip{padding:10px;font-size:13px}}@media(max-width:480px){aside{width:145px;padding:15px 8px}.pieces{gap:4px}.pieces button{font-size:11px}.tip{display:none}.section{font-size:11px}#colors{grid-template-columns:repeat(4,1fr)}h2{font-size:18px}.logo{width:32px;height:32px;font-size:24px;line-height:32px}.brand{font-size:12px;gap:2px}header{gap:4px}.actions{gap:3px}.actions button{font-size:11px;padding:7px}.canvas-bottom{bottom:12px}}

.number-pieces{grid-template-columns:repeat(5,1fr)}.number-pieces button{min-height:42px;padding:5px 0}.number-icon{display:block;font-size:25px;line-height:30px;font-weight:800;color:#304d66}.number-pieces button.active .number-icon{color:#176587}

.number-pieces{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.number-pieces button{padding:5px 4px 8px;font-size:13px;min-height:105px}.character-preview{height:85px;width:100%;object-fit:contain;pointer-events:none}.character-help{font-size:13px;line-height:1.5;color:#64798b;margin:-4px 0 12px}

#text-panel[hidden]{display:none}#text-panel label:not(.section){display:block;font-size:14px;margin:12px 0 6px}#text-panel input:not([type=range]),#font-choice{width:100%;border:1px solid #cad7e2;border-radius:6px;padding:8px;font-size:14px;background:white;color:#294256}#font-choice{margin-top:7px}#font-choice option{padding:5px}#text-preview{padding:14px 6px;background:#f2f6fa;border-radius:8px;margin:10px 0;overflow-wrap:anywhere;text-align:center;font-size:25px}input[type=range]{width:100%;accent-color:#1687b7}.size-controls{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:14px}.size-controls button{padding:6px 12px;font-size:20px}.platform-panel{border-bottom:1px solid #e2e9ef;padding-bottom:4px}#text-size-value{float:right}
