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

/* Mode switch */
.tw-ee-mode-switch{display:flex;gap:4px;margin-bottom:12px;background:#f3f4f6;border-radius:8px;padding:4px;width:fit-content}
.tw-ee-mode-btn{height:36px;padding:0 20px;background:transparent;color:#6b7280;font-size:13px;font-weight:600;border:none;border-radius:6px;cursor:pointer;transition:all .15s;font-family:inherit}
.tw-ee-mode-btn:hover{color:#1a1a2e}
.tw-ee-mode-active{background:#fff;color:#1a1a2e;box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* Editor */
.tw-ee-editor{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-bottom:12px}
.tw-ee-textarea{width:100%;min-height:140px;border:none;outline:none;padding:16px;font-size:14px;line-height:1.65;resize:vertical;font-family:inherit;color:#1a1a2e;display:block}
.tw-ee-textarea-large{min-height:200px}
.tw-ee-textarea::placeholder{color:#b0b5c0}
.tw-ee-actions{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-top:1px solid #f3f4f6}
.tw-ee-urlcount,.tw-ee-charcount{font-size:12px;color:#6b7280}
.tw-ee-btn-primary{height:44px;padding:0 28px;background:#56aea4;color:#fff;font-size:14px;font-weight:600;border:none;border-radius:22px;cursor:pointer;transition:all .15s;font-family:inherit}
.tw-ee-btn-primary:hover{background:#489e94}
.tw-ee-btn-primary:disabled{opacity:.5;cursor:not-allowed}

/* Status */
.tw-ee-status{min-height:20px;margin-bottom:8px}
.tw-ee-loading{display:flex;align-items:center;gap:8px;font-size:13px;color:#6b7280;padding:8px 0}
.tw-ee-spinner{width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:#56aea4;border-radius:50%;animation:tw-ee-spin 0.6s linear infinite}
@keyframes tw-ee-spin{to{transform:rotate(360deg)}}
.tw-ee-alert{padding:10px 14px;border-radius:8px;font-size:13px;margin:6px 0}
.tw-ee-alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}

/* Summary */
.tw-ee-summary{padding:12px 16px;background:#f0fdf8;border:1px solid #bbf7d0;border-radius:8px;font-size:14px;color:#1a1a2e;margin-bottom:12px}

/* Toolbar */
.tw-ee-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:8px}
.tw-ee-export{display:flex;gap:8px}
.tw-ee-btn-export{height:34px;padding:0 16px;background:#fff;color:#56aea4;font-size:12px;font-weight:600;border:1.5px solid #56aea4;border-radius:17px;cursor:pointer;transition:all .15s;font-family:inherit}
.tw-ee-btn-export:hover{background:#56aea4;color:#fff}
.tw-ee-group-toggle{display:flex;align-items:center;gap:6px;font-size:12px;color:#6b7280;cursor:pointer;user-select:none}
.tw-ee-group-toggle input{accent-color:#56aea4}

/* Table */
.tw-ee-table-wrap{overflow-x:auto;background:#fff;border:1px solid #e5e7eb;border-radius:10px;margin-bottom:16px}
.tw-ee-table{width:100%;border-collapse:collapse;font-size:13px}
.tw-ee-table th{background:#f9fafb;padding:8px 12px;text-align:left;font-weight:600;color:#6b7280;border-bottom:1px solid #e5e7eb;white-space:nowrap}
.tw-ee-table td{padding:6px 12px;border-bottom:1px solid #f3f4f6;vertical-align:middle}
.tw-ee-table tr:last-child td{border-bottom:none}
.tw-ee-table tr:hover{background:#f9fafb}
.tw-ee-email-cell{font-weight:500;color:#1a1a2e;word-break:break-all}
.tw-ee-url-cell{max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tw-ee-url-cell a{color:#56aea4;text-decoration:none}
.tw-ee-url-cell a:hover{text-decoration:underline}

/* Group header */
.tw-ee-group-header{background:#f3f4f6;font-weight:700;font-size:12px;color:#56aea4;text-transform:uppercase;letter-spacing:.03em;padding:8px 12px!important}

/* Source badges */
.tw-ee-source-badge{display:inline-block;padding:2px 8px;border-radius:4px;font-size:11px;font-weight:600}
.tw-ee-src-mailto{background:#dbeafe;color:#2563eb}
.tw-ee-src-text{background:#dcfce7;color:#16a34a}
.tw-ee-src-meta{background:#fef3c7;color:#ca8a04}
.tw-ee-src-other{background:#f3f4f6;color:#6b7280}

/* Article toggle */
.tw-ee-article-toggle{margin-top:16px;margin-bottom:12px}
.tw-ee-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-family:inherit;transition:all .15s;text-align:left}
.tw-ee-toggle-btn:hover{background:#f0fdf8}
.tw-ee-toggle-chevron{transition:transform .25s ease;flex-shrink:0;color:#56aea4}
.tw-ee-toggle-btn.tw-ee-toggle-open .tw-ee-toggle-chevron{transform:rotate(180deg)}
.tw-ee-h2{font-size:14px;font-weight:600;color:#56aea4;margin:0}

@media(max-width:600px){
  .tw-ee-table{font-size:12px}
  .tw-ee-toolbar{flex-direction:column;align-items:flex-start}
}
