/* Feature-scoped production-like Email end settings; inherited workbench stays intact. */
.ec-page { height:100%; display:flex; flex-direction:column; gap:16px; padding:2px 0 0; }
.ec-page>.segmented { width:max-content; flex-shrink:0; }
.ec-page>.segmented button { padding:0 24px; }
.ec-scroll { background:#fff; flex:1; min-height:0; overflow:auto; padding:0 24px 28px 20px; border-radius:8px 0 0 0; color:rgba(0,0,0,.88); }
.ec-channel-tabs { display:flex; align-items:center; gap:24px; height:46px; border-bottom:1px solid #f0f0f0; margin-bottom:16px; white-space:nowrap; overflow:auto; }
.ec-channel-tabs button { height:46px; border:0; border-bottom:2px solid transparent; background:transparent; padding:0; font-size:14px; flex-shrink:0; }
.ec-channel-tabs button.active { border-bottom-color:#f60; color:#f60; }
.ec-section { margin:0 0 24px; }
.ec-title-row { display:flex; justify-content:space-between; align-items:center; min-height:22px; margin:0; }
.ec-title { display:flex; align-items:center; font-size:14px; font-weight:500; margin:0; line-height:22px; }
.ec-title:before { content:''; width:2px; height:12px; background:#f60; border-radius:2px; margin-right:12px; }
.ec-description { font-size:12px; color:rgba(0,0,0,.45); margin:4px 0 8px; line-height:20px; }
.ec-panel { position:relative; background:#f6f7f8; border-radius:8px; padding:16px 24px; min-height:72px; }
.ec-panel .ec-edit { position:absolute; top:16px; right:16px; opacity:0; pointer-events:none; }
.ec-panel:hover .ec-edit,.ec-panel:focus-within .ec-edit { opacity:1; pointer-events:auto; }
.ec-edit { width:28px; height:24px; background:transparent; border:0; border-radius:4px; color:#595959; padding:4px 6px; display:inline-flex; align-items:center; justify-content:center; }
.ec-edit:hover { color:#f60; background:#fff; }
.ec-svg { width:16px; height:16px; display:inline-block; flex-shrink:0; vertical-align:middle; }
.ec-mini-title { display:flex; align-items:center; gap:12px; margin:0; font-weight:400; }
.ec-four { width:12px; height:12px; color:#f60; }
.ec-legacy-line { margin-left:22px; display:flex; gap:12px; align-items:center; min-height:32px; flex-wrap:wrap; }
.ec-legacy-group { margin-bottom:24px; }
.ec-legacy-line>.ec-select { width:90px; }
.ec-legacy-group:last-child { margin-bottom:0; }
.ec-legacy-info { margin-left:22px; }
.ec-muted-label { color:rgba(0,0,0,.45); margin:0 0 8px; }
.ec-subject-block { margin:0 0 16px; }
.ec-email-copy { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ec-number,.ec-select { height:32px; background:#fff; border:1px solid #d9d9d9; border-radius:6px; padding:0 11px; font:inherit; color:inherit; min-width:0; }
.ec-number { width:90px; box-shadow:none; }
.ec-number:focus { border-color:#ff9b58; box-shadow:0 0 0 2px #fff2e8; }
.ec-select { display:flex; align-items:center; justify-content:space-between; text-align:left; gap:12px; }
.ec-select>span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ec-select .ec-chevron { width:10px; height:10px; color:#bfbfbf; flex-shrink:0; }
.ec-select:hover:not(:disabled),.ec-number:hover:not(:disabled) { border-color:#ff9b58; }
.ec-select:disabled,.ec-number:disabled { background:#f5f5f5; color:#bfbfbf; border-color:#d9d9d9; cursor:not-allowed; opacity:1; }
.ec-select.empty { padding:0 11px; text-align:left; }
.ec-placeholder { color:#bfbfbf; }
.ec-time { display:flex; width:180px; height:32px; }
.ec-time .ec-number { width:82px; border-radius:6px 0 0 6px; }
.ec-time .ec-select { width:98px; border-radius:0 6px 6px 0; margin-left:-1px; }
.ec-switch { width:28px; min-width:28px; height:16px; border:0; border-radius:100px; background:#bfbfbf; position:relative; padding:0; vertical-align:middle; }
.ec-switch:after { content:''; position:absolute; top:2px; left:2px; width:12px; height:12px; background:white; border-radius:50%; box-shadow:0 1px 2px #0002; transition:left .15s; }
.ec-switch.on { background:#f60; }
.ec-switch.on:after { left:14px; }
.ec-switch:disabled { opacity:.4; cursor:not-allowed; }
.ec-rules { display:grid; grid-template-columns:360px 180px 88px 40px; gap:16px 24px; align-items:start; width:max-content; max-width:100%; }
.ec-rules-head { margin-bottom:14px; font-weight:400; }
.ec-rule-line { display:contents; }
.ec-rule-cell { min-width:0; }
.ec-mailbox { width:360px; }
.ec-rule-switch { display:flex; min-height:32px; align-items:center; }
.ec-delete { width:28px; height:32px; padding:6px; border:0; background:transparent; color:#8c8c8c; }
.ec-delete:hover:not(:disabled) { color:#f60; }
.ec-delete:disabled { color:#bfbfbf; opacity:1; cursor:not-allowed; }
.ec-add { display:inline-flex; align-items:center; gap:8px; color:#1677ff; border:0; background:none; padding:0; margin-top:18px; height:24px; }
.ec-add:disabled { color:#bfbfbf; opacity:1; cursor:not-allowed; }
.ec-plus { font-size:22px; font-weight:300; line-height:16px; }
.ec-footer { display:flex; justify-content:flex-end; gap:16px; margin-top:16px; }
.ec-footer .button { min-width:64px; border-radius:6px; }
.ec-validation { color:#ff4d4f; font-size:12px; line-height:20px; min-height:0; }
.ec-invalid .ec-number,.ec-invalid>.ec-select,.ec-invalid .ec-time .ec-select { border-color:#ff4d4f; }
.ec-confirm-mask { position:fixed; inset:0; z-index:160; display:flex; align-items:center; justify-content:center; padding:24px; background:rgba(0,0,0,.45); }
.ec-confirm { background:#fff; border-radius:12px; width:432px; max-width:100%; padding:20px 24px 24px; color:rgba(0,0,0,.88); box-shadow:0 6px 16px #0002; }
.ec-confirm h3 { display:flex; align-items:center; gap:8px; font-size:16px; font-weight:500; margin:0 0 14px; }
.ec-warning { width:16px; height:16px; background:#ffc069; color:#fff; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; }
.ec-confirm p { padding-left:30px; line-height:24px; margin:0 0 30px; }
.ec-confirm footer { display:flex; justify-content:flex-end; gap:12px; }
.ec-confirm footer .button { border-radius:6px; min-width:64px; }
.ec-menu { position:fixed; z-index:170; background:white; border-radius:6px; box-shadow:0 6px 16px #0002,0 3px 6px #0001; padding:4px; color:rgba(0,0,0,.88); font-size:14px; }
.ec-menu-search { width:100%; height:32px; padding:0 10px; border:0; border-bottom:1px solid #f0f0f0; margin-bottom:4px; }
.ec-menu-options { overflow:auto; max-height:240px; min-height:4px; }
.ec-menu-option { width:100%; border:0; background:#fff; border-radius:4px; padding:6px 10px; min-height:32px; text-align:left; display:flex; align-items:center; gap:8px; }
.ec-menu-option:hover,.ec-menu-option.selected { background:#fff6ee; }
.ec-menu-option:disabled { color:#bfbfbf; opacity:1; cursor:not-allowed; background:#fff; }
.ec-menu-option small { font-size:12px; color:#bfbfbf; margin-left:auto; }
.ec-menu-check { margin-left:auto; color:#f60; }
.ec-menu-group { color:#8c8c8c; font-size:12px; padding:6px 10px; }
.ec-subject-input { width:100%; }
.ec-rich { border:1px solid #d9d9d9; background:white; border-radius:6px; margin-top:8px; }
.ec-rich-toolbar { display:flex; align-items:center; gap:10px; padding:6px 12px; border-bottom:1px solid #f0f0f0; flex-wrap:wrap; }
.ec-rich-toolbar button { border:0; padding:2px 6px; background:none; color:#595959; min-width:24px; }
.ec-rich-toolbar select { border:0; background:#f7f8fa; font-size:12px; margin:0 12px; }
.ec-rich-content { min-height:160px; padding:12px 16px; outline:0; font-size:12px; }
.ec-required:before { content:'* '; color:#ff4d4f; }
.ec-counter { float:right; color:#8c8c8c; font-size:12px; margin-top:4px; }
.ec-session-end { text-align:center; margin:20px 0; font-size:12px; }
.ec-session-end>span { display:inline-block; background:#eaf4ff; border-radius:8px; padding:8px 12px; color:#16334c; }
.ec-session-end time { color:#8c99a7; margin-left:10px; }
.ec-demo { border-top:1px solid #eee; padding-top:12px; margin-top:14px; }
.ec-demo h4 { margin:0 0 10px; font-size:13px; }
.ec-demo .ec-demo-buttons { display:flex; flex-wrap:wrap; gap:6px; margin:8px 0; }
.ec-demo label { display:flex; align-items:center; gap:8px; margin:8px 0; }
.ec-demo select { max-width:240px; }
.ec-demo .ec-note { color:#8c8c8c; line-height:1.6; }
.ec-mailbox-table { width:100%; margin-top:24px; border-collapse:collapse; }
.ec-mailbox-table th { background:#fafafa; font-weight:400; text-align:left; }
.ec-mailbox-table th,.ec-mailbox-table td { height:48px; padding:12px 16px; border-bottom:1px solid #f5f5f5; }
.ec-status-normal { background:#effcf3; color:#30be82; padding:3px 10px; border-radius:7px; font-size:12px; }
.ec-source-page .ec-scroll { padding:16px; }
@media(max-width:1400px) { .ec-rules { grid-template-columns:320px 180px 76px 32px; gap:16px 20px; } .ec-mailbox{width:320px}.ec-channel-tabs{gap:22px} }
@media(max-width:1100px) { .ec-rules { grid-template-columns:minmax(190px,1fr) 160px 60px 28px; width:100%;gap:14px 12px}.ec-mailbox{width:100%}.ec-time{width:160px}.ec-time .ec-number{width:72px}.ec-time .ec-select{width:88px}.ec-channel-tabs{gap:18px}.ec-scroll{padding-right:16px}.ec-panel{padding:16px}.ec-rules-head{padding-right:32px} }
