/* ScoutTract exports — S2 brand: navy #1F2A44, copper #B87333, sand #F6F1EB */
.ej-dialog{border:0;border-radius:16px;padding:0;width:min(640px,calc(100vw - 24px));max-height:min(86vh,860px);background:#fff;color:#1F2A44;box-shadow:0 24px 64px rgba(15,23,42,.35);font:14px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;overflow:auto}
.ej-dialog::backdrop{background:rgba(15,23,42,.55)}
.ej-dialog.ej-small{width:min(440px,calc(100vw - 24px))}
.ej-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:#1F2A44;color:#fff;border-bottom:3px solid #B87333}
.ej-head h3{margin:0;font:600 20px/1.2 Georgia,'Times New Roman',serif;color:#fff}
.ej-head small{color:#E8B48A;font-size:12px}
.ej-x{background:transparent;border:0;color:#fff;font-size:18px;min-width:44px;min-height:44px;cursor:pointer;border-radius:10px}
.ej-x:hover{background:rgba(255,255,255,.1)}
.ej-note{margin:12px 18px;color:#5B6472;font-size:13px}
.ej-list{padding:0 12px 6px}
.ej-item,.ej-dest{border:1px solid #E7E1D8;border-left:4px solid #B87333;border-radius:12px;padding:12px 14px;margin:8px 6px;background:#fff}
.ej-row1{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.ej-row1 b{font-weight:600;word-break:break-word}
.ej-meta{color:#3E4757;font-size:13px;margin-top:4px}
.ej-meta.ok{color:#2F7D4F}.ej-meta.bad{color:#B3261E}
.ej-when{color:#8A8F98;font-size:12px;margin-top:2px}
.ej-chip{flex:none;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 8px;border-radius:999px;white-space:nowrap}
.ej-q{background:#EEF1F6;color:#1F2A44}.ej-b{background:#FBEBDD;color:#8A4F1C}.ej-r{background:#E3F2E8;color:#1E6B3E}.ej-e{background:#EFEFEF;color:#6B7280}.ej-f{background:#FCE8E6;color:#B3261E}
.ej-b::before{content:'';display:inline-block;width:8px;height:8px;margin-right:6px;border-radius:50%;border:2px solid #B87333;border-right-color:transparent;vertical-align:-1px;animation:ejspin .8s linear infinite}
@keyframes ejspin{to{transform:rotate(360deg)}}
.ej-files{margin-top:6px;font-size:13px}.ej-files summary{cursor:pointer;color:#B87333;font-weight:600}
.ej-files ul{list-style:none;margin:6px 0 0;padding:0;max-height:180px;overflow:auto}
.ej-files li{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-bottom:1px dashed #EEE7DC}
.ej-files li span{word-break:break-all}.ej-files li i{font-style:normal;color:#6B7280;white-space:nowrap}
.ej-dests{list-style:none;margin:6px 0 0;padding:0;font-size:12px}.ej-dests .ok{color:#1E6B3E}.ej-dests .bad{color:#B3261E}
.ej-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ej-btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border-radius:10px;border:1px solid #C9CFD9;background:#fff;color:#1F2A44;font:600 14px/1 inherit;cursor:pointer;text-decoration:none}
.ej-btn.primary{background:#B87333;border-color:#B87333;color:#fff}.ej-btn.primary:hover{background:#A2632A}
.ej-btn.ghost{background:transparent;border-color:transparent;color:#1F2A44;text-decoration:underline}
.ej-btn:disabled{opacity:.6;cursor:default}
.ej-link{background:none;border:0;color:#B87333;font-weight:600;cursor:pointer;padding:8px 0;text-decoration:underline}
.ej-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 18px 16px;flex-wrap:wrap}
.ej-empty{color:#6B7280;text-align:center;padding:18px 8px}
.ej-checks{display:grid;gap:8px;padding:0 18px}.ej-checks label{display:flex;align-items:center;gap:8px;min-height:40px}.ej-checks small{color:#6B7280}
.ej-toast{position:fixed;left:50%;bottom:max(18px,env(safe-area-inset-bottom));transform:translate(-50%,140%);z-index:2147483000;display:flex;align-items:center;gap:10px;max-width:calc(100vw - 24px);width:max-content;padding:10px 12px 10px 16px;border-radius:12px;background:#1F2A44;color:#fff;border-left:4px solid #B87333;box-shadow:0 12px 30px rgba(0,0,0,.3);transition:transform .25s ease;font:14px/1.35 system-ui,sans-serif}
.ej-toast.show{transform:translate(-50%,0)}
.ej-toast-btn{background:#B87333;color:#fff;border:0;border-radius:8px;padding:8px 12px;font-weight:600;cursor:pointer;white-space:nowrap}
.ej-toast-x{background:none;border:0;color:#fff;cursor:pointer;min-width:32px;min-height:32px}
.ej-top{position:relative;display:inline-flex;align-items:center;gap:6px}
.ej-top .ej-badge:empty{display:none}
.ej-top .ej-badge{min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#B87333;color:#fff;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.ej-top.busy>span:first-child{animation:ejpulse 1.2s ease-in-out infinite}
@keyframes ejpulse{50%{opacity:.35}}
@media (max-width:760px){.ej-top .ej-top-t{display:none}}
.ej-card .ej-toggle{display:flex;align-items:center;gap:8px;min-height:40px}
.ej-field{display:grid;gap:4px;margin:8px 0}.ej-field>span{font-size:12px;font-weight:600;color:inherit;opacity:.85}
.ej-field input,.ej-field select,.ej-field textarea,.ej-add select,.ej-code input{width:100%;min-height:40px;box-sizing:border-box;border-radius:10px;border:1px solid #C9CFD9;padding:8px 10px;font:inherit;background:#fff;color:#1F2A44}
.ej-field textarea{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px}
.ej-form{border:1px dashed #B87333;border-radius:12px;padding:10px 14px;margin:10px 0;background:#FBF8F4;color:#1F2A44}.ej-form.hidden{display:none}.ej-form h4{margin:4px 0 6px}
.ej-dest-list .ej-dest{margin:8px 0;color:#1F2A44}
.ej-cfg{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:#3E4757;margin-top:4px;word-break:break-all}.ej-cfg i{font-style:normal;color:#8A8F98;text-transform:capitalize}
.ej-code{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}.ej-code input{max-width:150px;letter-spacing:.2em}
.ej-status{min-height:1.2em;font-size:13px}
.ej-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:8px 0}
.ej-stats div{border:1px solid rgba(184,115,51,.4);border-radius:12px;padding:10px}.ej-stats b{display:block;font-size:18px}.ej-stats small{opacity:.75}
.ej-quota{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}.ej-quota .ej-field{flex:1 1 150px}
.ej-scroll{overflow:auto;max-height:360px;margin-top:8px}
.ej-table{width:100%;border-collapse:collapse;font-size:13px}.ej-table th,.ej-table td{text-align:left;padding:6px 8px;border-bottom:1px solid rgba(127,127,127,.25);vertical-align:top}
@media (max-width:620px){.ej-dialog{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;margin:0}.ej-acts .ej-btn{flex:1 1 auto}.ej-head{padding-top:max(16px,env(safe-area-inset-top))}}
@media (prefers-reduced-motion:reduce){.ej-b::before,.ej-top.busy>span:first-child{animation:none}.ej-toast{transition:none}}
#ejSettingsCard .ej-form .ej-field>span,#ejSettingsCard .ej-form h4{color:#1F2A44;font-weight:600;opacity:1}
#ejSettingsCard .ej-form input,#ejSettingsCard .ej-form select,#ejSettingsCard .ej-form textarea{color:#1F2A44;background:#fff}
#ejSettingsCard>.ej-note,#ejSettingsCard .ej-dest-list>.ej-empty,#ejSettingsCard .ej-dest-list>p{color:#C9D7E2;opacity:1}
