.tw-hf-app{max-width:1200px;margin:0 auto;padding-top:20px;font-family:inherit;color:#1a1a2e}
.tw-hf-app *,.tw-hf-app *::before,.tw-hf-app *::after{box-sizing:border-box}

.tw-hf-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px;flex-wrap:wrap}
.tw-hf-tabs{display:flex;gap:0;border-bottom:2px solid #e5e7eb;margin:0}
.tw-hf-tabs .tw-tools-tab{padding:8px 20px;font-size:13px;font-weight:600;color:#6b7280;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:all .2s;border-radius:0;line-height:1.4}
.tw-hf-tabs .tw-tools-tab:hover{background:#56aea4;color:#fff;border-color:#56aea4}
.tw-hf-tabs .tw-tools-tab.tw-tools-tab-active{color:#56aea4;border-bottom-color:#56aea4}

.tw-hf-header-actions{display:flex;gap:8px;align-items:center}
.tw-hf-indent-label{font-size:12px;color:#6b7280;display:flex;align-items:center;gap:6px}
.tw-hf-select{padding:4px 8px;border:1px solid #e5e7eb;border-radius:6px;font-size:12px;color:#1a1a2e;background:#fff;cursor:pointer;font-family:inherit}
.tw-hf-btn-action{display:inline-flex;align-items:center;gap:5px;padding:6px 12px;font-size:12px;font-weight:500;color:#6b7280;background:#fff;border:1px solid #e5e7eb;border-radius:6px;cursor:pointer;transition:all .15s;font-family:inherit;line-height:1}
.tw-hf-btn-action:hover{background:#f3f4f6;color:#1a1a2e;border-color:#d1d5db}

.tw-hf-main{display:grid;grid-template-columns:1fr 1fr;gap:0;background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-bottom:14px}
.tw-hf-panel{display:flex;flex-direction:column;min-height:320px}
.tw-hf-input-panel{border-right:1px solid #e5e7eb}
.tw-hf-panel-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #f3f4f6;background:#f8f9fa}
.tw-hf-panel-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}
.tw-hf-size{font-size:11px;color:#6b7280}
.tw-hf-textarea{width:100%;flex:1;min-height:300px;border:none;outline:none;padding:14px;font-size:13px;line-height:1.6;resize:vertical;font-family:'Courier New',monospace;color:#1a1a2e;background:transparent;display:block;tab-size:4}
.tw-hf-textarea::placeholder{color:#b0b5c0}
.tw-hf-output{background:#f8fffe}

.tw-hf-actions{display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap}
.tw-hf-btn-primary{height:40px;padding:0 24px;background:#56aea4;color:#fff;font-size:13px;font-weight:600;border:1.5px solid #56aea4;border-radius:20px;cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}
.tw-hf-btn-primary:hover{background:#4a9e94;border-color:#4a9e94}
.tw-hf-btn-secondary{height:40px;padding:0 24px;background:#fff;color:#56aea4;font-size:13px;font-weight:600;border:1.5px solid #56aea4;border-radius:20px;cursor:pointer;transition:all .15s;white-space:nowrap;font-family:inherit}
.tw-hf-btn-secondary:hover{background:#56aea4;color:#fff}

.tw-hf-article-toggle{margin-bottom:12px}
.tw-hf-toggle-btn{display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;background:#fff;border:1.5px solid #56aea4;border-radius:10px;cursor:pointer;font-size:14px;font-weight:600;color:#56aea4;font-family:inherit;transition:all .15s;text-align:left}
.tw-hf-toggle-btn:hover{background:#f0fdf8;border-color:#4a9e94;color:#4a9e94}
.tw-hf-toggle-chevron{transition:transform .25s ease;flex-shrink:0;color:#56aea4}
.tw-hf-toggle-btn.tw-hf-toggle-open .tw-hf-toggle-chevron{transform:rotate(180deg)}
.tw-hf-h1{font-size:14px;font-weight:600;margin:0;padding:0;color:inherit;font-family:inherit;line-height:1.4}

@media(max-width:880px){
  .tw-hf-main{grid-template-columns:1fr}
  .tw-hf-input-panel{border-right:none;border-bottom:1px solid #e5e7eb}
  .tw-hf-textarea{min-height:200px}
}
@media(max-width:500px){
  .tw-hf-header{flex-direction:column;align-items:stretch}
  .tw-hf-header-actions{justify-content:flex-end}
  .tw-hf-actions{flex-direction:column}
  .tw-hf-btn-primary,.tw-hf-btn-secondary{width:100%}
}
