.iw-workspace { --iw-accent:var(--mds-color-main,#00a99d); color:#333; font-size:14px; }
.iw-workspace * { box-sizing:border-box; }
.iw-workspace [hidden] { display:none!important; }
.iw-head,.iw-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.iw-head { justify-content:space-between; margin-bottom:22px; }
.iw-workspace h1 { font-size:24px; margin:0; font-weight:600; }
.iw-workspace h2,.iw-workspace h3 { font-size:18px; margin:0 0 18px; font-weight:600; }
.iw-workspace .iw-button { min-height:40px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:9px 16px; border:1px solid #dfe0e6; border-radius:3px; background:#fff; color:#444; font:inherit; cursor:pointer; text-decoration:none; }
.iw-workspace .iw-button-primary { color:#fff; background:var(--iw-accent); border-color:var(--iw-accent); }
.iw-workspace .iw-button:hover { border-color:var(--iw-accent); filter:brightness(.97); }
.iw-workspace .iw-button:disabled { opacity:.5; cursor:not-allowed; }
.iw-workspace input[type="checkbox"] { accent-color:var(--iw-accent); width:18px; height:18px; }
.iw-workspace button[data-remove] { width:40px; height:40px; padding:0; }
.iw-workspace :focus-visible { outline:2px solid var(--iw-accent); outline-offset:3px; }
.iw-section { padding:24px 0; border-top:1px solid #eaeaef; }
.iw-muted { color:#777; font-size:13px; }
.iw-table-scroll { overflow-x:auto; }
.iw-table { width:100%; border-collapse:collapse; font-size:14px; }
.iw-table th { background:#fafafa; color:#666; font-size:12px; font-weight:600; text-align:left; white-space:nowrap; }
.iw-table th,.iw-table td { padding:14px 12px; border-bottom:1px solid #eaeaef; vertical-align:top; }
.iw-table td { overflow-wrap:anywhere; }
.iw-table a { color:var(--mds-color-main,#00a99d); }
.iw-badge { display:inline-block; font-size:12px; font-weight:500; padding:4px 8px; border-radius:3px; background:#f3f4f5; color:#666; white-space:nowrap; }
.iw-badge-verified { background:#e8f6ef; color:#257746; }
.iw-badge-stale { background:#fff4e5; color:#98620a; }
.iw-badge-new,.iw-badge-in_progress { background:#e8f6f5; color:#007c75; }
.iw-badge-won { background:#e8f6ef; color:#257746; }
.iw-badge-lost,.iw-badge-spam { background:#fbeeee; color:#a33e3e; }
.iw-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.iw-field { min-width:0; }
.iw-field label { display:block; margin-bottom:6px; color:#555; font-weight:500; }
.iw-field .form-control { width:100%; min-height:40px; padding:9px 12px; border:1px solid #dfe0e6; border-radius:2px; background:#fff; color:#333; box-shadow:none; font-size:14px; }
.iw-field textarea.form-control { min-height:120px; resize:vertical!important; }
.iw-field .form-control:focus { border-color:var(--mds-color-main,#00a99d); outline:none; }
.iw-span-full { grid-column:1/-1; }
.iw-feedback { padding:12px 16px; margin:16px 0; background:#f5f6f7; border-left:3px solid var(--mds-color-main,#00a99d); }
.iw-feedback.is-error { border-color:#bd4444; color:#a33e3e; }
.iw-check { display:flex; align-items:center; gap:10px; cursor:pointer; font-weight:400; }
.iw-check input { width:18px; height:18px; accent-color:var(--mds-color-main,#00a99d); flex-shrink:0; }
.iw-selected { color:var(--mds-color-main,#00a99d); }
.iw-inbox { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:28px; }
.iw-inbox main,.iw-inbox aside { min-width:0; }
.iw-message { border-left:2px solid #dfe0e6; padding:0 0 20px 18px; margin:18px 0 0; }
.iw-message p { white-space:pre-wrap; overflow-wrap:anywhere; margin:8px 0; }
.iw-timeline-meta { display:flex; gap:8px; flex-wrap:wrap; font-size:12px; color:#777; }
.iw-detail-list { margin:0; }
.iw-detail-list dt { font-size:12px; color:#777; margin-top:14px; }
.iw-detail-list dd { margin:4px 0; overflow-wrap:anywhere; }
.iw-source-editor { display:grid; grid-template-columns:1fr 1.4fr 170px auto; gap:12px; align-items:end; }
.iw-source-editor legend { grid-column:1/-1; font-size:14px; font-weight:600; margin:0; border:0; }
.iw-source-editor fieldset { min-width:0; }
.iw-honeypot { position:absolute; left:-9999px; }
@media(max-width:767px) {
 .iw-inbox,.iw-form-grid,.iw-source-editor { grid-template-columns:minmax(0,1fr); }
 .iw-inbox aside { border-top:1px solid #eaeaef; padding-top:20px; }
 .iw-table th,.iw-table td { padding:12px 8px; }
 .iw-head { align-items:flex-start; }
 .iw-workspace h1 { font-size:22px; }
}
