.report-editor {
  position:fixed; inset:0 0 0 auto; margin:0; padding:0; width:min(570px,100%); height:100%;
  height:100dvh; max-width:100%; max-height:100dvh; box-sizing:border-box; border:0;
  border-radius:22px 0 0 22px; color:#172c26; background:#fff; overflow:hidden;
  box-shadow:-16px 0 70px rgba(13,39,30,.15); font:inherit; text-align:left;
}
.report-editor[open] { animation:re-enter .22s ease-out both }
.report-editor::backdrop { background:rgba(16,34,28,.35) }
.report-editor *, .report-editor *::before, .report-editor *::after { box-sizing:border-box }
.report-editor [hidden] { display:none !important }
.report-editor :is(input,select,button) { font:inherit; color:inherit; margin:0; letter-spacing:normal }
.report-editor button { cursor:pointer; appearance:none }
.report-editor button:disabled { cursor:default }
.report-editor :is(button,input,select):focus-visible { outline:3px solid #88c9b3; outline-offset:2px }
.report-editor :is(h2,h3,h4,p) { margin:0; letter-spacing:normal }
.report-editor .re-frame { display:flex; flex-direction:column; height:100%; min-height:0; background:white }
.report-editor .re-heading { display:flex; align-items:center; gap:12px; padding:24px 28px; border-bottom:1px solid #e4eae7; background:white }
.report-editor .re-heading h2 { font-size:1.45rem; font-weight:700; color:#192c27; line-height:1.3 }
.report-editor .re-title-icon { display:grid; place-items:center; width:40px; height:40px; flex:none; color:#087d60; border:1px solid #cde8dd; background:#ecf7f1; border-radius:12px }
.report-editor .re-close { background:#f6f8f7; border:1px solid #e5ebe8; width:34px; height:34px; padding:0; display:grid; place-items:center; border-radius:10px; color:#5d6c65; margin-left:auto }
.report-editor .re-close:hover { background:#edf2ef }
.report-editor .re-scroll { padding:22px 28px 26px; flex:1; overflow:auto; min-height:0; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cbd7d1 transparent }
.report-editor .re-context { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:24px }
.report-editor .re-context label { min-width:0; display:grid; gap:7px; font-size:.875rem; font-weight:550; color:#4c5e55 }
.report-editor .re-context :is(input,select) { display:block; min-width:0; width:100%; height:42px; background-color:white; color:#253c32; border:1px solid #d8e1db; border-radius:8px; padding:0 12px; font-size:.9375rem; font-weight:500 }
.report-editor .re-context select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23546a5f' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.6'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:34px }
.report-editor .re-context input::-webkit-calendar-picker-indicator { opacity:.64; cursor:pointer }
.report-editor .re-channel-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:11px }
.report-editor .re-channel-heading h3 { font-size:1.0625rem; color:#263b32; font-weight:650 }
.report-editor .re-channel-heading > span { color:#68776e; font-size:.8125rem; font-weight:450 }
.report-editor .re-channels { display:grid; gap:12px }
.report-editor .re-card { min-width:0; overflow:hidden; border:1px solid #e0e7e2; border-radius:13px; background:white }
.report-editor .re-card-heading { display:flex; align-items:center; gap:9px; padding:14px 16px 11px }
.report-editor .re-card-heading h4 { font-size:.975rem; font-weight:680; color:#24382e }
.report-editor .re-channel-icon { width:25px; height:25px; flex:none; border-radius:7px; display:grid; place-items:center; overflow:hidden; font:bold 16px/1 Arial,sans-serif; background:#536960; color:white }
.report-editor .re-icon-facebook { border-radius:50%; background:#1877f2; padding-top:3px; font-size:25px }
.report-editor .re-icon-applovin { background:#18202b; color:#fff; font-size:15px }
.report-editor .re-icon-newsbreak { background:#ee4759; font-style:italic; font-size:15px }
.report-editor .re-status { margin-left:auto; font-size:.75rem; border-radius:6px; font-weight:500; padding:3px 8px; line-height:1.4 }
.report-editor .re-status[data-state="empty"] { color:#99671b; background:#fff5db }
.report-editor .re-status[data-state="done"] { color:#0f7555; background:#eaf6f0 }
.report-editor .re-status[data-state="dirty"] { color:#4f589b; background:#f0effa }
.report-editor .re-fields { display:grid; grid-template-columns:1fr 1fr .8fr; gap:10px; padding:0 16px 12px }
.report-editor .re-fields label { min-width:0; display:flex; flex-direction:column; gap:5px }
.report-editor .re-field-label { font-size:.8125rem; font-weight:500; color:#5a6a61 }
.report-editor .re-input-wrap { position:relative; display:flex; align-items:center }
.report-editor .re-unit { position:absolute; left:10px; pointer-events:none; color:#76847c; font-size:.875rem }
.report-editor .re-fields input { width:100%; min-width:0; height:38px; padding:0 10px; font-size:.925rem; font-variant-numeric:tabular-nums; border:1px solid #dbe3de; color:#182d22; border-radius:7px; background:#fff }
.report-editor .re-unit + input { padding-left:24px }
.report-editor .re-fields input:hover, .report-editor .re-context :is(input,select):hover { border-color:#a6bab0 }
.report-editor input::placeholder { color:#9aa69f }
.report-editor .re-fields input:focus { outline:2px solid #92cdb7; outline-offset:0; border-color:#389373 }
.report-editor .re-fields input[aria-invalid="true"] { border-color:#bb584c; background:#fff9f8 }
.report-editor .re-metrics { display:flex; flex-wrap:wrap; align-items:center; gap:18px; background:#f6f9f7; border-top:1px solid #edf1ee; padding:7px 16px; color:#64756a; font-size:.8125rem; line-height:1.45 }
.report-editor .re-metrics b { color:#41574a; font-weight:590; font-variant-numeric:tabular-nums; margin-left:4px }
.report-editor .re-foot { flex:none; padding:16px 28px max(16px,env(safe-area-inset-bottom)); background:white; border-top:1px solid #e3e9e5 }
.report-editor .re-submit-row { display:flex; align-items:center; gap:9px }
.report-editor .re-count { font-size:.875rem; color:#637269; margin-right:auto }
.report-editor :is(.re-secondary,.re-primary,.re-discard) { min-height:40px; min-width:67px; padding:8px 16px; font-size:.9rem; border-radius:8px; font-weight:600; line-height:1.4 }
.report-editor .re-secondary { background:#fff; color:#3e5547; border:1px solid #d7e1da }
.report-editor .re-secondary:hover { background:#f5f9f6 }
.report-editor .re-primary { background:#087d60; color:white; border:1px solid #087d60; box-shadow:0 2px 3px #0c593312 }
.report-editor .re-primary:hover:enabled { background:#076e54 }
.report-editor .re-primary:disabled { background:#d6e7df; color:#547363; border-color:#d6e7df; box-shadow:none }
.report-editor .re-error { border:1px solid #efcfc7; color:#983d2e; background:#fff5f2; line-height:1.5; padding:10px 12px; border-radius:8px; font-size:.875rem; margin-bottom:12px }
.report-editor .re-confirm p { font-size:.94rem; margin-bottom:12px; color:#364b3f }
.report-editor .re-confirm > div { display:flex; gap:9px; justify-content:flex-end }
.report-editor .re-discard { color:#a13d30; border:1px solid #e8cbc3; background:#fff6f3 }
@keyframes re-enter { from { transform:translateX(42px); opacity:.65 } to { transform:translateX(0); opacity:1 } }
@media (max-width:570px) {
  .report-editor { border-radius:0 }
  .report-editor .re-heading { padding:18px }
  .report-editor .re-scroll { padding:18px }
  .report-editor .re-foot { padding-inline:18px }
  .report-editor .re-card-heading { padding-inline:12px }
  .report-editor .re-fields { gap:7px; padding-inline:12px }
  .report-editor .re-context { gap:10px }
  .report-editor .re-fields input, .report-editor .re-context :is(input,select) { font-size:1rem }
}
@media (prefers-reduced-motion:reduce) { .report-editor[open] { animation:none } }
