.wf-panel{margin-top:24px;padding:24px;background:#fff;border:1px solid #dce3ed;border-radius:14px;color:#334155}.wf-panel h2{font-size:18px;font-weight:800}.wf-panel h3{margin:22px 0 10px;font-size:15px;font-weight:700}.wf-panel p{font-size:12px;color:#64748b;margin:8px 0 16px;max-width:950px}.wf-panel table{width:100%;font-size:12px}.wf-panel th,.wf-panel td{padding:8px;text-align:left;border-bottom:1px solid #e2e8f0}.wf-panel input:not([type=checkbox]):not([type=color]),.wf-panel select{border:1px solid #cbd5e1;padding:8px;border-radius:6px;background:white;max-width:100%;font-size:12px}.wf-panel input[type=color]{width:56px;height:32px}.wf-panel button{padding:8px 12px;border:1px solid #cbd5e1;border-radius:6px;background:#f8fafc;margin:6px 0;font-size:12px}.wf-rule{padding:16px;margin:12px 0;border:1px solid #cbd5e1;border-left:4px solid #f97316;border-radius:8px}.wf-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:8px 0}.wf-row label{font-size:12px;display:flex;gap:8px;align-items:center}.wf-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:16px}.wf-panel .wf-save{background:#ea580c;color:white;border-color:#ea580c}.wf-scroll{overflow:auto}
/* Settings tabs keep the active configuration bounded, without a long page. */
#settings-tabs{display:flex;flex-wrap:wrap;gap:6px;padding:8px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;margin-top:14px;margin-bottom:14px}
#settings-tabs button{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:8px;color:#475569;font-size:12px;font-weight:700;background:#f8fafc;border:1px solid transparent}
#settings-tabs button[aria-selected=true]{background:#fff7ed;color:#c2410c;border-color:#fdba74}
#settings-tabs button:focus-visible{outline:2px solid #ea580c;outline-offset:2px}
#view-settings-general [data-settings-panel][hidden],#workflow-settings[hidden]{display:none!important}
#view-settings-general [data-settings-panel]{max-height:calc(100dvh - 290px);min-height:140px;overflow:auto;overscroll-behavior:contain;margin-top:0}
#workflow-settings{margin-top:0}#workflow-settings>.wf-panel{margin-top:0;padding:16px}#workflow-settings>.wf-panel>h2,#workflow-settings>.wf-panel>p{display:none}
#workflow-settings h3{margin-top:0}#workflow-settings .wf-footer{margin-top:10px;padding-top:8px;border-top:1px solid #e2e8f0}
@media(max-width:640px){#settings-tabs button{flex:1 1 30%;justify-content:center;padding:9px 6px}#view-settings-general [data-settings-panel]{max-height:65dvh}}

#ctr-direct-items{margin-top:16px;padding:18px}#ctr-direct-items>h3{margin:0 0 12px}#ctr-direct-items .wf-rule{margin:12px 0;padding:14px}#ctr-direct-items .wf-rule>.wf-row{justify-content:space-between;margin:0 0 12px}#ctr-direct-items .wf-rule>.wf-row button{margin:0}
#ctr-direct-items .renewal-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px;align-items:start}#ctr-direct-items .renewal-fields-grid label{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;font-size:12px;color:#475569}#ctr-direct-items .renewal-fields-grid label>span{font-weight:600;min-height:18px}#ctr-direct-items .renewal-fields-grid input{width:100%;min-width:0;height:38px;box-sizing:border-box;margin:0}
@media(max-width:420px){#ctr-direct-items .renewal-fields-grid{grid-template-columns:minmax(0,1fr)}}
