.btn-mail { color:#9a3412; background:#fff7ed; border-color:#fed7aa; }
.btn-mail:hover { background:#ffedd5; border-color:#fb923c; }
.btn-action.btn-mail.has-mail { background:#6b3410; color:#ffffff; border-color:#6b3410; font-weight:700; }
.btn-action.btn-mail.has-mail:hover { background:#54280c; border-color:#54280c; color:#ffffff; }
.dc-overlay { position:fixed; inset:0; background:rgba(15,23,42,.48); z-index:1200; display:flex; padding:20px; align-items:center; justify-content:center; }
.dc-studio { width:min(1540px,98vw); height:94vh; background:#f8fafc; border-radius:14px; display:flex; flex-direction:column; overflow:hidden; box-shadow:0 20px 70px #0f172a45; color:#1e293b; font-size:14px; }
.dc-head { background:white; border-bottom:1px solid #e2e8f0; padding:16px 20px; }
.dc-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.dc-title h2 { font-size:19px; margin:0; }
.dc-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.dc-studio button,.dc-subdialog button { cursor:pointer; background:white; border:1px solid #cbd5e1; color:#334155; border-radius:7px; padding:7px 12px; font:inherit; }
.dc-studio button:hover,.dc-subdialog button:hover { background:#f1f5f9; }
.dc-studio button:disabled { opacity:.5; cursor:wait; }
.dc-studio .dc-primary { background:#0369a1; color:white; border-color:#0369a1; }
.dc-studio .dc-primary:hover { background:#075985; }
.dc-studio input:not([type=checkbox]),.dc-studio select,.dc-studio textarea,.dc-subdialog input,.dc-subdialog textarea,.dc-subdialog select { box-sizing:border-box; border:1px solid #cbd5e1; border-radius:6px; background:white; color:#1e293b; padding:7px 9px; font:inherit; max-width:100%; }
.dc-studio input:focus-visible,.dc-studio textarea:focus-visible,.dc-studio select:focus-visible { outline:2px solid #38bdf8; outline-offset:1px; }
.dc-actions input[type=time] { width:120px; }
.dc-actions select[data-top=timezone] { width:220px; }
.dc-meta { margin-top:9px; color:#64748b; font-size:12px; line-height:1.7; }
.dc-alert { padding:7px 12px; color:#9a3412; background:#fff7ed; border:1px solid #fed7aa; border-radius:6px; margin-top:8px; }
.dc-alert:empty { display:none; }
.dc-body { min-height:0; flex:1; display:grid; grid-template-columns:minmax(380px,43%) minmax(420px,57%); }
.dc-editor { overflow:auto; padding:18px; border-right:1px solid #e2e8f0; }
.dc-preview { overflow:auto; padding:20px; background:#eaf0f5; }
.dc-section { background:white; border:1px solid #e2e8f0; border-radius:9px; padding:14px; margin-bottom:14px; }
.dc-section h3 { margin:0 0 12px; font-size:14px; }
.dc-field { display:block; margin:10px 0; }
.dc-field>span { display:block; color:#64748b; font-size:12px; margin-bottom:4px; }
.dc-field input,.dc-field textarea,.dc-field select { width:100%; }
.dc-field textarea { min-height:72px; resize:vertical; }
.dc-section summary { cursor:pointer; font-weight:600; }
.dc-item-group { margin-top:18px; }
.dc-group-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; background:#f1f5f9; border-radius:6px; padding:8px 10px; margin-bottom:5px; }
.dc-group-heading h4 { margin:0; font-size:13px; font-weight:600; }
.dc-group-heading button { flex:none; font-size:12px; padding:3px 6px; }
.dc-item { padding:5px 0; }
.dc-item.is-unchecked { background:#f8fafc; }
.dc-item-title { display:flex; align-items:center; gap:8px; }
.dc-item-title input[type=checkbox] { width:17px; height:17px; flex:none; }
.dc-item-title button { padding:5px 8px; }
.dc-combobox { position:relative; flex:1; min-width:0; display:flex; align-items:stretch; }
.dc-combobox input[type=text] { flex:1; min-width:0; border-top-right-radius:0 !important; border-bottom-right-radius:0 !important; }
.dc-combobox input::-webkit-calendar-picker-indicator { display:none !important; }
.dc-combo-toggle { display:inline-flex !important; align-items:center; justify-content:center; gap:5px; border-top-left-radius:0 !important; border-bottom-left-radius:0 !important; border-left:1px solid #cbd5e1 !important; padding:0 12px !important; background:#f1f5f9 !important; color:#334155 !important; font-size:12px !important; cursor:pointer; flex:none; border-color:#cbd5e1 !important; transition:all .15s ease; user-select:none; }
.dc-combo-toggle:hover { background:#e2e8f0 !important; color:#0f172a !important; }
.dc-combo-arrow-svg { width:14px; height:14px; fill:currentColor; pointer-events:none; transition:transform .15s ease; }
.dc-combobox.is-open .dc-combo-arrow-svg { transform:rotate(180deg); }
.dc-combobox.is-open .dc-combo-toggle { background:#e2e8f0 !important; color:#0284c7 !important; }
.dc-combo-badge { background:#0284c7; color:white; font-size:10px; font-weight:700; padding:1px 6px; border-radius:10px; line-height:1.2; }
.dc-combo-dropdown { position:absolute; top:calc(100% + 4px); left:0; right:0; z-index:1100; background:white; border:1px solid #cbd5e1; border-radius:8px; box-shadow:0 10px 25px -5px rgba(15,23,42,0.18),0 8px 10px -6px rgba(15,23,42,0.1); max-height:300px; overflow-y:auto; padding:8px; font-size:13px; text-align:left; }
.dc-combo-header { padding:4px 8px 6px; font-weight:600; color:#334155; font-size:12px; border-bottom:1px solid #f1f5f9; margin-bottom:6px; display:flex; justify-content:space-between; align-items:center; }
.dc-combo-section { margin-bottom:8px; }
.dc-combo-custom-section { background:#faf5ff; border:1px solid #f3e8ff; border-radius:6px; padding:4px; margin-bottom:8px; }
.dc-combo-group-label { padding:4px 8px 2px; font-size:11px; color:#64748b; font-weight:600; }
.dc-combo-option { display:flex !important; align-items:center; gap:8px; width:100%; text-align:left !important; padding:6px 10px !important; border-radius:6px !important; border:1px solid transparent !important; background:transparent !important; font-size:13px !important; color:#1e293b !important; margin:2px 0; box-sizing:border-box; }
.dc-combo-option.is-custom-edit { cursor:pointer; color:#7e22ce !important; font-weight:600; background:#f5f3ff !important; border-color:#e9d5ff !important; }
.dc-combo-option.is-custom-edit:hover { background:#ede9fe !important; border-color:#d8b4fe !important; color:#6b21a8 !important; }
.dc-combo-option.is-custom-add { cursor:pointer; color:#0369a1 !important; font-weight:600; background:#f0f9ff !important; border-color:#bae6fd !important; margin-top:4px; }
.dc-combo-option.is-custom-add:hover { background:#e0f2fe !important; border-color:#7dd3fc !important; color:#0284c7 !important; }
.dc-combo-option.is-unselected { cursor:pointer; background:#f0fdf4 !important; border-color:#bbf7d0 !important; color:#166534 !important; font-weight:600; }
.dc-combo-option.is-unselected:hover { background:#dcfce7 !important; border-color:#86efac !important; color:#14532d !important; }
.dc-combo-option.is-current { background:#f8fafc !important; color:#0f172a !important; font-weight:600; cursor:default; }
.dc-combo-option.is-already-added { color:#94a3b8 !important; font-size:12px !important; cursor:default; padding:4px 10px !important; }
.dc-opt-icon { flex:none; font-weight:700; }
.dc-opt-text { flex:1; }
.dc-opt-tag { font-size:11px; color:#94a3b8; font-weight:normal; }
.dc-combo-empty-note { padding:7px 10px; font-size:12px; color:#0369a1; background:#f0f9ff; border:1px solid #bae6fd; border-radius:6px; margin:4px 0; }
.dc-combo-footer { padding:6px 8px 2px; font-size:11px; color:#94a3b8; border-top:1px solid #f1f5f9; margin-top:4px; }
.dc-item small { display:block; color:#9a3412; margin-top:5px; }
.dc-preview-card { background:white; border:1px solid #dbe3ed; border-radius:9px; overflow:hidden; margin-bottom:22px; box-shadow:0 2px 5px #0f172a08; }
.dc-preview-label { padding:12px 16px; font-weight:600; color:#0369a1; background:#f8fafc; border-bottom:1px solid #e2e8f0; }
.dc-preview-subject { padding:14px 18px 0; font-weight:600; overflow-wrap:anywhere; }
.dc-preview iframe { display:block; width:100%; border:0; min-height:380px; background:white; }
.dc-note { color:#64748b; font-size:12px; margin:8px 0 12px; }
.dc-suboverlay { position:fixed; inset:0; z-index:1250; background:#0f172a77; display:flex; align-items:center; justify-content:center; padding:25px; }
.dc-subdialog { display:flex; flex-direction:column; background:white; border-radius:12px; width:min(1050px,95vw); max-height:90vh; padding:20px; overflow:auto; }
.dc-subdialog h3 { margin:0; }
.dc-history-row { display:flex; justify-content:space-between; gap:15px; align-items:center; border-bottom:1px solid #e2e8f0; padding:14px 0; }
.dc-history-row small { display:block; color:#64748b; margin:4px 0; }
.dc-history-body { border:1px solid #e2e8f0; width:100%; min-height:420px; margin-top:14px; }
.dc-catalog-layout { display:grid; grid-template-columns:35% 65%; gap:12px; min-height:0; margin-top:12px; }
.dc-catalog-list { max-height:55vh; overflow:auto; }
.dc-catalog-list button { display:block; width:100%; text-align:left; margin-bottom:5px; }
.dc-catalog-editor { padding:0 14px; overflow:auto; max-height:60vh; }
@media(max-width:900px) { .dc-overlay { padding:0; } .dc-studio { height:100dvh; width:100vw; border-radius:0; } .dc-body { display:block; overflow:auto; } .dc-editor,.dc-preview { overflow:visible; } .dc-head { padding:12px; } .dc-catalog-layout { grid-template-columns:1fr; } .dc-catalog-list { max-height:180px; } }

.dc-subdialog button:disabled { opacity: 0.35 !important; cursor: not-allowed !important; background: #f1f5f9 !important; border-color: #cbd5e1 !important; color: #94a3b8 !important; }
.dc-btn-accepted { background: #dcfce7 !important; border-color: #16a34a !important; color: #15803d !important; font-weight: 700 !important; }
.dc-btn-needs-more { background: #fee2e2 !important; border-color: #dc2626 !important; color: #b91c1c !important; font-weight: 700 !important; }
.dc-btn-not-applicable { background: #e2e8f0 !important; border-color: #64748b !important; color: #334155 !important; font-weight: 700 !important; }
.dc-status-badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-right: 6px; }
.dc-status-pending { background: #fef3c7; color: #92400e; }
.dc-status-in_progress { background: #e0f2fe; color: #0369a1; }
.dc-status-submitted { background: #dbeafe; color: #1d4ed8; }
.dc-status-accepted { background: #dcfce7; color: #15803d; }
.dc-status-needs_more { background: #fee2e2; color: #b91c1c; }
.dc-status-not_applicable { background: #f1f5f9; color: #64748b; }
