/* Lenci · Nawaa tools · package "engage" (v3/docs/tools/engage.md): Polls & interactive ideas (story images, follow-ups, story sets),
   the Reply assistant and the Contest & giveaway builder. Builds on nawaa-tools.css; logical properties only, so Arabic mirrors itself. */
.nt { --rp-praise: #34d399; --rp-question: #22d3ee; --rp-complaint: #f5b041; --rp-purchase_intent: #a78bfa; --rp-lead: #818cf8; --rp-spam: #9ca3af; --rp-abuse: #f87171; --rp-crisis: #ef4444; --rp-none: #6b7280; }
.nt-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--line); white-space: nowrap; }
.nt-pill.ok { color: #a7f3d0; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.nt-pill.warn { color: #fde68a; border-color: rgba(245,176,65,.35); background: rgba(245,176,65,.08); }
.nt-pill.cost { color: #c9f3ff; border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.08); }
.nt-pill.over { color: #fecaca; border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.1); }
.nt-token { padding: 0 5px; border-radius: 6px; background: rgba(245,176,65,.18); color: #fde68a; font-weight: 600; }
.nt-token.filled { background: rgba(52,211,153,.18); color: #a7f3d0; }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-count-b { margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; font-weight: 700; font-size: .95em; background: rgba(0,0,0,.18); }
.nt-pill .nt-count-b { background: rgba(255,255,255,.08); }
.nt-taglist { display: flex; flex-wrap: wrap; gap: 4px 10px; }

/* ---- interactive: the image style bar, the story thumbnail beside the sticker, the follow-up, story sets */
.nt-ia-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nt-ia-bar .nt-hint { flex: 1 1 220px; }
.nt-ideas .nt-ia { align-content: start; } /* cards of one row share a height: their content stays packed at the top */
.nt-ia-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: start; }
.nt-story-thumb { padding: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #111; cursor: zoom-in; line-height: 0; width: 92px; aspect-ratio: 9 / 16; transition: transform .2s var(--ease), border-color .2s; }
.nt-story-thumb:hover, .nt-story-thumb:focus-visible { transform: translateY(-2px); border-color: rgba(34,211,238,.6); }
.nt-story-thumb canvas { width: 100%; height: 100%; display: block; }
.nt-native { margin-inline-start: auto; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; color: #a7f3d0; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); white-space: nowrap; }
.nt-native.no { color: #fde68a; background: rgba(245,176,65,.08); border-color: rgba(245,176,65,.3); }
.nt-st-rating { display: flex; justify-content: center; gap: 4px; color: #f5b301; font-size: 22px; letter-spacing: 2px; }
.nt-st-labels { display: flex; justify-content: space-between; gap: 8px; color: #666; }
.nt-st-labels small { font-size: 11px; }
.nt-st-add { color: #6d28d9; font-weight: 700; }
.nt-follow { border: 1px dashed var(--line-2); border-radius: 12px; padding: 8px 12px; background: rgba(255,255,255,.015); }
.nt-follow summary { cursor: pointer; font-size: 12.5px; color: var(--ink); }
.nt-follow summary small { color: var(--dim); font-size: 11.5px; }
.nt-follow[open] summary { margin-bottom: 8px; }
.nt-follow-body { display: grid; gap: 10px; }
.nt-story-head { display: grid; gap: 4px; }
.nt-story-head strong { font-family: var(--display); font-size: 16px; }
.nt-frames { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 230px); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; max-width: 100%; }
.nt-frame { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); scroll-snap-align: start; min-width: 0; }
.nt-frame .nt-story-thumb { width: 100%; }
.nt-num-in { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; font-weight: 700; color: #0b0b12; background: linear-gradient(120deg, #22d3ee, #a78bfa); }
.nt-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(4,4,10,.78); backdrop-filter: blur(6px); animation: panelIn .2s var(--ease) both; }
.nt-lightbox-box { display: grid; gap: 10px; justify-items: center; max-height: calc(100vh - 32px); }
.nt-lightbox-box canvas { height: min(78vh, 760px); width: auto; max-width: calc(100vw - 32px); aspect-ratio: 9 / 16; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.nt-lightbox-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.nt-lightbox-bar small { color: var(--muted); font-size: 11.5px; }

/* ---- replies: the paste box, the pre-pass, the policy, the triage cards */
.nt-rp-text { min-height: 150px; }
.nt-rp-prep { display: grid; gap: 8px; }
.nt-rp-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nt-rp-stats strong { font-family: var(--display); font-size: 14px; margin-inline-end: 4px; }
.nt-rp-list summary { cursor: pointer; color: var(--dim); font-size: 12px; }
.nt-rp-list ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.nt-rp-list li { font-size: 12.5px; color: var(--muted); }
.nt-rp-li-text { display: inline; overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); } /* inline: an Arabic item stays beside its number in either interface direction */
.nt-rp-li-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.nt-stars { display: inline-flex; gap: 1px; }
.nt-star { display: inline-grid; place-items: center; min-width: 26px; min-height: 26px; padding: 0 2px; border: 0; background: none; color: #4b4b5a; font-size: 19px; line-height: 1; cursor: pointer; } /* ≥ 24 × 24 px targets (WCAG 2.5.8) */
.nt-star.on { color: #f5b301; }
.nt-star:focus-visible { outline: 2px solid rgba(34,211,238,.6); border-radius: 4px; }
.nt-rp-policy { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: rgba(255,255,255,.02); }
.nt-rp-policy summary { cursor: pointer; font-size: 13px; }
.nt-rp-policy summary small { color: var(--dim); }
.nt-rp-policy-body { display: grid; gap: 10px; padding-top: 10px; }
.nt-rp-policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.nt-rp-policy-grid .nt-field:last-child { grid-column: 1 / -1; }
.nt-rp-overview { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.nt-rp-cats, .nt-rp-attn { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-rp-sentbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.05); }
.nt-rp-sentbar i { display: block; min-width: 4px; }
.s-positive { --sc: #34d399; } .s-neutral { --sc: #94a3b8; } .s-negative { --sc: #f87171; } .s-mixed { --sc: #f5b041; }
.nt-rp-sentbar i { background: var(--sc); }
.nt-rp-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--muted); }
.nt-rp-legend span { display: inline-flex; align-items: center; gap: 6px; }
.nt-rp-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.nt-rp-items { display: grid; gap: 10px; }
.nt-rp { border-inline-start: 3px solid var(--cc, var(--line)); }
.nt-rp.done { opacity: .55; }
.nt-rp.missing { border-style: dashed; }
.nt-rp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nt-rp-num { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.nt-rp-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); color: var(--ink); background: rgba(255,255,255,.04); white-space: nowrap; }
.nt-rp-chip.cat { color: #0b0b12; border-color: transparent; background: var(--rp-praise); }
.nt-rp-chip.cat.question { background: var(--rp-question); } .nt-rp-chip.cat.complaint { background: var(--rp-complaint); } .nt-rp-chip.cat.purchase_intent { background: var(--rp-purchase_intent); } .nt-rp-chip.cat.lead { background: var(--rp-lead); } .nt-rp-chip.cat.spam { background: var(--rp-spam); } .nt-rp-chip.cat.abuse { background: var(--rp-abuse); } .nt-rp-chip.cat.crisis { background: var(--rp-crisis); color: #fff; }
.nt-rp-chip.sent.positive { color: #a7f3d0; } .nt-rp-chip.sent.negative { color: #fecaca; } .nt-rp-chip.sent.mixed { color: #fde68a; }
.nt-rp-chip.prio.urgent { color: #fff; background: #dc2626; border-color: transparent; } .nt-rp-chip.prio.high { color: #fde68a; border-color: rgba(245,176,65,.45); } .nt-rp-chip.prio.low { color: var(--dim); }
.nt-rp-meta { margin-inline-start: auto; color: var(--dim); font-size: 11px; }
.nt-rp-quote { margin: 0; padding: 8px 12px; border-inline-start: 2px solid var(--line-2); color: var(--muted); font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; background: rgba(255,255,255,.02); border-radius: 8px; }
.nt-rp-quote strong { color: var(--ink); }
.nt-rp-edit { display: grid; gap: 4px; }
.nt-rp-edit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nt-chars.over { color: #fca5a5; }
.nt-rp-flags { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 12px; color: #fde68a; }
.nt-rp-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); cursor: pointer; }
.nt-rp-filter { margin-top: 2px; }

/* ---- giveaway: the form extras, the live checklist and schedule, the picker, the results */
.nt-gw-plats .nw-chip[aria-pressed="true"] { color: #fff; border-color: rgba(34,211,238,.7); background: linear-gradient(180deg, rgba(34,211,238,.22), rgba(99,102,241,.14)); box-shadow: 0 0 12px rgba(34,211,238,.18); }
.nt-gw-dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; }
.nt-gw-dates .nt-input { min-height: 42px; }
.nt-gw-age { max-width: 110px; }
.nt-gw-checks { display: grid; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(34,211,238,.22); background: rgba(34,211,238,.04); min-width: 0; }
.nt-gw-checks.done { border-color: var(--line); background: rgba(255,255,255,.02); }
.nt-gw-checks-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; }
.nt-gw-checks-head h3 { margin: 0; font-family: var(--display); font-size: 14px; }
.nt-gw-checks-head small { color: var(--dim); font-size: 11.5px; }
.nt-gw-sched { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 6px; }
.nt-gw-sched li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.nt-gw-sched li > span:last-child { display: grid; min-width: 0; }
.nt-gw-sched strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-gw-sched small { color: var(--dim); font-size: 11px; }
.nt-gw-ico { font-size: 16px; }
.nt-gw-period { margin: 0; }
.nt-gw-check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.nt-gw-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.nt-gw-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0b0b12; background: #34d399; }
.nt-gw-check.warn .nt-gw-mark { background: #f5b041; } .nt-gw-check.info .nt-gw-mark { background: #7dd3fc; font-style: italic; font-family: Georgia, serif; }
.nt-gw-check.warn { color: #fde68a; }
.nt-gw-src { color: #93c5fd; font-size: 11.5px; white-space: nowrap; }
.nt-gw-picker { border: 1px solid rgba(167,139,250,.35); border-radius: 14px; padding: 10px 14px; background: linear-gradient(180deg, rgba(167,139,250,.08), rgba(167,139,250,.02)); }
.nt-gw-picker summary { cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.nt-gw-picker-body { display: grid; gap: 10px; padding-top: 10px; }
.nt-gw-parsed, .nt-gw-commit { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: rgba(10,10,16,.35); }
.nt-gw-parsed summary, .nt-gw-commit summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.nt-gw-parsed-list { margin: 6px 0 0; padding-inline-start: 22px; max-height: 220px; overflow: auto; display: grid; gap: 2px; font-size: 12.5px; overflow-wrap: anywhere; }
.nt-gw-commit-body { display: grid; gap: 8px; padding-top: 8px; }
.nt-gw-removed summary { cursor: pointer; font-weight: 600; }
.nt-gw-removed ul { margin: 6px 0 0; padding-inline-start: 20px; display: grid; gap: 3px; font-size: 12.5px; overflow-wrap: anywhere; }
.nt-ia-checks { display: grid; gap: 4px; }
.nt-gw-result { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(10,10,16,.55); border: 1px solid var(--line-2); }
.nt-gw-winners, .nt-gw-alts { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; }
.nt-gw-winners li { font-family: var(--display); font-size: 18px; font-weight: 700; color: #fde68a; overflow-wrap: anywhere; }
.nt-gw-alts li { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.nt-gw-rec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 4px 0 0; font-size: 12px; }
.nt-gw-rec dt { color: var(--dim); }
.nt-gw-rec dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.nt-gw-rec dd.mono, .nt-gw-rec small.mono { font-family: var(--mono); font-size: 11px; }
.nt-gw-rec small.mono { display: block; color: var(--dim); }
.nt-gw-rec dd, .nt-gw-rec small.mono { text-align: match-parent; } /* an LTR seed lines up with the RTL column */
.nt-gw-sec { display: grid; gap: 10px; min-width: 0; }
.nt-gw-sec h3 { margin: 0; font-family: var(--display); font-size: 15px; }
.nt-gw-sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.nt-gw-mechs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.nt-gw-mech, .nt-gw-post, .nt-rp { align-content: start; }
.nt-gw-mech.rec { border-color: rgba(34,211,238,.55); box-shadow: 0 0 0 1px rgba(34,211,238,.15); }
.nt-gw-fit { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); }
.nt-gw-fit.good { color: #a7f3d0; } .nt-gw-fit.ok { color: #c7d2fe; } .nt-gw-fit.risky { color: #fecaca; background: rgba(239,68,68,.12); }
.nt-gw-recb { margin-inline-start: auto; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; color: #0b0b12; background: linear-gradient(120deg, #22d3ee, #a78bfa); }
.nt-gw-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 4px; font-size: 13.5px; }
.nt-gw-reminders { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.nt-gw-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nt-gw-winhint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nt-gw-winhint .nt-hint { margin: 0; flex: 1 1 180px; }
.nt-gw-date { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; color: #e9d5ff; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.35); white-space: nowrap; }
.nt-gw-rules h4 { margin: 0; font-family: var(--display); font-size: 15px; }
.nt-gw-rules h5 { margin: 6px 0 0; font-size: 13px; color: #8be9fd; }
.nt-gw-rules .nt-text { font-size: 13.5px; }
.nt-gw-rule-body { display: grid; gap: 2px; }
.nt-gw-rule-body .nt-text { text-align: match-parent; } /* each line keeps its own direction, the column keeps the article's alignment */
.nt-gw-story-row { display: flex; gap: 14px; align-items: flex-start; }
.nt-gw-story-c { width: 120px; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; border: 1px solid var(--line-2); flex: none; }
.nt-gw-story-side { display: grid; gap: 8px; min-width: 0; justify-items: start; }

@media (max-width: 900px) {
  .nt-rp-policy-grid { grid-template-columns: minmax(0, 1fr); }
  .nt-rp-meta { margin-inline-start: 0; flex-basis: 100%; }
}
@media (max-width: 480px) {
  .nt-ia-row { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .nt-story-thumb { width: 76px; }
  .nt-frames { grid-auto-columns: minmax(180px, 76vw); }
  .nt-gw-sched { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nt-gw-winners li { font-size: 16px; }
  .nt-gw-story-c { width: 96px; }
}
[dir="rtl"] .nt-rp-num, [dir="rtl"] .nt-pill { font-family: var(--arabic); }
@media (prefers-reduced-motion: reduce) { .nt-lightbox { animation: none !important; } .nt-story-thumb:hover { transform: none; } }
