.nx-sponsored-slot {
    height:1px;
    flex:0 0 1px;
    margin-block:-.5px;
    pointer-events:none;
}
.nx-sponsored {
    display:grid;
    gap:6px;
    padding:11px 12px;
    margin:3px 4px;
    min-width:0;
    color:var(--nexti-text,#e6eefb);
    background:var(--nexti-surface-2,#142337);
    border:1px solid var(--nexti-border,#496884);
    border-radius:14px;
    overflow-wrap:anywhere;
}
.nx-sponsored-meta { display:flex;align-items:center;gap:7px;min-width:0 }
.nx-sponsored-label {
    flex:none;
    color:var(--nexti-muted-text,#bdd3ec);
    border:1px solid var(--nexti-border,#496884);
    padding:3px 6px;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
}
.nx-sponsored-sponsor {
    flex:1;
    min-width:0;
    color:var(--nexti-muted-text,#bcd0e8);
    font-size:12px;
}
.nx-sponsored-dismiss {
    display:grid;
    place-items:center;
    flex:none;
    min-width:36px;
    min-height:36px;
    padding:0 6px;
    color:var(--nexti-muted-text,#bdd3ec);
    background:transparent;
    border:1px solid transparent;
    border-radius:8px;
    font:600 12px/1.2 system-ui,sans-serif;
    cursor:pointer;
}
.nx-sponsored-dismiss:hover { border-color:var(--nexti-border,#496884) }
.nx-sponsored-title { font-size:14px;line-height:1.28 }
.nx-sponsored-description { margin:0;color:var(--nexti-muted-text,#bcd0e8);font-size:13px;line-height:1.36 }
.nx-sponsored-link {
    display:inline-flex;
    justify-self:start;
    align-items:center;
    min-height:36px;
    padding:2px 0;
    color:var(--nexti-accent,#9bebf4);
    font-size:13px;
    font-weight:720;
    text-decoration:underline;
    text-underline-offset:3px;
}
.nx-sponsored :is(a,button):focus-visible,.nx-ad-admin :is(button,input,textarea):focus-visible {
    outline:2px solid #73ddeb;
    outline-offset:2px;
}
.nx-ad-admin { display:grid;gap:12px;color:#e5eefc;max-width:100%;min-width:0 }
.nx-ad-admin-box {
    display:grid;
    gap:12px;
    min-width:0;
    padding:14px;
    border:1px solid #587b9c68;
    border-radius:14px;
    background:#132237;
}
.nx-ad-admin-box h3,.nx-ad-admin-box p {margin:0}
.nx-ad-admin-hint,.nx-ad-admin-list p {color:#b4cbe3;font-size:13px;line-height:1.4}
.nx-ad-admin-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
.nx-ad-admin-field {display:grid;align-content:start;gap:5px;min-width:0;color:#d4e5f8;font-size:13px}
.nx-ad-admin-field input,.nx-ad-admin-field textarea {
    box-sizing:border-box;
    min-width:0;
    min-height:40px;
    width:100%;
    padding:8px;
    border:1px solid #607c9d;
    border-radius:8px;
    background:#0b1524;
    color:#edf4ff;
    font:inherit;
    color-scheme:dark;
}
.nx-ad-admin-field textarea {min-height:56px;resize:vertical}
.nx-ad-admin-check {display:flex;align-items:center;gap:9px;min-height:32px}
.nx-ad-admin-check input {width:17px;height:17px;accent-color:#70dce9}
.nx-ad-admin-tools,.nx-ad-admin-campaign-head {display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.nx-ad-admin button:not(:where(.nx-sponsored button,.nx-ad-story button)) {
    justify-self:start;
    min-height:40px;
    padding:7px 10px;
    border:1px solid #5b86a4;
    border-radius:8px;
    background:#183950;
    color:#e4f3fc;
    font:650 13px/1.2 system-ui,sans-serif;
    cursor:pointer;
}
.nx-ad-admin button:disabled {opacity:.55;cursor:default}
.nx-ad-admin-list {display:grid;gap:8px;list-style:none;padding:0;margin:0}
.nx-ad-admin-list li {display:grid;gap:8px;padding:10px;background:#0e1a2a;border:1px solid #59789583;border-radius:10px;overflow-wrap:anywhere}
.nx-ad-admin-campaign-head span {color:#9ee0ec;font-size:12px}
.nx-ad-admin-error {margin:0;color:#ffd2d9}
.nx-ad-admin-result {margin:0;color:#a6e9d8}
.nx-ad-admin-placements {
    display:flex;
    flex-wrap:wrap;
    gap:2px 15px;
    min-width:0;
    margin:0;
    padding:6px 10px 8px;
    border:1px solid #587b9c68;
    border-radius:9px;
}
.nx-ad-admin-placements legend { padding:0 4px;color:#b4cbe3;font-size:12px }
.nx-sponsored.nx-sponsored-feed {
    box-sizing:border-box;
    align-self:flex-start;
    flex-shrink:0;
    width:min(calc(100% - 24px),330px);
    margin:7px 12px 9px;
    border-radius:15px 15px 15px 5px;
}
.nx-sponsored-feed .nx-sponsored-link { min-height:32px }
.nx-sponsored-feed .nx-sponsored-dismiss { min-height:32px }

.nx-ad-story {
    isolation:isolate;
    position:relative;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
    color:#f3f8ff;
    background:#101a25;
    touch-action:manipulation;
}
.nx-ad-story-image,.nx-ad-story-shade {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    pointer-events:none;
    z-index:-1;
}
.nx-ad-story-shade {
    background:linear-gradient(180deg,#07111bea 0%,#07111b32 28%,transparent 42%,#07111bce 76%,#07111bfd 100%);
}
.nx-ad-story-top {
    padding:max(11px,env(safe-area-inset-top)) 13px 10px;
}
.nx-ad-story-progress {
    width:100%;
    height:3px;
    background:#e9f4ff56;
    border-radius:999px;
    overflow:hidden;
}
.nx-ad-story-progress span {
    display:block;
    width:100%;
    height:100%;
    background:#b8f3ec;
    transform-origin:left;
}
.nx-ad-story-controls {
    display:flex;
    align-items:center;
    gap:7px;
    margin-top:9px;
}
.nx-ad-story-label,.nx-ad-story-skip,.nx-ad-story-close {
    color:#f1f7ff;
    border:1px solid #d5e5f67a;
    background:#111e2bdc;
    border-radius:999px;
    font:700 12px/1.1 system-ui,sans-serif;
}
.nx-ad-story-label { margin-right:auto;padding:7px 10px }
.nx-ad-story-skip { min-height:40px;padding:7px 11px;cursor:pointer }
.nx-ad-story-close { width:42px;height:42px;font-size:23px;cursor:pointer }
.nx-ad-story-body {
    min-width:0;
    padding:20px 17px max(16px,env(safe-area-inset-bottom));
    overflow-wrap:anywhere;
}
.nx-ad-story-sponsor {
    margin:0 0 7px;
    color:#b3f0e9;
    font:720 13px/1.2 system-ui,sans-serif;
}
.nx-ad-story-body h2 {
    margin:0;
    font:800 clamp(23px,6.7vw,37px)/1.07 system-ui,sans-serif;
    letter-spacing:-.04em;
}
.nx-ad-story-description {
    margin:9px 0 15px;
    color:#deebf6;
    font:520 14px/1.4 system-ui,sans-serif;
}
.nx-ad-story-cta {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:45px;
    width:100%;
    padding:7px 10px;
    border-radius:11px;
    background:#b2efe7;
    color:#10231f;
    text-align:center;
    text-decoration:none;
    font:800 14px/1.2 system-ui,sans-serif;
    box-sizing:border-box;
}
.nx-ad-story-hide {
    display:block;
    margin:5px auto 0;
    min-height:42px;
    padding:4px 8px;
    background:transparent;
    border:0;
    color:#d5e6f4;
    font:620 12px/1.2 system-ui,sans-serif;
    cursor:pointer;
}
.nx-ad-story :is(button,a):focus-visible {
    outline:2px solid #a3f6ea;
    outline-offset:3px;
}
.nx-ad-admin-field select {
    box-sizing:border-box;
    min-width:0;
    min-height:40px;
    width:100%;
    padding:8px;
    border:1px solid #607c9d;
    border-radius:8px;
    background:#0b1524;
    color:#edf4ff;
    font:inherit;
    color-scheme:dark;
}
.nx-ad-story-preview {
    position:relative;
    isolation:isolate;
    display:grid;
    align-items:end;
    width:min(100%,215px);
    aspect-ratio:9/16;
    margin:0;
    overflow:hidden;
    border-radius:12px;
    border:1px solid #80a9bc94;
    background:#101a25;
}
.nx-ad-story-preview img {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:-1;
}
.nx-ad-story-preview figcaption {
    display:grid;
    gap:6px;
    padding:32px 10px 12px;
    color:#f0f7ff;
    background:linear-gradient(transparent,#071320 55%);
    overflow-wrap:anywhere;
    font-size:12px;
}
.nx-ad-story-preview figcaption > span:first-child { color:#b2eee6 }
.nx-ad-story-preview figcaption > strong { font-size:16px }
.nx-ad-story-preview figcaption > b {
    justify-self:start;
    padding:5px 8px;
    border-radius:6px;
    background:#ace9e1;
    color:#0d231f;
}

.nx-ad-admin-nav {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:4px;
  padding:4px;
  background:#0b1524;
  border:1px solid #293d51;
  border-radius:14px;
}
.nx-ad-admin .nx-ad-admin-nav button {
  min-height:40px;
  padding:7px 4px;
  font-size:clamp(11px,3.3vw,14px);
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:#bbcee3;
}
.nx-ad-admin .nx-ad-admin-nav button[aria-current] {
  border-color:#3e8090;
  background:#183745;
  color:#b8f5f4;
}
.nx-ad-report {
  min-width:0;
  gap:16px;
  padding:clamp(11px,3vw,20px);
}
.nx-ad-report-heading,.nx-ad-report-period {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px;
}
.nx-ad-report-heading h3 { font-size:clamp(16px,4.2vw,21px);line-height:1.15 }
.nx-ad-report-period span,.nx-ad-report-day span { color:#b4cbe3;font-size:12px }
.nx-ad-report-filters {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.nx-ad-report-filters label:last-child { grid-column:1/-1 }
.nx-ad-report-filters select { width:100%;min-width:0;min-height:44px }
.nx-ad-report-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:0;
}
.nx-ad-report-kpi {
  min-width:0;
  padding:clamp(8px,2.4vw,14px);
  border:1px solid #294658;
  border-radius:14px;
  background:linear-gradient(145deg,#15283b,#0d1a2a 90%);
}
.nx-ad-report-kpi dt { color:#bdcfe3;font-size:12px }
.nx-ad-report-kpi dd { margin:4px 0;color:#e8fcff;font-size:clamp(19px,5.4vw,30px);font-weight:720;line-height:1.1;overflow-wrap:anywhere }
.nx-ad-report-kpi p { color:#a5c4d7;font-size:11px;line-height:1.35 }
.nx-ad-report-chart,.nx-ad-report-breakdown { display:grid;gap:10px;min-width:0 }
.nx-ad-report h4 { margin:0;font-size:15px }
.nx-ad-report-chart {
  padding:10px;
  border:1px solid #2c4359;
  border-radius:14px;
  background:#0c1828;
}
.nx-ad-report-toggle { display:flex;gap:4px }
.nx-ad-admin .nx-ad-report-toggle button { padding:5px 8px;min-height:32px;font-size:11px }
.nx-ad-admin .nx-ad-report-toggle [aria-pressed=true] { background:#173743;color:#b8f5f4;border-color:#59a4ad }
.nx-ad-report-day { display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;justify-content:space-between }
.nx-ad-report-day strong { font-size:12px;color:#a1e5eb }
.nx-ad-report-bars {
  position:relative;
  display:flex;
  align-items:stretch;
  height:94px;
  border-bottom:1px solid #455e70;
  background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#293e52 calc(25% - 1px),#293e52 25%);
}
.nx-ad-report .nx-ad-report-bars button {
  display:flex;
  align-items:flex-end;
  flex:1 1 0;
  min-width:0;
  padding:0 clamp(0px,.18vw,2px);
  margin:0;
  border:0;
  border-radius:3px;
  background:transparent;
}
.nx-ad-report .nx-ad-report-bars button[aria-pressed=true],.nx-ad-report .nx-ad-report-bars button:hover { background:#6b99b52c }
.nx-ad-report-bars span {
  width:100%;
  min-height:2px;
  border-radius:3px 3px 0 0;
  background:linear-gradient(to top,#24688b,#62d9df);
}
.nx-ad-report-bars [aria-pressed=true] span { background:linear-gradient(to top,#345c96,#c0f6ef) }
.nx-ad-report-axis { display:flex;justify-content:space-between;color:#abc0d5;font-size:10px }
.nx-ad-report-table { max-width:100%;overflow-x:auto;border:1px solid #2b435a;border-radius:10px }
.nx-ad-report-table table { width:100%;border-collapse:collapse;font-size:12px }
.nx-ad-report-table :is(th,td) { padding:8px 7px;text-align:right;font-variant-numeric:tabular-nums }
.nx-ad-report-table th:first-child { text-align:left }
.nx-ad-report-table thead th { background:#16283b;color:#b9d1e5;font-weight:600 }
.nx-ad-report-table tbody tr+tr { border-top:1px solid #243b51 }
.nx-ad-report-table tbody th { color:#e0eafa;font-weight:550;min-width:66px }
.nx-ad-report details summary { cursor:pointer;color:#a9d2e8;font-size:12px;padding:4px 0 }
.nx-ad-report details p { margin:7px 0;color:#b9cbde;font-size:12px;line-height:1.45 }
.nx-ad-report-empty,.nx-ad-report-note { padding:10px;border-radius:10px;background:#0d1929;color:#b9cbde;font-size:13px }
.nx-ad-report-note { border-left:2px solid #76c1cd }
.nx-ad-admin :is(select,.nx-ad-report-table):focus-visible { outline:2px solid #8ce2eb;outline-offset:2px }
@media (min-width:770px) {
  .nx-ad-report-filters { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .nx-ad-report-filters label:last-child { grid-column:auto }
  .nx-ad-report-grid { grid-template-columns:repeat(4,minmax(0,1fr)) }
  .nx-ad-report-bars { height:118px }
}
.nx-ad-report .nx-ad-report-state { margin:5px 0 0;color:#a8bed2;font-size:12px }
.nx-ad-report-state[data-enabled=true] { color:#a0e9ce }
.nx-ad-report-comparison .nx-ad-report-table { max-height:240px }
.nx-ad-report-comparison th[scope=col] { position:sticky;top:0;z-index:1 }
.nx-ad-report .nx-ad-report-comparison th button {
  padding:0;
  border:0;
  background:transparent;
  color:#b5eff5;
  text-align:left;
  min-height:24px;
  max-width:210px;
  white-space:normal;
}

.nx-ad-preview-controls {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end;
  gap:8px;
}
.nx-ad-preview-controls label:first-child,.nx-ad-preview-controls button { grid-column:1/-1 }
.nx-ad-preview-controls select { width:100%;min-height:44px }
.nx-ad-preview-diagnosis {
  display:grid;
  gap:7px;
  padding:12px;
  border:1px solid #335968;
  border-radius:12px;
  background:#112b39;
  font-size:13px;
  line-height:1.45;
}
.nx-ad-preview-diagnosis ul { margin:0;padding-inline-start:18px }
.nx-ad-preview-diagnosis :is(p,li) { color:#bcd3e6 }
.nx-ad-preview-frame {
  box-sizing:border-box;
  width:100%;
  max-width:390px;
  justify-self:center;
  min-width:0;
  padding:8px;
  border:1px solid #365368;
  border-radius:16px;
  background:#091625;
}
.nx-ad-preview-frame[data-device=compact] { max-width:320px }
.nx-ad-preview-frame[data-device=desktop] { max-width:640px }
.nx-ad-preview-frame[data-placement=story-viewer] { max-width:390px;padding:4px }
.nx-ad-preview-frame[data-device=compact][data-placement=story-viewer] { max-width:320px }
.nx-ad-preview-frame[data-device=desktop][data-placement=story-viewer] { max-width:440px }
.nx-ad-preview-frame .story-viewer__stage.nx-ad-story {
  width:100%;
  height:auto;
  min-height:0;
  max-height:none;
  aspect-ratio:9/16;
  border-radius:12px;
}
.nx-ad-preview-frame .nx-ad-story-description { margin:9px 0 15px }
.nx-ad-preview-frame .nx-ad-story-sponsor { margin-bottom:7px }
.nx-ad-preview-frame .nx-sponsored-feed { margin-inline:4px }
@media (min-width:660px) {
  .nx-ad-preview-controls { grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr)) auto }
  .nx-ad-preview-controls label:first-child,.nx-ad-preview-controls button { grid-column:auto }
}
