.tei-page{padding-bottom:64px}
.tei-breadcrumb{padding:22px 0 18px;display:flex;gap:9px;color:var(--muted);font-size:.87rem}.tei-breadcrumb a{color:var(--primary);font-weight:700}
.tei-heading{display:flex;gap:16px;align-items:center;padding:8px 0 24px}.tei-icon{width:74px;height:64px;display:grid;place-items:center;border-radius:16px;background:#eef8f3;font-size:1.7rem}.tei-heading h1{margin:0;font-size:clamp(2rem,5vw,3rem);letter-spacing:-.045em}.tei-heading p{margin:7px 0 0;color:var(--muted)}.tei-promo{margin-bottom:18px}
.tei-workspace{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(300px,.8fr);border:1px solid var(--border);border-radius:20px;background:#fff;overflow:hidden}.tei-main{padding:20px;border-right:1px solid var(--border)}
.tei-dropzone{min-height:300px;padding:35px 20px;display:grid;place-items:center;align-content:center;text-align:center;border:2px dashed #b5c3d0;border-radius:16px;background:#fbfcfd;cursor:pointer}.tei-dropzone.drag-over{border-color:var(--primary);background:#f4fbf8}.tei-image-icon{width:76px;height:76px;display:grid;place-items:center;border:2px solid #aab7c4;border-radius:14px;color:#176c57;font-weight:900}.tei-dropzone h2{margin:16px 0 5px}.tei-dropzone p{margin:0 0 20px;color:var(--muted)}.tei-select,.tei-primary{border:0;border-radius:12px;padding:13px 20px;background:#e72727;color:#fff;font-weight:850;cursor:pointer}
.tei-editor,.tei-result{padding:18px;border:1px solid var(--border);border-radius:14px}.tei-editor-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.tei-editor-head h2{margin:0;font-size:1.05rem}.tei-editor-head p{margin:4px 0 0;color:var(--muted);font-size:.76rem}.tei-editor-head button{border:1px solid var(--border);border-radius:9px;padding:8px 10px;background:#fff;color:var(--primary);font-weight:800}
.tei-hint{margin-top:13px;padding:10px 12px;border-radius:9px;background:#f4f9ff;color:#315f96;font-size:.76rem;text-align:center}
.tei-canvas-shell{margin-top:14px;min-height:420px;padding:20px;display:flex;justify-content:center;align-items:center;overflow:auto;border-radius:13px;background:#17201d}.tei-fabric-holder{display:inline-block;max-width:100%}.tei-fabric-holder .canvas-container{box-shadow:0 8px 28px rgba(0,0,0,.28);max-width:100%}
.tei-object-toolbar{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}.tei-object-toolbar button{border:1px solid var(--border);border-radius:9px;padding:8px 11px;background:#fff;font-size:.76rem;font-weight:800;cursor:pointer}.tei-object-toolbar button:disabled{opacity:.4}.tei-object-toolbar .danger{color:#a23e3e;background:#fff7f7}
.tei-panel{margin-top:18px;padding-top:17px;border-top:1px solid var(--border)}.tei-panel h2{margin:0 0 10px;font-size:1rem}.tei-panel-title{display:flex;justify-content:space-between;gap:12px}.tei-panel-title h2{margin:0}.tei-panel-title p{margin:3px 0 0;color:var(--muted);font-size:.74rem}
.tei-add-text-row{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:9px}.tei-add-text-row input,.tei-full input{padding:10px;border:1px solid var(--border);border-radius:9px;font:inherit}.tei-add-text-row button,.tei-custom-emoji button{border:0;border-radius:9px;padding:10px 14px;background:var(--primary);color:#fff;font-weight:850}
.tei-emoji-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:6px;margin-top:13px}.tei-emoji-grid button{aspect-ratio:1;border:1px solid var(--border);border-radius:9px;background:#fff;font-size:1.35rem;cursor:pointer}.tei-emoji-grid button:hover{border-color:var(--primary);background:#f1f8f5;transform:translateY(-1px)}
.tei-custom-emoji{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:9px}.tei-custom-emoji input{padding:10px;border:1px solid var(--border);border-radius:9px;font:inherit}
.tei-selected-panel{padding-bottom:4px}.tei-no-selection{padding:16px;border:1px dashed var(--border);border-radius:10px;color:var(--muted);font-size:.78rem;text-align:center}.tei-full{display:grid;gap:7px;margin-top:13px;font-size:.82rem;font-weight:800}
.tei-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}.tei-settings label{display:grid;gap:7px;font-size:.82rem;font-weight:800}.tei-settings select,.tei-settings input[type=color]{padding:9px;border:1px solid var(--border);border-radius:8px;background:#fff}.tei-settings input[type=color]{height:42px;width:100%}.tei-settings span{color:var(--muted);font-size:.7rem}
.tei-result{margin-top:18px}.tei-result-row{margin-top:13px;display:flex;justify-content:space-between;gap:12px;align-items:center}.tei-result-row span{color:var(--muted);font-size:.8rem}.tei-result-row a{padding:10px 13px;border-radius:9px;background:#eef6f3;color:var(--primary);font-weight:850;text-decoration:none}
.tei-how{margin-top:20px;padding:18px;border:1px solid var(--border);border-radius:14px}.tei-how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.tei-how-grid article{display:flex;gap:10px}.tei-how-grid article>span{width:28px;height:28px;display:grid;place-items:center;flex:0 0 28px;border-radius:50%;background:var(--primary);color:#fff;font-weight:900}.tei-how-grid h3{margin:1px 0 4px;font-size:.86rem}.tei-how-grid p{margin:0;color:var(--muted);font-size:.78rem}
.tei-sidebar{padding:24px 22px;display:flex;flex-direction:column}.tei-sidebar-title{display:flex;justify-content:space-between;gap:10px}.tei-sidebar-title h2{margin:0;font-size:1.02rem}.tei-sidebar-title span{color:var(--muted);font-size:.72rem;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tei-notice{margin-top:18px;padding:14px;border:1px solid #cde0f7;border-radius:11px;background:#f4f9ff;color:#315f96;font-size:.82rem}
.tei-benefits{margin:26px 0;display:grid;gap:20px}.tei-benefits article{display:flex;gap:11px}.tei-benefits i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:2px solid #24a261;border-radius:50%;color:#14864c;font-style:normal}.tei-benefits p{margin:3px 0 0;color:var(--muted);font-size:.77rem}.tei-shortcuts{margin-bottom:20px;padding:12px;border:1px solid var(--border);border-radius:10px;background:#fafcfb}.tei-shortcuts strong,.tei-shortcuts span{display:block}.tei-shortcuts strong{margin-bottom:5px;font-size:.77rem}.tei-shortcuts span{color:var(--muted);font-size:.7rem}
.tei-message{margin:auto 0 12px;padding:11px;border-radius:10px;font-size:.8rem}.tei-message.error{background:#fff2f2;color:#963939}.tei-message.success{background:#edf8f3;color:#1f654f}.tei-primary{width:100%;margin-top:auto;min-height:46px}.tei-primary:disabled{background:#f5c7c7;color:#b66c6c}.tei-secondary{width:100%;margin-top:10px;min-height:46px;border:1px solid var(--border);border-radius:11px;background:#fff;font-weight:850}.tei-secondary:disabled{opacity:.5}.tei-tip{margin-top:20px;padding:15px 18px;border:1px solid #f1dede;border-radius:13px;background:#fff8f8}.tei-info{max-width:920px;padding-top:48px}.tei-info p{color:var(--muted)}
@media(max-width:1000px){.tei-emoji-grid{grid-template-columns:repeat(9,1fr)}}@media(max-width:900px){.tei-workspace{grid-template-columns:1fr}.tei-main{border-right:0;border-bottom:1px solid var(--border)}.tei-how-grid{grid-template-columns:1fr}.tei-canvas-shell{min-height:340px}}@media(max-width:620px){.tei-main,.tei-sidebar{padding:16px}.tei-editor-head,.tei-result-row{flex-direction:column}.tei-settings,.tei-add-text-row,.tei-custom-emoji{grid-template-columns:1fr}.tei-canvas-shell{min-height:260px;padding:8px}.tei-emoji-grid{grid-template-columns:repeat(6,1fr)}}
