
.tlt-wrap{font-family:'Segoe UI',Inter,system-ui,sans-serif;max-width:980px;margin:0 auto;border-radius:20px;overflow:hidden;box-shadow:0 10px 50px rgba(102,126,234,.18);border:1.5px solid rgba(102,126,234,.12);background:#fff;}

/* BRAND */
.tlt-brand{display:flex;align-items:center;gap:12px;padding:20px 28px 0;flex-wrap:wrap;}
.tlt-logo{font-size:2em;}
.tlt-brand-name{font-size:1.5em;font-weight:800;background:linear-gradient(135deg,#667eea,#764ba2);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.tlt-brand-tag{font-size:.8em;color:#aaa;margin-left:4px;}

/* TABS */
.tlt-tabs{display:flex;gap:0;padding:16px 24px 0;border-bottom:2px solid #eee;margin-top:12px;}
.tlt-tab{padding:11px 22px;border:none;background:transparent;cursor:pointer;font-size:.88em;font-weight:600;color:#888;border-bottom:3px solid transparent;margin-bottom:-2px;transition:all .2s;font-family:inherit;border-radius:8px 8px 0 0;}
.tlt-tab:hover{color:#667eea;background:#f5f3ff;}
.tlt-tab.active{color:#667eea;border-bottom-color:#667eea;background:#f0eeff;}

/* PANES */
.tlt-pane{display:none;padding:24px;}
.tlt-pane.active{display:block;}

/* LANG BAR */
.tlt-lang-bar{display:flex;align-items:center;gap:12px;margin-bottom:16px;}
.tlt-select{flex:1;padding:10px 14px;border:2px solid #eee;border-radius:10px;font-size:.88em;font-weight:600;color:#2c3e50;outline:none;cursor:pointer;transition:border .2s;font-family:inherit;background:#fafafa;}
.tlt-select:focus{border-color:#667eea;}
.tlt-swap{background:linear-gradient(135deg,#667eea,#764ba2);border:none;color:#fff;width:38px;height:38px;border-radius:50%;font-size:1.1em;cursor:pointer;transition:transform .3s;flex-shrink:0;}
.tlt-swap:hover{transform:rotate(180deg);}
.tlt-swap-static{color:#bbb;font-size:1.3em;padding:0 4px;}

/* PANELS */
.tlt-panels{display:flex;min-height:190px;border:1.5px solid #eee;border-radius:14px;overflow:hidden;}
.tlt-panel{flex:1;display:flex;flex-direction:column;padding:14px;}
.tlt-divider{width:1.5px;background:#eee;flex-shrink:0;}
.tlt-textarea{flex:1;border:none;outline:none;resize:none;font-size:.95em;line-height:1.7;color:#2c3e50;font-family:inherit;background:transparent;min-height:160px;}
.tlt-textarea::placeholder{color:#ccc;}
.tlt-result{flex:1;font-size:.95em;line-height:1.7;color:#2c3e50;white-space:pre-wrap;word-break:break-word;min-height:160px;}
.tlt-pdf-box{max-height:280px;overflow-y:auto;font-size:.85em;}
.tlt-ph{color:#ccc;font-style:italic;}
.tlt-panel-footer{display:flex;align-items:center;gap:6px;padding-top:10px;border-top:1px solid #f0f0f0;margin-top:8px;}
.tlt-footer-right{justify-content:flex-end;}
#tlt-count{font-size:.76em;color:#ccc;margin-right:auto;}
#tlt-status,#tlt-pdf-status{font-size:.8em;color:#667eea;font-weight:600;margin-right:auto;}
.tlt-label{font-size:.76em;color:#aaa;margin-right:auto;}
.tlt-icon-btn{background:transparent;border:1.5px solid #eee;color:#aaa;width:30px;height:30px;border-radius:8px;cursor:pointer;font-size:.85em;transition:all .18s;}
.tlt-icon-btn:hover{border-color:#667eea;color:#667eea;}

/* ACTIONS */
.tlt-actions{display:flex;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap;}
.tlt-btn-main{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:50px;padding:13px 32px;font-size:.93em;font-weight:700;cursor:pointer;transition:all .28s;box-shadow:0 4px 18px rgba(102,126,234,.35);font-family:inherit;}
.tlt-btn-main:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(102,126,234,.5);}
.tlt-btn-main.loading{opacity:.65;pointer-events:none;}
.tlt-btn-secondary{padding:11px 22px;border-radius:50px;border:2px solid #eee;background:#fff;color:#888;font-size:.88em;font-weight:600;cursor:pointer;font-family:inherit;transition:all .2s;}
.tlt-btn-secondary:hover{border-color:#667eea;color:#667eea;}
.tlt-note{font-size:.74em;color:#bbb;margin-left:auto;}

/* UPLOAD ZONE */
.tlt-upload-zone{border:2.5px dashed #d4d4e8;border-radius:16px;padding:40px 24px;text-align:center;transition:all .25s;cursor:pointer;margin-bottom:16px;}
.tlt-upload-zone.dragover{border-color:#667eea;background:#f0eeff;}
.tlt-upload-icon{font-size:3em;margin-bottom:8px;}
.tlt-upload-title{font-size:1.05em;font-weight:700;color:#2c3e50;margin:0 0 6px;}
.tlt-upload-sub{color:#aaa;font-size:.88em;margin:0 0 16px;}
.tlt-btn-upload{padding:10px 26px;border-radius:50px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;font-size:.88em;font-weight:700;cursor:pointer;font-family:inherit;}
.tlt-upload-note{font-size:.75em;color:#bbb;margin:12px 0 0;}

/* OFFICIAL CTA */
.tlt-official-cta{display:flex;align-items:center;gap:12px;margin-top:16px;padding:14px 20px;background:#f8f5ff;border-radius:12px;font-size:.86em;color:#667eea;font-weight:600;flex-wrap:wrap;}
.tlt-btn-cta{padding:9px 20px;border-radius:50px;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;font-size:.84em;font-weight:700;cursor:pointer;font-family:inherit;}

/* OFFICIAL HEADER */
.tlt-official-header{text-align:center;padding:10px 0 16px;}
.tlt-official-header h3{font-size:1.3em;font-weight:800;color:#2c3e50;margin:0 0 8px;}
.tlt-official-header p{color:#888;font-size:.9em;line-height:1.6;margin:0;}
.tlt-official-badges{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:24px;}
.tlt-badge-item{background:#f0eeff;color:#667eea;padding:7px 16px;border-radius:50px;font-size:.82em;font-weight:700;}

/* FORM */
.tlt-form{display:flex;flex-direction:column;gap:16px;}
.tlt-form-row{display:flex;gap:16px;flex-wrap:wrap;}
.tlt-form-group{flex:1;min-width:200px;display:flex;flex-direction:column;gap:6px;}
.tlt-form-group.tlt-full{flex:1 1 100%;}
.tlt-form-group label{font-size:.83em;font-weight:700;color:#555;}
.tlt-form-group input,.tlt-form-group select,.tlt-form-group textarea{padding:11px 14px;border:2px solid #eee;border-radius:10px;font-size:.88em;color:#2c3e50;outline:none;font-family:inherit;transition:border .2s;background:#fafafa;}
.tlt-form-group input:focus,.tlt-form-group select:focus,.tlt-form-group textarea:focus{border-color:#667eea;background:#fff;}
.tlt-form-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;}
#tlt-form-msg{padding:10px 16px;border-radius:10px;font-size:.87em;font-weight:600;display:none;}
#tlt-form-msg.ok{background:#e8f5e9;color:#2e7d32;display:block;}
#tlt-form-msg.err{background:#fce4ec;color:#c62828;display:block;}

@media(max-width:620px){
  .tlt-panels{flex-direction:column;}
  .tlt-divider{height:1.5px;width:auto;}
  .tlt-tabs{overflow-x:auto;gap:4px;}
  .tlt-tab{white-space:nowrap;padding:9px 14px;font-size:.8em;}
  .tlt-lang-bar{flex-wrap:wrap;}
  .tlt-brand{padding:16px 16px 0;}
  .tlt-pane{padding:16px;}
}
