.tw-mc-app{max-width:1200px;margin:0 auto;padding-top:20px;font-family:inherit;color:#1a1a2e}
.tw-mc-app *,.tw-mc-app *::before,.tw-mc-app *::after{box-sizing:border-box}
.tw-mc-app .tw-tools-tab-content{display:none}
.tw-mc-app .tw-tools-tab-content.tw-tools-tab-active{display:block;height:100%}

.tw-mc-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px;flex-wrap:wrap}
.tw-mc-panel-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#6b7280}
.tw-mc-header-actions{display:flex;gap:6px;align-items:center}
.tw-mc-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-mc-btn-action:hover{background:#f3f4f6;color:#1a1a2e;border-color:#d1d5db}
.tw-mc-btn-copy{padding:6px 14px;font-size:12px;font-weight:600;color:#56aea4;background:#fff;border:1.5px solid #56aea4;border-radius:20px;cursor:pointer;transition:all .15s;font-family:inherit}
.tw-mc-btn-copy:hover{background:#56aea4;color:#fff}

.tw-mc-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-mc-panel{display:flex;flex-direction:column;min-height:400px}
.tw-mc-input-panel{border-right:1px solid #e5e7eb}
.tw-mc-panel-header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;border-bottom:1px solid #f3f4f6;background:#f8f9fa}
.tw-mc-tabs{display:flex;gap:0;border-bottom:2px solid #e5e7eb;margin:0}
.tw-mc-tabs .tw-tools-tab{padding:6px 16px;font-size:12px;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-mc-tabs .tw-tools-tab:hover{background:#56aea4;color:#fff;border-bottom-color:#56aea4}
.tw-mc-tabs .tw-tools-tab.tw-tools-tab-active:hover{background:transparent;color:#56aea4;border-bottom-color:#56aea4}
.tw-mc-tabs .tw-tools-tab.tw-tools-tab-active{color:#56aea4;border-bottom-color:#56aea4}

.tw-mc-textarea{width:100%;flex:1;min-height:380px;border:none;outline:none;padding:14px;font-size:14px;line-height:1.65;resize:vertical;font-family:'Courier New',monospace;color:#111827;background:transparent;display:block;tab-size:4}
.tw-mc-textarea::placeholder{color:#b0b5c0}
.tw-mc-output{background:#f8fffe;color:#111827}
.tw-mc-preview{padding:14px;font-size:14px;line-height:1.7;min-height:380px;overflow-y:auto}
.tw-mc-preview h1{font-size:24px;font-weight:700;margin:16px 0 8px;color:#1a1a2e}
.tw-mc-preview h2{font-size:20px;font-weight:700;margin:14px 0 6px;color:#1a1a2e}
.tw-mc-preview h3{font-size:17px;font-weight:600;margin:12px 0 6px;color:#1a1a2e}
.tw-mc-preview h4,.tw-mc-preview h5,.tw-mc-preview h6{font-size:15px;font-weight:600;margin:10px 0 4px;color:#1a1a2e}
.tw-mc-preview p{margin:0 0 10px}
.tw-mc-preview a{color:#56aea4;text-decoration:underline}
.tw-mc-preview blockquote{border-left:3px solid #56aea4;margin:10px 0;padding:8px 14px;background:#f0fdf8;color:#1a1a2e}
.tw-mc-preview code{background:#f3f4f6;padding:2px 6px;border-radius:4px;font-size:12px;font-family:'Courier New',monospace}
.tw-mc-preview pre{background:#1a1a2e;color:#e5e7eb;padding:14px;border-radius:8px;overflow-x:auto;margin:10px 0}
.tw-mc-preview pre code{background:none;padding:0;color:inherit}
.tw-mc-preview ul,.tw-mc-preview ol{margin:8px 0;padding-left:24px}
.tw-mc-preview li{margin-bottom:4px}
.tw-mc-preview table{border-collapse:collapse;width:100%;margin:10px 0}
.tw-mc-preview th,.tw-mc-preview td{border:1px solid #e5e7eb;padding:8px 12px;text-align:left;font-size:13px}
.tw-mc-preview th{background:#f8f9fa;font-weight:600}
.tw-mc-preview img{max-width:100%;border-radius:6px}
.tw-mc-preview hr{border:none;border-top:1px solid #e5e7eb;margin:16px 0}

.tw-mc-article-toggle{margin-bottom:12px}
.tw-mc-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-mc-toggle-btn:hover{background:#f0fdf8;border-color:#4a9e94;color:#4a9e94}
.tw-mc-toggle-chevron{transition:transform .25s ease;flex-shrink:0;color:#56aea4}
.tw-mc-toggle-btn.tw-mc-toggle-open .tw-mc-toggle-chevron{transform:rotate(180deg)}
.tw-mc-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-mc-main{grid-template-columns:1fr}.tw-mc-input-panel{border-right:none;border-bottom:1px solid #e5e7eb}.tw-mc-textarea{min-height:250px}}
@media(max-width:500px){.tw-mc-header{flex-direction:column;align-items:stretch}.tw-mc-header-actions{justify-content:flex-end}}
