/* Lenci · Nawaa (نواة) — marketing-campaign module. Builds on studio.css tokens (canvas, panels, energy gradient, glass).
   Nawaa's own accent is the cyan → violet end of the energy gradient. Layout: wizard (rail · stage · brand card) → generating → board. */
:root {
  --nw: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
  --nw-h: linear-gradient(90deg, #22d3ee 0%, #6366f1 55%, #8b5cf6 100%);
  --nw-ink: #cdeefc; --nw-glow: rgba(34,211,238,.35); --nw-glow-2: rgba(99,102,241,.4);
  --p-instagram: #e1306c; --p-tiktok: #5ee7ef; --p-snapchat: #fffc00; --p-x: #e7e9ea; --p-linkedin: #0a66c2; --p-youtube: #ff3b30;
}
html, body { height: auto; min-height: 100%; }
body { overflow: auto; overflow-x: hidden; background: radial-gradient(1200px 700px at 90% -10%, rgba(34,211,238,.1), transparent 60%), radial-gradient(900px 600px at -10% 100%, rgba(139,92,246,.14), transparent 60%), var(--canvas); }
.nawaa-app { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); min-height: 100vh; height: auto; }
.nw-main { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.ghost.danger:hover { border-color: #ef4444; color: #fca5a5; }
a.ghost { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------------- top bar */
.nw-brand { text-decoration: none; color: inherit; }
.nw-sep { color: var(--dim); font-size: 18px; line-height: 1; margin-top: -2px; }
.nw-wordmark { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; line-height: 1; background: var(--nw-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-pro { color: #bfefff; border-color: rgba(34,211,238,.5); background: linear-gradient(180deg, rgba(34,211,238,.16), rgba(99,102,241,.08)); }
.nw-back::before { content: ""; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-inline-end: 2px; flex: none; }
[dir="rtl"] .nw-back::before { transform: rotate(-135deg); }
.nw-toast { position: fixed; bottom: 18px; left: 50%; z-index: 90; display: none; }
.nw-toast.toast { display: block; }

/* ------------------------------------------------------------------ wizard */
.nw-wizard { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "rail rail" "stage brand" "more more"; gap: 18px 22px; padding: 18px 22px 40px; max-width: 1360px; margin: 0 auto; animation: bootUp .5s var(--ease) both; }
.nw-rail { grid-area: rail; }
.nw-stage { grid-area: stage; min-width: 0; }
.nw-brandcard { grid-area: brand; }
.nw-sections { grid-area: more; min-width: 0; }
/* step 1: the hero runs edge to edge; rail and sections keep the 1360 px measure */
.nw-wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 22px; }
.nw-wizard[data-step="0"] { max-width: none; padding: 0 0 40px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "stage" "more"; gap: 0; }
.nw-wizard[data-step="0"] .nw-brandcard { display: none; }
.nw-wizard[data-step="0"] .nw-rail { width: 100%; max-width: 1360px; margin: 0 auto 14px; padding: 18px 22px 0; }
.nw-wizard[data-step="0"] .nw-rail::before { left: calc(10% + 22px); right: calc(10% + 22px); }
.nw-wizard[data-step="0"] .nw-rail::after { inset-inline-start: calc(10% + 22px); }
.nw-wizard[data-step="0"] .nw-sections { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 22px; }
.nw-wizard[data-step="0"] .nw-step { border-radius: 0; border-inline: 0; box-shadow: none; }

/* progress rail */
.nw-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 4px 0 0; }
.nw-rail::before { content: ""; position: absolute; top: 15px; left: 10%; right: 10%; height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; }
.nw-rail::after { content: ""; position: absolute; top: 15px; inset-inline-start: 10%; width: calc(var(--fill, 0) * 80%); height: 2px; background: var(--nw-h); border-radius: 2px; box-shadow: 0 0 10px var(--nw-glow); transition: width .6s var(--ease); }
.nw-rail-step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: transparent; color: var(--dim); font-family: var(--display); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: color var(--t); }
[dir="rtl"] .nw-rail-step { letter-spacing: 0; text-transform: none; font-size: 12px; }
.nw-rail-step i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); background: var(--panel-2); display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--muted); transition: all .35s var(--ease); }
.nw-rail-step[aria-current="step"] { color: var(--nw-ink); }
.nw-rail-step[aria-current="step"] i { border-color: transparent; background: var(--nw); color: #fff; box-shadow: 0 0 0 4px rgba(34,211,238,.18), 0 0 18px var(--nw-glow); transform: scale(1.12); }
.nw-rail-step.done i { border-color: rgba(34,211,238,.6); color: #67e8f9; }
.nw-rail-step.done i::before { content: "✓"; font-size: 11px; }
.nw-rail-step.done { color: var(--muted); }
.nw-rail-step[disabled] { cursor: default; }
.nw-rail-step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* step panel */
.nw-step { position: relative; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(23,23,35,.88), rgba(14,14,22,.92)); box-shadow: var(--edge), 0 30px 80px rgba(0,0,0,.45); overflow: hidden; animation: stepIn .45s var(--ease) both; isolation: isolate; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px) scale(.995); } to { opacity: 1; transform: none; } }
.nw-step .vf i { opacity: .55; }
.nw-step-body { padding: 26px 28px 20px; }
.nw-kicker { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8be9fd; }
.nw-kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--nw); box-shadow: 0 0 8px #22d3ee; animation: pulse 1.8s infinite; }
[dir="rtl"] .nw-kicker { letter-spacing: 0; font-family: var(--arabic); font-size: 12px; }
.nw-step h1, .nw-step h2.nw-h { margin: 10px 0 6px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.nw-step .nw-lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; max-width: 60ch; }
.nw-step-foot { display: flex; align-items: center; gap: 10px; padding: 14px 28px 20px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); }
.nw-step-foot .spacer { flex: 1; }
.nw-step-foot .nw-count { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.nw-link { border: 0; background: none; color: #8be9fd; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; padding: 4px 2px; cursor: pointer; }
.nw-link:hover { color: #fff; }
.nw-next { border-radius: 999px; padding: 10px 22px; }
.nw-next[disabled] { opacity: .5; }

/* ------------------------------------------------------------ step 1 hero */
.nw-hero { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 32px 30px; background: linear-gradient(135deg, #0b1b2a, #1b1240 60%, #0a0a0f); isolation: isolate; }
.nw-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .85; transform: scale(1.02); transition: opacity .8s; animation: heroDrift 24s ease-in-out infinite alternate; }
.nw-hero-img[hidden] { display: none; }
@keyframes heroDrift { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.08) translate(-1.5%, 1%); } }
.nw-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,15,.25), rgba(10,10,15,.55) 45%, rgba(10,10,15,.94) 100%), radial-gradient(60% 50% at 80% 20%, rgba(34,211,238,.25), transparent 70%); }
.nw-hero h1 { font-size: clamp(26px, 3.4vw, 40px); max-width: 20ch; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.nw-hero .nw-lead { color: #d6d6e6; text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.nw-source { display: flex; align-items: stretch; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10,10,15,.72); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); max-width: 680px; position: relative; }
.nw-source:focus-within { border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 4px rgba(34,211,238,.14), 0 20px 50px rgba(0,0,0,.45); }
.nw-source input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 16px; padding: 10px 16px; font-family: var(--latin); direction: ltr; text-align: start; }
[dir="rtl"] .nw-source input { text-align: right; }
.nw-source input::placeholder { color: rgba(255,255,255,.42); }
.nw-source input:focus { outline: none; }
.nw-mic { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #cdeefc; display: grid; place-items: center; transition: all var(--t); position: relative; }
.nw-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nw-mic:hover { background: rgba(34,211,238,.18); border-color: rgba(34,211,238,.6); }
.nw-mic.listening { background: var(--nw); color: #fff; border-color: transparent; }
.nw-mic.listening::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(34,211,238,.7); animation: micRing 1.1s ease-out infinite; }
@keyframes micRing { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.nw-go { border-radius: 999px; padding: 0 22px; letter-spacing: .08em; }
.nw-src-alt { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.nw-src-alt .nw-platforms-hint { display: inline-flex; gap: 6px; align-items: center; }
.nw-src-alt .nw-platforms-hint i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.nw-recent { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nw-recent .nw-chip { background: rgba(10,10,15,.6); }

/* reading state */
.nw-reading { position: relative; min-height: 420px; display: grid; place-items: center; text-align: center; padding: 40px 28px; isolation: isolate; overflow: hidden; }
.nw-reading .nw-hero-img { opacity: .55; filter: saturate(1.2); }
.nw-reading::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 60%, rgba(10,10,15,.2), rgba(10,10,15,.92) 80%); }
.nw-scan { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, #22d3ee, #8b5cf6, transparent); box-shadow: 0 0 20px #22d3ee; animation: scan 2.4s var(--ease) infinite; z-index: 0; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.nw-reading h2 { margin: 12px 0 4px; font-family: var(--display); font-size: 26px; }
.nw-reading-lines { list-style: none; margin: 18px auto 0; padding: 0; display: grid; gap: 8px; max-width: 360px; width: 100%; text-align: start; }
.nw-reading-lines li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(10,10,15,.6); border: 1px solid var(--line); font-size: 13px; color: var(--muted); opacity: .35; transform: translateY(4px); transition: all .4s var(--ease); }
.nw-reading-lines li.on { opacity: 1; transform: none; color: var(--ink); border-color: rgba(34,211,238,.35); }
.nw-reading-lines li.ok { color: #a7f3d0; }
.nw-reading-lines li i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; }
.nw-reading-lines li.on i { background: var(--nw); box-shadow: 0 0 10px #22d3ee; animation: pulse 1s infinite; }
.nw-reading-lines li.ok i { background: #34d399; box-shadow: 0 0 10px #34d399; animation: none; }

/* ------------------------------------------------------- card grids (2–5) */
.nw-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nw-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nw-grid.products { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.nw-card { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel-3); text-align: start; isolation: isolate; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: border-color var(--t), transform .25s var(--ease), box-shadow .25s; }
.nw-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #151522; transition: transform .6s var(--ease); }
.nw-card .nw-fallback { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--fb, linear-gradient(135deg, #22d3ee, #8b5cf6)); position: relative; }
.nw-card .nw-fallback::after { content: attr(data-glyph); position: absolute; inset: 0; display: grid; place-items: center; font-size: 42px; font-family: var(--display); font-weight: 700; color: rgba(255,255,255,.85); text-shadow: 0 4px 20px rgba(0,0,0,.4); }
.nw-card .nw-card-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 34px 12px 11px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .01em; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: linear-gradient(transparent, rgba(8,8,14,.95) 75%); display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.nw-card .nw-card-label small { font-family: var(--latin); font-weight: 500; font-size: 11px; color: #c8c8dc; display: block; margin-top: 2px; }
.nw-card:hover { border-color: rgba(255,255,255,.22); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 14px 30px rgba(0,0,0,.45); }
.nw-card:hover img { transform: scale(1.05); }
.nw-card:active { transform: translateY(0) scale(.985); }
.nw-card[aria-pressed="true"] { border-color: transparent; box-shadow: 0 0 0 1px rgba(99,102,241,.3), 0 0 26px var(--nw-glow-2), 0 10px 24px rgba(0,0,0,.35); }
.nw-card[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 2px; background: var(--nw); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.nw-card .nw-check { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--nw); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; opacity: 0; transform: scale(.6); transition: all .25s var(--ease); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.nw-card[aria-pressed="true"] .nw-check { opacity: 1; transform: scale(1); }
.nw-badge { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 2; padding: 4px 9px; border-radius: 999px; background: linear-gradient(135deg, #f5b041, #fb7185); color: #1a0d05; font-family: var(--display); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; box-shadow: 0 4px 14px rgba(245,176,65,.4); display: inline-flex; align-items: center; gap: 5px; }
[dir="rtl"] .nw-badge { letter-spacing: 0; text-transform: none; font-size: 11px; }
.nw-badge::before { content: "✦"; }
.nw-card.platform img, .nw-card.platform .nw-fallback { aspect-ratio: 16 / 10; }
.nw-card.platform .nw-plat-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-bottom: 4px; box-shadow: 0 0 10px currentColor; }
.nw-card.product img, .nw-card.product .nw-fallback { aspect-ratio: 1; }
.nw-card.product .nw-card-label { font-size: 11.5px; padding-top: 26px; }
.nw-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--dim); border: 1px dashed rgba(255,255,255,.12); border-radius: 14px; }
.nw-group-title { margin: 20px 0 10px; font-family: var(--display); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
[dir="rtl"] .nw-group-title { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.nw-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nw-group-title:first-child { margin-top: 0; }

/* chips (step 3) */
.nw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-chip { font-family: var(--display); font-weight: 600; font-size: 12.5px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s var(--ease); white-space: nowrap; }
.nw-chip:hover { color: var(--ink); border-color: rgba(255,255,255,.3); transform: translateY(-1px); }
.nw-chip:active { transform: scale(.97); }
.nw-chip[aria-pressed="true"] { background: var(--nw); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px rgba(34,211,238,.3), 0 4px 16px var(--nw-glow-2); }
.nw-chip[aria-pressed="true"]::before { content: "✓"; font-size: 11px; }
.nw-chip .nw-ico { font-size: 14px; }
.nw-chip.jev { border-style: dashed; }
.nw-chip.jev::after { content: "✦"; color: #f5b041; font-size: 10px; }
.nw-chip.jev[aria-pressed="true"]::after { color: #fff; }
.nw-chip.small { font-size: 11px; padding: 5px 10px; }

/* ----------------------------------------------------------- brand card */
.nw-brandcard { align-self: stretch; }
.nw-brandcard .nw-bc { position: sticky; top: 16px; } /* sticky inside the column box: a sticky grid item would follow the whole grid, i.e. the sections below */
.nw-bc { border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(180deg, rgba(23,23,35,.92), rgba(14,14,22,.95)); box-shadow: var(--edge), 0 30px 70px rgba(0,0,0,.45); overflow: hidden; animation: bootIn .5s var(--ease) .1s both; }
[dir="rtl"] .nw-bc { animation-name: bootInRtl; }
.nw-bc-band { height: 6px; background: var(--bc-band, var(--nw)); }
.nw-bc-body { padding: 16px 16px 14px; display: grid; gap: 12px; }
.nw-bc-head { display: flex; gap: 12px; align-items: center; }
.nw-bc-logo { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--bc-logo, var(--nw)); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.4); }
.nw-bc-logo img { width: 100%; height: 100%; object-fit: cover; }
.nw-bc-title { min-width: 0; flex: 1; }
.nw-bc-kicker { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; align-items: center; gap: 6px; }
[dir="rtl"] .nw-bc-kicker { letter-spacing: 0; font-family: var(--arabic); font-size: 11px; }
.nw-bc-kicker .nw-live { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; animation: pulse 1.6s infinite; }
.nw-edit { border-radius: 6px; padding: 2px 4px; margin: -2px -4px; outline: none; transition: background var(--t), box-shadow var(--t); cursor: text; min-height: 1.2em; }
.nw-edit:hover { background: rgba(255,255,255,.05); }
.nw-edit:focus { background: rgba(34,211,238,.08); box-shadow: 0 0 0 1px rgba(34,211,238,.5); }
.nw-edit:empty::before { content: attr(data-placeholder); color: var(--dim); }
.nw-bc-name { font-family: var(--display); font-weight: 700; font-size: 17px; line-height: 1.2; }
.nw-bc-tag { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.nw-bc-desc { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.nw-bc-colors { display: flex; gap: 6px; align-items: center; }
.nw-swatch { width: 24px; height: 24px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); cursor: pointer; position: relative; padding: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); transition: transform .2s var(--ease); }
.nw-swatch:hover { transform: translateY(-2px) scale(1.06); }
.nw-swatch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.nw-swatch.add { background: transparent; border-style: dashed; color: var(--dim); font-size: 14px; display: grid; place-items: center; }
.nw-bc-row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; align-items: start; font-size: 12px; }
.nw-bc-row > span:first-child { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding-top: 3px; }
[dir="rtl"] .nw-bc-row > span:first-child { letter-spacing: 0; font-family: var(--arabic); font-size: 11px; }
.nw-bc-row .nw-chips { gap: 4px; }
.nw-bc-row .nw-chip { font-size: 10.5px; padding: 3px 8px; cursor: default; }
.nw-bc-row .nw-chip:hover { transform: none; }
.nw-bc-row .nw-value { color: var(--ink); }
.nw-bc-empty { color: var(--dim); font-size: 12px; }
.nw-bc-foot { display: flex; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); font-family: var(--mono); }
.nw-bc-foot a { color: #8be9fd; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; direction: ltr; }
.nw-skel { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.12), rgba(255,255,255,.05)); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------- generating */
.nw-generating { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 30px 20px; }
.nw-gen-inner { width: min(100%, 640px); text-align: center; animation: stepIn .5s var(--ease) both; }
.nw-gen-orb { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.nw-gen-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: #22d3ee; border-right-color: #8b5cf6; animation: spin 2.4s linear infinite; }
.nw-gen-orb i:nth-child(2) { inset: 14px; border-top-color: #d946ef; border-right-color: #22d3ee; animation-duration: 1.7s; animation-direction: reverse; }
.nw-gen-orb i:nth-child(3) { inset: 30px; background: var(--nw); border: 0; box-shadow: 0 0 40px var(--nw-glow), 0 0 80px var(--nw-glow-2); animation: heroPulse 2s ease-in-out infinite; }
.nw-generating h2 { margin: 0; font-family: var(--display); font-size: clamp(22px, 3vw, 30px); }
.nw-decisions { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.nw-decisions li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(18,18,26,.8); animation: stepIn .4s var(--ease) both; }
.nw-decisions li .nw-d-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: #8be9fd; font-size: 13px; }
.nw-decisions li.done .nw-d-ico { background: var(--nw); color: #fff; }
.nw-decisions li .nw-d-label { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .nw-decisions li .nw-d-label { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-decisions li .nw-d-text { font-size: 14px; color: var(--ink); margin-top: 3px; min-height: 1.3em; }
.nw-decisions li .nw-d-text .caret { display: inline-block; width: 2px; height: 1em; background: #22d3ee; vertical-align: -2px; margin-inline-start: 2px; animation: pulse .8s infinite; }
.nw-decisions li.done .nw-d-text .caret { display: none; }
.nw-mix { display: flex; gap: 4px; margin-top: 8px; height: 8px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); }
.nw-mix i { display: block; height: 100%; transition: width .8s var(--ease); }
.nw-gen-bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 22px; overflow: hidden; }
.nw-gen-bar i { display: block; height: 100%; width: 0; background: var(--nw-h); box-shadow: 0 0 12px #22d3ee; transition: width .8s var(--ease); }

/* -------------------------------------------------------------- board */
.nw-board { padding: 16px 22px 40px; max-width: 1500px; margin: 0 auto; animation: bootUp .5s var(--ease) both; }
.nw-board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.nw-board-title-wrap { min-width: 0; flex: 1 1 320px; }
.nw-board-title { margin: 4px 0 8px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.15; border-radius: 8px; padding: 2px 6px; margin-inline-start: -6px; outline: none; cursor: text; transition: background var(--t), box-shadow var(--t); }
.nw-board-title:hover { background: rgba(255,255,255,.04); }
.nw-board-title:focus { background: rgba(34,211,238,.08); box-shadow: 0 0 0 1px rgba(34,211,238,.5); }
.nw-pillars { display: flex; gap: 6px; flex-wrap: wrap; }
.nw-pillar { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 11.5px; color: var(--ink); }
.nw-pillar i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex: none; }
.nw-board-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nw-switcher select { font-family: var(--display); font-weight: 600; font-size: 11.5px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line-2); color: var(--muted); padding: 7px 12px; border-radius: 9px; max-width: 220px; }
.nw-new { border-radius: 999px; padding: 9px 18px; }
.nw-plan { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; animation: panelIn .3s var(--ease) both; }
.nw-plan-card { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); }
.nw-plan-card h3 { margin: 0 0 8px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .nw-plan-card h3 { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-plan-card .nw-mix { height: 10px; margin: 0 0 8px; }
.nw-plan-rows { display: grid; gap: 4px; font-size: 12.5px; }
.nw-plan-rows div { display: flex; justify-content: space-between; gap: 10px; }
.nw-plan-rows b { font-family: var(--mono); font-weight: 500; color: var(--ink); }
.nw-plan-card ul { margin: 0; padding-inline-start: 16px; font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.nw-board-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 18px; align-items: start; }
.nw-cal { min-width: 0; }
.nw-cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.nw-cal-month { margin: 0; font-family: var(--display); font-size: 18px; }
.nw-cal-month small { display: inline-block; unicode-bidi: isolate; color: var(--dim); font-weight: 500; font-size: 12px; margin-inline-start: 10px; font-family: var(--mono); }
.nw-cal-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.nw-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nw-cal-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.nw-cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 6px; }
.nw-cal-weekdays span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 8px; }
[dir="rtl"] .nw-cal-weekdays span { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.nw-day { position: relative; min-width: 0; min-height: 118px; padding: 8px; border-radius: 14px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,23,35,.6), rgba(14,14,22,.7)); display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.nw-day.outside { opacity: .45; }
.nw-day.outside .nw-post { opacity: 1; }
.nw-day.today { border-color: rgba(34,211,238,.5); box-shadow: inset 0 0 0 1px rgba(34,211,238,.25); }
.nw-day.today .nw-day-num { color: #8be9fd; }
.nw-day.over { border-color: rgba(34,211,238,.9); background: rgba(34,211,238,.1); box-shadow: 0 0 0 3px rgba(34,211,238,.18), 0 0 24px var(--nw-glow); }
.nw-day.past { background: rgba(14,14,22,.4); }
.nw-day-num { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.nw-day-num small { font-size: 9px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.nw-post { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 7px 8px 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); text-align: start; cursor: grab; color: var(--ink); width: 100%; transition: transform .2s var(--ease), box-shadow .2s, border-color var(--t); overflow: hidden; }
.nw-post::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 3px; background: var(--pc); box-shadow: 0 0 10px var(--pc); }
.nw-post:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--pc) 35%, transparent); }
.nw-post:active { cursor: grabbing; }
.nw-post.dragging { opacity: .4; transform: scale(.96); }
.nw-post.selected { border-color: transparent; box-shadow: 0 0 0 1.5px #22d3ee, 0 0 18px var(--nw-glow); }
.nw-post-top { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); min-width: 0; }
.nw-post-top .nw-plat { color: var(--pc); font-weight: 600; letter-spacing: 0; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
.nw-post-top .nw-time { flex: none; }
.nw-post-top .nw-time { margin-inline-start: auto; }
.nw-type { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; color: var(--muted); }
.nw-post-cap { overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-post-media { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.nw-post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; display: block; border: 1px solid var(--line); }
.nw-post-cta { font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .04em; color: #8be9fd; border: 1px dashed rgba(34,211,238,.4); border-radius: 999px; padding: 3px 8px; display: inline-flex; align-items: center; gap: 4px; }
.nw-post-cta::before { content: "✦"; font-size: 9px; }
.nw-status { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex: none; }
.nw-status.scheduled { background: #f5b041; box-shadow: 0 0 6px #f5b041; }
.nw-status.posted { background: #34d399; box-shadow: 0 0 6px #34d399; }
.nw-post-more { position: absolute; top: 4px; inset-inline-end: 4px; width: 22px; height: 22px; border-radius: 6px; border: 0; background: rgba(10,10,15,.6); color: var(--muted); font-size: 12px; display: none; place-items: center; }
.nw-daylist { display: none; }

/* day list (mobile) */
.nw-daylist .nw-dl-day { margin-bottom: 14px; }
.nw-daylist .nw-dl-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; font-family: var(--display); font-size: 13px; }
.nw-daylist .nw-dl-head small { font-family: var(--mono); color: var(--dim); font-size: 10.5px; }
.nw-daylist .nw-dl-head.today { color: #8be9fd; }
.nw-daylist .nw-post { cursor: pointer; }
.nw-daylist .nw-post-more { display: grid; top: 6px; }
.nw-daylist .nw-post { padding-inline-end: 34px; }

/* this week rail */
.nw-week { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(23,23,35,.88), rgba(14,14,22,.92)); box-shadow: var(--edge); overflow: hidden; }
.nw-week-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-family: var(--display); }
.nw-week-list { list-style: none; margin: 0; padding: 8px; display: grid; gap: 6px; max-height: calc(100vh - 150px); overflow: auto; }
.nw-week-item { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: start; color: var(--ink); cursor: pointer; width: 100%; transition: background var(--t), border-color var(--t); }
.nw-week-item:hover { background: rgba(255,255,255,.04); border-color: var(--line); }
.nw-week-date { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.04); font-family: var(--mono); font-size: 10px; color: var(--muted); padding: 4px 0; }
.nw-week-date b { font-size: 16px; color: var(--ink); font-weight: 600; }
.nw-week-body { min-width: 0; }
.nw-week-body .nw-post-top { margin-bottom: 2px; }
.nw-week-body .nw-post-cap { -webkit-line-clamp: 2; }
.nw-week-empty { padding: 20px 14px; color: var(--dim); font-size: 12.5px; text-align: center; }

/* ------------------------------------------------------------- drawer */
.nw-drawer-back { position: fixed; inset: 0; z-index: 60; background: rgba(10,10,15,.5); backdrop-filter: blur(3px); animation: fadeIn .25s both; }
.nw-drawer { position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(100%, 440px); z-index: 61; background: linear-gradient(180deg, #15151f, #0f0f17); border-inline-start: 1px solid rgba(255,255,255,.1); box-shadow: -30px 0 80px rgba(0,0,0,.6); display: flex; flex-direction: column; animation: drawerIn .35s var(--ease) both; }
[dir="rtl"] .nw-drawer { animation-name: drawerInRtl; box-shadow: 30px 0 80px rgba(0,0,0,.6); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawerInRtl { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
.nw-dr-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; position: relative; }
.nw-dr-head::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--pc); box-shadow: 0 0 14px var(--pc); }
.nw-dr-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 18px; }
.nw-dr-meta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--muted); flex-wrap: wrap; padding-inline-end: 36px; }
.nw-dr-meta .nw-plat { color: var(--pc); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.nw-dr-meta .nw-type { color: var(--muted); }
.nw-dr-meta input[type="time"] { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--ink); font-family: var(--mono); font-size: 11px; }
.nw-dr-title { margin: 0; font-family: var(--display); font-size: 17px; line-height: 1.25; padding-inline-end: 30px; }
.nw-dr-status { display: flex; gap: 6px; }
.nw-dr-body { flex: 1; overflow: auto; padding: 14px 18px 20px; display: grid; gap: 16px; align-content: start; }
.nw-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.nw-tab { border: 0; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 11.5px; padding: 6px 14px; border-radius: 999px; transition: all var(--t); }
.nw-tab[aria-selected="true"] { background: var(--nw); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.nw-field { display: grid; gap: 6px; }
.nw-field > span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; align-items: center; }
[dir="rtl"] .nw-field > span { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-field textarea { width: 100%; min-height: 120px; resize: vertical; background: var(--canvas); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; color: var(--ink); font-size: 13.5px; line-height: 1.5; transition: border-color var(--t), box-shadow var(--t); }
.nw-field textarea:focus { outline: none; border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 3px rgba(34,211,238,.14); }
.nw-field textarea[lang="ar"] { direction: rtl; font-family: var(--arabic), var(--latin); font-size: 14.5px; }
.nw-field textarea[lang="en"] { direction: ltr; }
.nw-saving { font-size: 10px; color: #8be9fd; text-transform: none; letter-spacing: 0; font-family: var(--latin); }
.nw-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nw-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px 4px 10px; border-radius: 999px; background: rgba(99,102,241,.14); border: 1px solid rgba(99,102,241,.35); color: #c7d2fe; font-size: 12px; font-family: var(--mono); direction: ltr; }
.nw-tag button { border: 0; background: transparent; color: inherit; font-size: 13px; padding: 0 2px; line-height: 1; opacity: .7; }
.nw-tag button:hover { opacity: 1; }
.nw-tag-add { border: 1px dashed var(--line-2); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 10px; font-size: 12px; min-width: 90px; direction: ltr; }
.nw-tag-add:focus { outline: none; border-color: rgba(34,211,238,.6); }
.nw-cta-line { display: flex; align-items: center; gap: 8px; }
.nw-cta-line .nw-edit { flex: 1; font-size: 13.5px; color: var(--ink); }
.nw-brief { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.12); }
.nw-visual { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.nw-visual img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.nw-visual-empty { aspect-ratio: 16 / 9; display: grid; place-items: center; gap: 8px; padding: 18px; text-align: center; color: var(--muted); font-size: 12.5px; background: radial-gradient(60% 80% at 50% 30%, rgba(34,211,238,.1), transparent); }
.nw-visual-empty .vf i { opacity: .5; }
.nw-visual-prog { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,15,.7); backdrop-filter: blur(6px); color: var(--ink); font-size: 13px; text-align: center; padding: 20px; }
.nw-visual-prog .nw-gen-orb { width: 56px; height: 56px; margin-bottom: 10px; }
.nw-visual-prog .nw-gen-orb i:nth-child(2) { inset: 9px; } .nw-visual-prog .nw-gen-orb i:nth-child(3) { inset: 19px; }
.nw-visual-prog .nw-mono { font-family: var(--mono); color: #8be9fd; font-size: 11px; margin-top: 4px; }
.nw-dr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nw-dr-actions .ghost { border-radius: 999px; }
.nw-dr-actions .primary { border-radius: 999px; padding: 8px 16px; font-size: 11.5px; }
.nw-menu { position: relative; }
.nw-pop { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 5; min-width: 200px; background: rgba(17,17,26,.98); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 6px; display: grid; gap: 2px; animation: panelIn .2s var(--ease) both; }
.nw-pop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: start; padding: 9px 10px; border: 0; background: transparent; color: var(--ink); border-radius: 8px; font-size: 13px; }
.nw-pop button:hover { background: rgba(34,211,238,.12); }
.nw-pop button small { color: var(--dim); font-family: var(--mono); font-size: 10.5px; }
.nw-pop .nw-pop-title { padding: 6px 10px 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.nw-lib-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-height: 300px; overflow: auto; padding: 4px; }
.nw-lib-pick button { padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #0a0a0f; cursor: pointer; transition: transform .2s var(--ease), border-color var(--t); }
.nw-lib-pick button:hover { transform: translateY(-2px); border-color: rgba(34,211,238,.6); }
.nw-lib-pick img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.nw-dr-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nw-dr-foot .spacer { flex: 1; }
.nw-dr-foot .nw-credit { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.nw-move-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.nw-move-grid button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--ink); font-family: var(--mono); font-size: 12px; display: grid; place-items: center; gap: 0; transition: all .2s var(--ease); }
.nw-move-grid button small { font-size: 8.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.nw-move-grid button:hover { border-color: rgba(34,211,238,.6); transform: translateY(-2px); }
.nw-move-grid button.current { background: var(--nw); color: #fff; border-color: transparent; }
.nw-move-grid button.has { box-shadow: inset 0 -3px 0 var(--pc, rgba(255,255,255,.2)); }

/* --------------------------------------------------------- credits note */
.nw-credit-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
.nw-credit-note b { color: #f5b041; font-weight: 600; }
.nw-notice { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(245,176,65,.4); background: rgba(245,176,65,.08); color: #fde6b8; font-size: 12.5px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nw-wizard { grid-template-columns: minmax(0, 1fr) 260px; }
  .nw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-grid.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nw-board-body { grid-template-columns: minmax(0, 1fr) 260px; }
  .nw-day { min-height: 100px; }
  .nw-post-cap { -webkit-line-clamp: 1; }
}
@media (max-width: 900px) {
  .top { flex-wrap: wrap; gap: 8px 12px; }
  .top-actions { margin-inline-start: 0; }
  .nw-wizard { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "brand" "stage" "more"; padding: 12px 16px 32px; gap: 14px; }
  .nw-wizard[data-step="0"] { padding: 0 0 32px; gap: 0; }
  .nw-wizard[data-step="0"] .nw-rail { padding: 12px 16px 0; margin-bottom: 10px; }
  .nw-wizard[data-step="0"] .nw-rail::before { left: calc(10% + 16px); right: calc(10% + 16px); }
  .nw-wizard[data-step="0"] .nw-rail::after { inset-inline-start: calc(10% + 16px); }
  .nw-wizard[data-step="0"] .nw-sections, .nw-wrap { padding-inline: 16px; }
  .nw-brandcard { position: static; }
  .nw-brandcard .nw-bc { position: static; }
  .nw-bc-body { gap: 10px; }
  .nw-bc-desc, .nw-bc-row:nth-of-type(n+3) { display: none; }
  .nw-rail-step span { font-size: 9px; }
  .nw-step-body { padding: 18px 16px 14px; }
  .nw-step-foot { padding: 12px 16px 16px; flex-wrap: wrap; }
  .nw-hero { padding: 28px 18px 22px; min-height: 380px; }
  .nw-source { flex-wrap: nowrap; }
  .nw-source input { font-size: 15px; padding: 10px 10px; }
  .nw-go { padding: 0 14px; }
  .nw-grid, .nw-grid.six, .nw-grid.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nw-card .nw-card-label { font-size: 12px; }
  .nw-board { padding: 12px 16px 32px; }
  .nw-board-top { align-items: stretch; flex-direction: column; gap: 12px; }
  .nw-board-title-wrap { flex: none; }
  .nw-board-actions .ghost, .nw-switcher select { font-size: 11px; padding: 7px 10px; }
  .nw-board-body { grid-template-columns: minmax(0, 1fr); }
  .nw-cal-weekdays, .nw-cal-grid { display: none; }
  .nw-daylist { display: block; }
  .nw-week { position: static; }
  .nw-week-list { max-height: none; }
  .nw-drawer { top: auto; height: 92vh; width: 100%; border-inline-start: 0; border-top: 1px solid rgba(255,255,255,.12); border-radius: 20px 20px 0 0; animation-name: sheetIn; }
  [dir="rtl"] .nw-drawer { animation-name: sheetIn; }
  .nw-move-grid button { font-size: 11px; }
}
/* 901–1180 px: the month grid takes the whole width, "This week" drops under it (side by side the day cells shrank to one-word captions) */
@media (max-width: 1180px) and (min-width: 901px) {
  .nw-board-body { grid-template-columns: minmax(0, 1fr); }
  .nw-week { position: static; }
  .nw-post-cap { -webkit-line-clamp: 2; }
}
@keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 480px) {
  .nw-pro, .nw-back span, .nw-connections span, .nw-memory span { display: none; }
  .nw-back, .nw-connections, .nw-memory { padding: 7px 9px; }
  .top-actions { gap: 6px; }
  .nw-hero h1 { font-size: 24px; }
  .nw-mic { width: 42px; height: 42px; }
  .nw-go { font-size: 11px; padding: 0 12px; letter-spacing: .04em; }
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .nw-wizard, .nw-step, .nw-bc, .nw-board, .nw-gen-inner, .nw-decisions li, .nw-drawer, .nw-drawer-back, .nw-hero-img, .nw-scan, .nw-kicker::before, .nw-gen-orb i, .nw-mic.listening::after, .nw-reading-lines li.on i, .nw-bc-kicker .nw-live, .nw-decisions li .nw-d-text .caret, .nw-skel, .nw-pop, .nw-plan { animation: none !important; }
  .nw-card, .nw-chip, .nw-post, .nw-rail::after, .nw-rail-step i, .nw-swatch, .nw-mix i, .nw-gen-bar i, .nw-card img, .nw-week-item, .nw-move-grid button { transition: none !important; }
  .nw-card:hover, .nw-chip:hover, .nw-post:hover, .nw-swatch:hover, .nw-move-grid button:hover { transform: none; }
  .nw-card:hover img { transform: none; }
  .nw-scan { display: none; }
}

/* ------------------------------------------------------------ engines (Step 5) */
.nw-engines-wrap { margin-bottom: 18px; }
.nw-engines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nw-engine { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 16px 16px 14px; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); color: var(--ink); text-align: start; cursor: pointer; isolation: isolate; overflow: hidden; transition: border-color var(--t), transform .25s var(--ease), box-shadow .25s var(--ease), background var(--t); }
.nw-engine::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s var(--ease); background: radial-gradient(120% 90% at 0% 0%, rgba(139,92,246,.22), transparent 60%); }
.nw-engine.openclaw::before { background: radial-gradient(120% 90% at 0% 0%, rgba(34,211,238,.2), transparent 60%), radial-gradient(80% 60% at 100% 100%, rgba(245,176,65,.14), transparent 60%); }
.nw-engine:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.26); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.nw-engine[aria-checked="true"] { border-color: transparent; box-shadow: 0 0 0 1.5px #22d3ee, 0 0 24px var(--nw-glow), 0 16px 40px rgba(0,0,0,.4); }
.nw-engine[aria-checked="true"]::before { opacity: 1; }
.nw-engine .nw-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--nw); color: #fff; font-size: 12px; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .25s var(--ease); box-shadow: 0 0 14px var(--nw-glow); }
.nw-engine[aria-checked="true"] .nw-check { opacity: 1; transform: none; }
.nw-engine-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(217,70,239,.2)); color: #e8dfff; border: 1px solid rgba(255,255,255,.1); }
.nw-engine.openclaw .nw-engine-ico { background: linear-gradient(135deg, rgba(34,211,238,.3), rgba(245,176,65,.2)); color: #bfefff; }
.nw-engine-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nw-engine-text { display: grid; gap: 3px; min-width: 0; padding-inline-end: 22px; }
.nw-engine-text strong { font-family: var(--display); font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nw-engine-default { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 7px; }
[dir="rtl"] .nw-engine-default { letter-spacing: 0; font-family: var(--arabic); font-size: 10.5px; }
.nw-engine-sub { font-size: 12.5px; color: var(--muted); }
.nw-engine-note { font-size: 11.5px; color: var(--dim); line-height: 1.45; margin-top: 4px; }
.nw-engine-cost { grid-column: 1 / -1; justify-self: start; font-family: var(--mono); font-size: 11px; color: #e8dfff; border: 1px solid rgba(168,85,247,.5); background: rgba(139,92,246,.14); padding: 4px 10px; border-radius: 999px; }
.nw-engine-cost.free { color: #a7f3d0; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.12); }
.nw-next.claw { background: linear-gradient(135deg, #0e7490 0%, #22d3ee 45%, #6366f1 100%); background-size: 200% 100%; }
.nw-next.claw::after { background: radial-gradient(60% 80% at 50% 50%, rgba(34,211,238,.55), rgba(99,102,241,.3) 50%, transparent 72%); }

/* engine badge (board, brand card, handoff) */
.nw-engine-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(168,85,247,.5); background: rgba(139,92,246,.12); color: #e8dfff; white-space: nowrap; }
.nw-engine-badge i { width: 6px; height: 6px; border-radius: 50%; background: #c9b8ff; box-shadow: 0 0 8px #c9b8ff; }
.nw-engine-badge.openclaw { border-color: rgba(34,211,238,.55); background: linear-gradient(180deg, rgba(34,211,238,.16), rgba(245,176,65,.06)); color: #bfefff; }
.nw-engine-badge.openclaw i { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
[dir="rtl"] .nw-engine-badge { letter-spacing: 0; font-family: var(--arabic); font-size: 11px; }
.nw-chip.nw-engine-badge { font-size: 10.5px; padding: 3px 8px; }
.nw-board-kickers { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------ handoff screen */
.nw-handoff { padding: 18px 22px 48px; max-width: 980px; margin: 0 auto; animation: bootUp .5s var(--ease) both; }
.nw-ho { position: relative; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(23,23,35,.9), rgba(14,14,22,.94)); box-shadow: var(--edge), 0 30px 80px rgba(0,0,0,.45); overflow: hidden; isolation: isolate; animation: stepIn .45s var(--ease) both; }
.nw-ho::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 260px; z-index: -1; background: radial-gradient(60% 100% at 0% 0%, rgba(34,211,238,.18), transparent 60%), radial-gradient(50% 80% at 100% 0%, rgba(245,176,65,.12), transparent 60%); pointer-events: none; }
.nw-ho-head { padding: 30px 32px 10px; }
.nw-ho-kick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.nw-ho-head h1 { margin: 6px 0 8px; font-family: var(--display); font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.02em; line-height: 1.1; }
.nw-ho-head .nw-lead { margin: 0; max-width: 60ch; }
.nw-ho-steps { list-style: none; margin: 0; padding: 14px 32px 6px; display: grid; gap: 0; counter-reset: ho; }
.nw-ho-step { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 0 20px; border-top: 1px solid var(--line); }
.nw-ho-step:first-child { border-top: 0; }
.nw-ho-step::before { content: ""; position: absolute; top: 58px; bottom: -2px; inset-inline-start: 19px; width: 2px; background: linear-gradient(180deg, rgba(34,211,238,.35), rgba(99,102,241,.05)); }
.nw-ho-step:last-child::before { display: none; }
.nw-ho-num { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: #fff; background: var(--nw); box-shadow: 0 0 0 4px rgba(34,211,238,.12), 0 0 18px var(--nw-glow); margin-top: -2px; }
.nw-ho-body { min-width: 0; display: grid; gap: 10px; }
.nw-ho-body h2 { margin: 0; font-family: var(--display); font-size: 17px; }
.nw-ho-body > p.muted { margin: -4px 0 0; font-size: 13px; line-height: 1.55; max-width: 70ch; }
.nw-ho-sub { margin: 6px 0 0; font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .nw-ho-sub { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-ho-docs { justify-self: start; }
.nw-ho-hint { margin: 0; font-size: 12px; color: var(--dim); }
.nw-ho-hint.ok { color: #a7f3d0; }
.nw-ho-hint.ok::before { content: "✓ "; }
.nw-ho-foot { display: flex; align-items: center; gap: 10px; padding: 16px 32px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.015); flex-wrap: wrap; }
.nw-ho-foot .spacer { flex: 1; }
.nw-ho-status { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px dashed rgba(34,211,238,.35); background: rgba(34,211,238,.05); }
.nw-ho-status.arrived { border-style: solid; border-color: rgba(52,211,153,.6); background: rgba(52,211,153,.08); }
.nw-ho-status > div { display: grid; gap: 2px; min-width: 0; }
.nw-ho-status strong { font-family: var(--display); font-size: 14px; }
.nw-ho-status .muted { font-size: 12px; }
.nw-gen-orb.small { width: 34px; height: 34px; margin: 0; flex: none; }
.nw-gen-orb.small i:nth-child(2) { inset: 5px; }
.nw-gen-orb.small i:nth-child(3) { inset: 11px; box-shadow: 0 0 14px var(--nw-glow); }
.nw-gen-orb.done i { animation: none !important; background: #34d399; opacity: .9; }

/* copy boxes */
.nw-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10,10,15,.75); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); overflow: hidden; direction: ltr; }
.nw-copy pre { margin: 0; padding: 11px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.55; color: #cdeefc; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; min-width: 0; text-align: left; }
.nw-copy code { font-family: inherit; }
.nw-copy-btn { border: 0; border-inline-start: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 11px; padding: 0 14px; cursor: pointer; transition: background var(--t), color var(--t); }
.nw-copy-btn:hover { background: rgba(34,211,238,.14); color: #bfefff; }
[dir="rtl"] .nw-copy-btn { font-family: var(--arabic); font-size: 12px; }

/* tokens */
.nw-tokens-host, #tokens-body { display: grid; gap: 12px; }
.nw-token-create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.nw-token-name { background: var(--canvas); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; color: var(--ink); min-width: 0; font-size: 13px; }
.nw-token-btn { border-radius: 12px; padding: 0 16px; font-size: 12px; }
.nw-token-fresh { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid rgba(245,176,65,.5); background: rgba(245,176,65,.08); }
.nw-token-warn { margin: 0; font-size: 12.5px; color: #fde6b8; }
.nw-token-list-wrap { display: grid; gap: 8px; }
.nw-token-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nw-token { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.nw-token.fresh { border-color: rgba(52,211,153,.5); }
.nw-token-info { display: grid; gap: 2px; min-width: 0; }
.nw-token-info strong { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.nw-token-info code { font-family: var(--mono); font-size: 10.5px; color: var(--dim); direction: ltr; unicode-bidi: isolate; }
.nw-token-info .muted { font-size: 11px; }
.nw-token-empty { color: var(--dim); font-size: 12.5px; padding: 6px 2px; }
.nw-tokens .modal-card { width: min(100%, 560px); }
.nw-tokens-item { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }

/* agent report (OpenClaw campaigns) */
.nw-report { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; line-height: 1; color: #0a0a0f; flex: none; margin-inline-start: auto; }
.nw-report.posted { background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,.6); }
.nw-report.failed { background: #ef4444; color: #fff; box-shadow: 0 0 8px rgba(239,68,68,.6); }
.nw-report.skipped { background: #74748c; color: #fff; }
.nw-post-top .nw-report + .nw-time, .nw-post-top .nw-time + .nw-report { margin-inline-start: 0; }
.nw-dr-report { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(34,211,238,.3); background: rgba(34,211,238,.05); }
.nw-dr-report.posted { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.07); }
.nw-dr-report.failed { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.07); }
.nw-dr-report.none { border-style: dashed; }
.nw-dr-report.none .muted { margin: 0; font-size: 12.5px; }
.nw-dr-report-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nw-dr-report-title { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
[dir="rtl"] .nw-dr-report-title { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-dr-report-line { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; }
.nw-dr-report-line .nw-report { width: 18px; height: 18px; margin: 1px 0 0; }
.nw-dr-report-line strong { font-family: var(--display); font-size: 13.5px; }
.nw-dr-report-line small { color: var(--dim); font-weight: 400; font-family: var(--mono); font-size: 10.5px; }
.nw-dr-report-note { margin: 4px 0 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

@media (max-width: 900px) {
  .nw-engines { grid-template-columns: minmax(0, 1fr); }
  .nw-handoff { padding: 12px 16px 36px; }
  .nw-ho-head { padding: 22px 18px 6px; }
  .nw-ho-steps { padding: 10px 18px 4px; }
  .nw-ho-step { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 16px 0 18px; }
  .nw-ho-num { width: 32px; height: 32px; font-size: 12px; }
  .nw-ho-step::before { inset-inline-start: 15px; top: 48px; }
  .nw-ho-foot { padding: 14px 18px 18px; }
  .nw-ho-foot .primary { width: 100%; order: -1; }
  .nw-copy { grid-template-columns: minmax(0, 1fr); }
  .nw-copy-btn { border-inline-start: 0; border-top: 1px solid var(--line); padding: 9px 14px; text-align: start; }
  .nw-copy pre { font-size: 11.5px; padding: 10px 12px; }
  .nw-token-create { grid-template-columns: minmax(0, 1fr); }
  .nw-token-btn { padding: 10px 16px; }
  .nw-bc-row.nw-bc-engine { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-handoff, .nw-ho, .nw-engine .nw-check { animation: none !important; }
  .nw-engine, .nw-engine::before, .nw-copy-btn { transition: none !important; }
  .nw-engine:hover { transform: none; }
}

/* =================================================================== rich page
   Step 1 full-bleed hero (video · poster · marquee), discovery sections on every step, picture cards, lightbox, generating preview. */
/* pictures with a graceful fallback (.webp → .jpg → gradient + glyph) */
.nw-pic { position: relative; display: block; overflow: hidden; background: var(--fb, linear-gradient(135deg, #22d3ee, #8b5cf6)); isolation: isolate; }
.nw-pic img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.nw-pic.ok img { opacity: 1; }
.nw-pic::before { content: ""; position: absolute; inset: -40%; z-index: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), transparent 45%), radial-gradient(circle at 75% 80%, rgba(10,10,15,.35), transparent 50%); animation: picShine 7s ease-in-out infinite alternate; }
.nw-pic::after { content: attr(data-glyph); position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 34px; color: rgba(255,255,255,.88); text-shadow: 0 4px 24px rgba(0,0,0,.45); transition: opacity .4s; }
.nw-pic.ok::before, .nw-pic.ok::after { opacity: 0; animation: none; }
@keyframes picShine { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(4%, 3%) rotate(6deg); } }

/* ---- hero (step 1) */
.nw-step-hero .nw-hero { min-height: clamp(560px, 70vh, 800px); padding: 0; justify-content: space-between; }
.nw-hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(135deg, #0b1b2a, #1b1240 60%, #0a0a0f); }
.nw-hero-media .nw-hero-img { position: absolute; inset: 0; z-index: 0; }
.nw-hero-video { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s var(--ease); transform: scale(1.02); }
.nw-hero-media.video-on .nw-hero-video { opacity: .92; }
.nw-hero-media.video-on .nw-hero-img { animation: none; }
.nw-step-hero .nw-hero::before { background: linear-gradient(180deg, rgba(10,10,15,.3), rgba(10,10,15,.42) 40%, rgba(10,10,15,.9) 78%, rgba(10,10,15,.97) 100%), radial-gradient(60% 50% at 80% 15%, rgba(34,211,238,.22), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(139,92,246,.25), transparent 70%); }
.nw-hero-inner { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 54px; padding-bottom: 26px; }
.nw-step-hero .nw-hero h1 { font-size: clamp(30px, 3.4vw, 52px); max-width: 17ch; margin: 12px 0 10px; letter-spacing: -0.03em; }
.nw-step-hero .nw-hero .nw-lead { font-size: 15.5px; max-width: 56ch; margin-bottom: 22px; }
.nw-step-hero .nw-source { max-width: 720px; }
.nw-step-hero .nw-source input { font-size: 17px; padding: 12px 18px; }
.nw-step-hero .nw-mic { width: 50px; height: 50px; }
.nw-step-hero .nw-src-alt { margin-top: 16px; font-size: 13px; }

/* ---- marquee of example posts */
.nw-marquee { position: relative; z-index: 1; padding: 6px 0 24px; }
.nw-marquee-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.nw-marquee-hint { font-size: 12px; color: var(--muted); }
.nw-marquee-vp { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); padding: 6px 0 10px; }
.nw-marquee-track { display: flex; width: max-content; animation: marquee 75s linear infinite; will-change: transform; }
[dir="rtl"] .nw-marquee-track { animation-name: marqueeRtl; }
.nw-marquee-group { display: flex; gap: 14px; padding-inline-end: 14px; }
.nw-marquee-vp:hover .nw-marquee-track, .nw-marquee-track:focus-within { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marqueeRtl { to { transform: translateX(50%); } }
.nw-ex { --pc: #8b5cf6; position: relative; flex: none; width: 238px; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; overflow: hidden; background: rgba(14,14,22,.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-align: start; color: var(--ink); cursor: pointer; box-shadow: 0 12px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease), border-color var(--t), box-shadow .3s var(--ease); isolation: isolate; }
.nw-ex::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--pc); opacity: .9; z-index: 2; }
.nw-ex:hover, .nw-ex:focus-visible { transform: translateY(-5px); border-color: rgba(34,211,238,.5); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 20px 44px rgba(0,0,0,.55); }
.nw-ex-pic { aspect-ratio: 3 / 2; }
.nw-ex-pic img { transition: transform .8s var(--ease), opacity .7s; }
.nw-ex:hover .nw-ex-pic img { transform: scale(1.05); }
.nw-ex-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px 0; }
.nw-ex-plat { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--pc); white-space: nowrap; }
.nw-ex-plat i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); flex: none; }
.nw-ex-cat { font-family: var(--display); font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.nw-ex-cap { margin: 6px 12px 12px; font-size: 12.5px; line-height: 1.5; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-ex-cap[lang="ar"] { direction: rtl; font-family: var(--arabic), var(--latin); font-size: 13px; text-align: start; }
.nw-ex-cap[lang="en"] { direction: ltr; font-family: var(--latin); }

/* ---- lightbox */
.nw-lightbox { position: fixed; inset: 0; z-index: 72; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at center, rgba(12,12,20,.86), rgba(4,4,8,.97) 75%); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: fadeIn .25s both; }
.nw-lb-card { position: relative; width: min(100%, 920px); max-height: calc(100vh - 40px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(180deg, #15151f, #0f0f17); box-shadow: 0 40px 100px rgba(0,0,0,.7); animation: stepIn .35s var(--ease) both; }
.nw-lb-pic { min-height: 340px; height: 100%; }
.nw-lb-pic::after { font-size: 76px; }
.nw-lb-body { padding: 24px 24px 20px; display: grid; gap: 14px; align-content: start; overflow: auto; min-width: 0; }
.nw-lb-x { z-index: 3; background: rgba(10,10,15,.6); }
.nw-lb-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-inline-end: 40px; }
.nw-lb-meta .nw-chip { cursor: default; }
.nw-lb-meta .nw-chip:hover { transform: none; }
.nw-lb-title { margin: 0; font-family: var(--display); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.nw-lb-label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
[dir="rtl"] .nw-lb-label { letter-spacing: 0; font-family: var(--arabic); font-size: 11.5px; }
.nw-lb-cap { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; color: var(--ink); }
.nw-lb-cap[lang="ar"] { direction: rtl; text-align: start; font-family: var(--arabic), var(--latin); font-size: 15px; }
.nw-lb-cap[lang="en"] { direction: ltr; text-align: start; font-family: var(--latin); }
.nw-lb-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.nw-lb-foot .primary { border-radius: 999px; padding: 10px 20px; }
.nw-lb-foot .ghost { border-radius: 999px; }

/* ---- discovery sections */
.nw-sections { display: grid; gap: 34px; margin-top: 36px; }
.nw-sec { position: relative; min-width: 0; }
.nw-sec-head { display: grid; gap: 6px; margin-bottom: 16px; }
.nw-sec-title { margin: 0; font-family: var(--display); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -0.02em; line-height: 1.15; }
.nw-sec-lead { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; }
.nw-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.nw-reveal.in { opacity: 1; transform: none; }
.nw-dock { display: none; }

/* how it works */
.nw-how { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nw-how-line { position: absolute; inset-inline-start: 30px; inset-inline-end: calc(33.333% - 18px); top: 0; height: 60px; z-index: 2; pointer-events: none; overflow: visible; opacity: .85; }
[dir="rtl"] .nw-how-line { transform: scaleX(-1); }
.nw-how-line path { fill: none; stroke: url(#nwHowGrad); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .35s; filter: drop-shadow(0 0 6px rgba(34,211,238,.8)); }
.in .nw-how-line path { stroke-dashoffset: 0; }
.nw-how-card { position: relative; z-index: 1; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(23,23,35,.9), rgba(14,14,22,.94)); box-shadow: var(--edge), 0 20px 50px rgba(0,0,0,.35); opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) calc(var(--i) * .18s + .1s), transform .6s var(--ease) calc(var(--i) * .18s + .1s), box-shadow .3s var(--ease), border-color var(--t); }
.in .nw-how-card { opacity: 1; transform: none; }
.in .nw-how-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.2); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 20px 44px rgba(0,0,0,.5); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color var(--t); }
.nw-how-pic { aspect-ratio: 16 / 9; }
.nw-how-pic::after { font-size: 58px; }
.nw-how-pic img { transition: transform .8s var(--ease), opacity .7s; }
.nw-how-card:hover .nw-how-pic img { transform: scale(1.05); }
.nw-how-num { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13.5px; color: #fff; background: var(--nw); box-shadow: 0 0 0 4px rgba(34,211,238,.14), 0 0 18px var(--nw-glow); }
.nw-how-text { padding: 14px 18px 18px; }
.nw-how-text h3 { margin: 0 0 5px; font-family: var(--display); font-size: 16.5px; }
.nw-how-text p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* numbers that matter */
.nw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nw-stat { position: relative; padding: 24px 22px 20px; border-radius: 20px; border: 1px solid rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(23,23,35,.92), rgba(14,14,22,.96)); overflow: hidden; isolation: isolate; box-shadow: var(--edge); opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease) calc(var(--i) * .12s), transform .6s var(--ease) calc(var(--i) * .12s); }
.in .nw-stat { opacity: 1; transform: none; }
.nw-stat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nw); opacity: .14; -webkit-mask: radial-gradient(90% 90% at 100% 0%, #000, transparent 70%); mask: radial-gradient(90% 90% at 100% 0%, #000, transparent 70%); }
.nw-stat::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--nw-h); box-shadow: 0 0 14px var(--nw-glow); }
.nw-stat-v { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: clamp(30px, 3vw, 46px); font-weight: 500; line-height: 1; letter-spacing: -0.02em; background: linear-gradient(90deg, #fff, #8be9fd); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
[dir="rtl"] .nw-stat-v { justify-content: flex-end; direction: rtl; }
.nw-stat-v small { font-family: var(--display); font-size: 13px; letter-spacing: 0; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.nw-stat-l { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* inspiration by industry */
.nw-insp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 12px; }
.nw-insp { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--panel-3); cursor: pointer; text-align: start; isolation: isolate; color: #fff; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .55s var(--ease) calc(var(--i) * .06s), transform .55s var(--ease) calc(var(--i) * .06s), box-shadow .3s var(--ease), border-color var(--t); }
.in .nw-insp { opacity: 1; transform: none; }
.nw-insp.tall { grid-row: span 2; }
.nw-insp-pic { position: absolute; inset: 0; }
.nw-insp-pic img { transition: transform .8s var(--ease), opacity .7s; }
.in .nw-insp:hover, .in .nw-insp:focus-visible { transform: translateY(-3px); border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 1px rgba(34,211,238,.35), 0 18px 40px rgba(0,0,0,.55); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color var(--t); }
.nw-insp:hover .nw-insp-pic img { transform: scale(1.07); }
.nw-insp-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 44px 14px 12px; display: grid; gap: 2px; background: linear-gradient(transparent, rgba(8,8,14,.94) 70%); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.nw-insp-cap strong { font-family: var(--display); font-size: 14px; }
.nw-insp-cap span { font-size: 12px; color: #d2d2e4; opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.nw-insp:hover .nw-insp-cap span, .nw-insp:focus-visible .nw-insp-cap span { opacity: 1; transform: none; }
.nw-insp-go { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: rgba(10,10,15,.72); color: #8be9fd; font-family: var(--display); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: 0; transform: translateY(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[dir="rtl"] .nw-insp-go { letter-spacing: 0; text-transform: none; font-size: 11px; }
.nw-insp:hover .nw-insp-go, .nw-insp:focus-visible .nw-insp-go { opacity: 1; transform: none; }

/* your campaigns */
.nw-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nw-camp { position: relative; display: grid; grid-template-rows: auto 1fr; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, rgba(23,23,35,.92), rgba(14,14,22,.96)); box-shadow: var(--edge); cursor: pointer; color: var(--ink); text-align: start; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color var(--t); }
.nw-camp:hover, .nw-camp:focus-visible { transform: translateY(-3px); border-color: rgba(255,255,255,.2); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 18px 40px rgba(0,0,0,.5); }
.nw-camp-collage { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; aspect-ratio: 16 / 8; background: #0a0a0f; }
.nw-camp-collage[data-n="1"] { grid-template-columns: 1fr; }
.nw-camp-collage[data-n="3"] .nw-camp-pic:first-child { grid-row: span 2; }
.nw-camp-pic { min-height: 0; height: 100%; }
.nw-camp-pic::after { font-size: 30px; }
.nw-camp-body { padding: 12px 14px 12px; display: grid; gap: 8px; align-content: start; }
.nw-camp-title { margin: 0; font-family: var(--display); font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nw-camp-meta { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--dim); flex-wrap: wrap; }
.nw-camp-plats { display: flex; gap: 6px; min-height: 9px; }
.nw-camp-plats i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.nw-camp-foot { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.nw-camp-foot .spacer { flex: 1; }
.nw-camp-open { border-radius: 999px; padding: 7px 16px; font-size: 11px; }
.nw-camp-new { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 230px; border-style: dashed; border-color: rgba(34,211,238,.35); background: rgba(34,211,238,.04); text-align: center; padding: 20px; }
.nw-camp-new:hover { border-color: rgba(34,211,238,.7); background: rgba(34,211,238,.08); }
.nw-camp-plus { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--nw); color: #fff; font-size: 28px; font-weight: 300; line-height: 1; box-shadow: 0 0 22px var(--nw-glow); margin-bottom: 4px; }
.nw-camp-new strong { font-family: var(--display); font-size: 15px; }
.nw-camp-new .muted { font-size: 12.5px; }

/* ---- picture cards (step 3: audience · tone) + bigger iconed chips */
.nw-pcards { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.nw-pcards.tone { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nw-pcard { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel-3); text-align: start; isolation: isolate; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); transition: border-color var(--t), transform .25s var(--ease), box-shadow .25s; }
.nw-pcard-pic { aspect-ratio: 4 / 5; }
.nw-pcards.tone .nw-pcard-pic { aspect-ratio: 4 / 3; }
.nw-pcard-pic::after { font-size: 30px; }
.nw-pcard-pic img { transition: transform .6s var(--ease), opacity .7s; }
.nw-pcard:hover { border-color: rgba(255,255,255,.22); transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(34,211,238,.3), 0 14px 30px rgba(0,0,0,.45); }
.nw-pcard:hover .nw-pcard-pic img { transform: scale(1.05); }
.nw-pcard:active { transform: translateY(0) scale(.985); }
.nw-pcard[aria-pressed="true"] { border-color: transparent; box-shadow: 0 0 0 1px rgba(99,102,241,.3), 0 0 26px var(--nw-glow-2), 0 10px 24px rgba(0,0,0,.35); }
.nw-pcard[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 2px; background: var(--nw); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.nw-pcard .nw-check { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 24px; height: 24px; border-radius: 50%; background: var(--nw); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; opacity: 0; transform: scale(.6); transition: all .25s var(--ease); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.nw-pcard[aria-pressed="true"] .nw-check { opacity: 1; transform: scale(1); }
.nw-pcard .nw-badge { top: 8px; inset-inline-start: 8px; font-size: 8.5px; padding: 3px 7px; }
.nw-pcard-label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 30px 10px 10px; font-family: var(--display); font-weight: 700; font-size: 12.5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); background: linear-gradient(transparent, rgba(8,8,14,.95) 75%); }
.nw-pcard.jev .nw-pcard-label::after { content: " ✦"; color: #f5b041; }
.nw-pcard.jev[aria-pressed="true"] .nw-pcard-label::after { color: #fff; }
.nw-chips.big .nw-chip { font-size: 13.5px; padding: 11px 16px; gap: 9px; }
.nw-chips.big .nw-chip .nw-ico { font-size: 15px; line-height: 1; font-family: var(--display); }
.nw-insight { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.14); color: var(--muted); font-size: 13px; }
.nw-insight.on { border-style: solid; border-color: rgba(245,176,65,.4); background: rgba(245,176,65,.06); color: #fde6b8; }
.nw-insight-ico { color: #f5b041; flex: none; }

/* ---- generating preview */
.nw-gen-inner { width: min(100%, 760px); }
.nw-gen-preview { margin-top: 28px; display: grid; gap: 12px; justify-items: center; }
.nw-gen-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
.nw-gen-cards .nw-ex { width: auto; opacity: 0; animation: genCard .8s var(--ease) both; }
@keyframes genCard { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---- responsive */
@media (max-width: 1100px) {
  .nw-pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nw-pcards.tone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-insp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 140px; }
  .nw-lb-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .nw-step-hero .nw-hero { min-height: 0; }
  .nw-hero-inner { padding-top: 34px; padding-bottom: 20px; }
  .nw-step-hero .nw-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .nw-step-hero .nw-hero .nw-lead { font-size: 14px; }
  .nw-step-hero .nw-source input { font-size: 15px; padding: 10px 12px; }
  .nw-marquee { padding-bottom: 18px; }
  .nw-sections { gap: 18px; margin-top: 22px; }
  .nw-dock { display: flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17,17,26,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); position: sticky; top: 8px; z-index: 6; overflow-x: auto; scrollbar-width: none; }
  .nw-dock::-webkit-scrollbar { display: none; }
  .nw-dock-btn { flex: 1; border: 0; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 12px; padding: 9px 12px; border-radius: 999px; white-space: nowrap; transition: background var(--t), color var(--t); }
  .nw-dock-btn[aria-pressed="true"] { background: var(--nw); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
  .nw-sections > .nw-sec { display: none; }
  .nw-sections[data-open="how"] > .nw-sec-how, .nw-sections[data-open="numbers"] > .nw-sec-num, .nw-sections[data-open="inspiration"] > .nw-sec-insp, .nw-sections[data-open="campaigns"] > .nw-sec-camp { display: block; }
  .nw-how { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nw-how-line { display: none; }
  .nw-how-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); }
  .nw-how-pic { aspect-ratio: auto; height: 100%; min-height: 96px; }
  .nw-how-num { width: 30px; height: 30px; font-size: 12px; top: 8px; inset-inline-start: 8px; }
  .nw-how-text { padding: 12px 14px; }
  .nw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nw-stat { padding: 18px 16px 14px; }
  .nw-stat-v { font-size: 30px; }
  .nw-insp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 10px; }
  .nw-insp-cap span, .nw-insp-go { opacity: 1; transform: none; }
  .nw-camps { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
  .nw-pcards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .nw-pcards.tone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-pcard-label { font-size: 11.5px; padding: 24px 8px 8px; }
  .nw-chips.big .nw-chip { font-size: 12.5px; padding: 9px 13px; }
  .nw-gen-cards { grid-template-columns: minmax(0, 1fr); }
  .nw-gen-cards .nw-ex { display: grid; grid-template-columns: 110px minmax(0, 1fr); grid-template-areas: "pic top" "pic cap"; }
  .nw-gen-cards .nw-ex-pic { grid-area: pic; aspect-ratio: auto; height: 100%; }
  .nw-gen-cards .nw-ex-top { grid-area: top; }
  .nw-gen-cards .nw-ex-cap { grid-area: cap; }
  .nw-lb-card { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 24px); overflow: auto; }
  .nw-lb-pic { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .nw-lb-body { padding: 18px 16px 16px; overflow: visible; }
  .nw-lb-foot { position: sticky; bottom: -16px; z-index: 2; margin: 0 -16px -16px; padding: 12px 16px 16px; background: linear-gradient(180deg, rgba(17,17,26,0), rgba(17,17,26,.96) 30%); } /* the card scrolls on phones: "Use this style" stays in reach */
  .nw-lightbox { padding: 12px; }
}
@media (max-width: 640px) {
  /* the marquee becomes a swipeable row */
  .nw-marquee-vp { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nw-marquee-vp::-webkit-scrollbar { display: none; }
  .nw-marquee-track { animation: none !important; width: max-content; }
  .nw-marquee-group { padding-inline: 16px; gap: 10px; }
  .nw-marquee-group:nth-child(2) { display: none; }
  .nw-ex { width: 220px; scroll-snap-align: start; }
  .nw-step-hero .nw-src-alt { gap: 10px 14px; }
  .nw-src-alt .nw-platforms-hint { flex: 1 1 100%; align-items: flex-start; gap: 4px; }
  .nw-src-alt .nw-platforms-hint > span { flex: 1; margin-inline-start: 6px; }
  .nw-src-alt .nw-platforms-hint i { margin-top: 6px; }
  .nw-wizard[data-step="0"] .nw-rail { padding: 10px 12px 0; }
  .nw-pcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-pcards.tone { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nw-stat-v { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .nw-marquee-track, .nw-hero-video, .nw-pic::before, .nw-reveal, .nw-how-card, .nw-stat, .nw-insp, .nw-gen-cards .nw-ex, .nw-lightbox, .nw-lb-card { animation: none !important; transition: none !important; }
  .nw-marquee-vp { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .nw-marquee-group:nth-child(2) { display: none; }
  .nw-reveal, .nw-how-card, .nw-stat, .nw-insp, .nw-gen-cards .nw-ex { opacity: 1; transform: none; }
  .nw-how-line path { stroke-dashoffset: 0; transition: none; }
  .nw-ex, .nw-pcard, .nw-camp, .nw-pic img, .nw-pcard-pic img, .nw-insp-pic img, .nw-how-pic img, .nw-ex-pic img, .nw-insp-cap span, .nw-insp-go { transition: none !important; }
  .nw-ex:hover, .nw-pcard:hover, .nw-camp:hover, .in .nw-how-card:hover, .in .nw-insp:hover { transform: none; }
  .nw-ex:hover .nw-ex-pic img, .nw-pcard:hover .nw-pcard-pic img, .nw-insp:hover .nw-insp-pic img, .nw-how-card:hover .nw-how-pic img { transform: none; }
}

/* Connections-backed actions (v3/mcp/actions.js): the board bar, the post-card publish button, the drawer publish block */
.nw-actions { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, rgba(23,23,35,.7), rgba(14,14,22,.8)); animation: panelIn .3s var(--ease) both; }
.nw-actions .nw-kicker { margin-inline-end: 4px; }
.nw-actions .ghost, .nw-actions a.ghost { border-radius: 999px; }
.nw-actions .ghost.busy { opacity: .6; pointer-events: none; }
.nw-actions .ghost.pending { border-color: rgba(245,176,65,.6); color: #fde6b8; }
.nw-actions-hint { font-size: 11.5px; color: var(--dim); display: inline-flex; align-items: center; gap: 6px; }
.nw-actions-hint a { color: #8be9fd; }
.nw-actions .spacer { flex: 1; }
.nw-switch { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px 5px 6px; background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 11.5px; cursor: pointer; transition: border-color var(--t), color var(--t); }
.nw-switch i { width: 30px; height: 17px; border-radius: 999px; background: rgba(255,255,255,.12); position: relative; transition: background .25s; flex: none; }
.nw-switch i::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.nw-switch[aria-checked="true"] { color: var(--ink); border-color: rgba(52,211,153,.5); }
.nw-switch[aria-checked="true"] i { background: #34d399; box-shadow: 0 0 10px rgba(52,211,153,.5); }
.nw-switch[aria-checked="true"] i::after { transform: translateX(13px); }
[dir="rtl"] .nw-switch[aria-checked="true"] i::after { transform: translateX(-13px); }
.nw-switch small { color: var(--dim); font-family: var(--mono); font-weight: 400; font-size: 10px; }
.nw-post-pub { position: absolute; bottom: 6px; inset-inline-end: 6px; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(34,211,238,.45); background: rgba(10,10,15,.75); color: #8be9fd; font-family: var(--display); font-weight: 600; font-size: 9.5px; letter-spacing: .04em; display: none; align-items: center; gap: 4px; cursor: pointer; z-index: 2; }
.nw-post:hover .nw-post-pub, .nw-post:focus-within .nw-post-pub { display: inline-flex; }
.nw-post-pub[disabled] { opacity: .45; cursor: default; }
.nw-post-pub.pending { border-color: rgba(245,176,65,.6); color: #fde6b8; }
.nw-pending-dot { width: 7px; height: 7px; border-radius: 50%; background: #f5b041; box-shadow: 0 0 6px #f5b041; flex: none; animation: pulse 1.8s infinite; }
.nw-dr-publish { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.nw-dr-publish-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nw-dr-publish .primary { border-radius: 999px; padding: 8px 16px; font-size: 11.5px; }
.nw-dr-publish .primary[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.nw-dr-publish .primary[disabled]::after { display: none; }
.nw-dr-publish p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.nw-dr-publish p a { color: #8be9fd; }
.nw-dr-publish.pending { border-color: rgba(245,176,65,.5); background: rgba(245,176,65,.06); }
.nw-dr-publish.posted { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.06); }
.nw-dr-publish.error { border-color: rgba(239,68,68,.45); }
.nw-import-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -4px 0 12px; }
.nw-import-row .ghost { border-radius: 999px; }
.nw-token-scope { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.nw-token-scope input { accent-color: #8b5cf6; width: 15px; height: 15px; }
.nw-token-scope small { display: block; color: var(--dim); font-size: 11px; }
.nw-token-info .nw-scope { font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: #8be9fd; border: 1px solid rgba(34,211,238,.35); border-radius: 999px; padding: 1px 6px; }
@media (max-width: 640px) { .nw-actions { padding: 8px 10px; } .nw-post-pub { display: inline-flex; } }

/* ------------------------------------------------------------------ planner */
/* /nawaa#planner: every post across campaigns on one calendar + the "AI acts" rail. Chips: --cc = campaign colour (edge), --pc = platform (dot). */
.nw-planner-btn svg { margin-inline-end: 5px; vertical-align: -2px; }
.nw-planner-pill { display: inline-flex; align-items: center; gap: 7px; margin-inline-start: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 1px solid rgba(139,92,246,.55); background: linear-gradient(90deg, rgba(139,92,246,.22), rgba(34,211,238,.14)); color: #e9e4ff; font-family: var(--display); font-weight: 600; font-size: 11.5px; cursor: pointer; animation: panelIn .4s var(--ease) both; box-shadow: 0 0 0 1px rgba(139,92,246,.15), 0 6px 20px rgba(139,92,246,.25); }
.nw-planner-pill i { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; box-shadow: 0 0 10px #8b5cf6; animation: pulse 1.8s infinite; }
.nw-planner-pill:hover { color: #fff; border-color: rgba(139,92,246,.9); }
.nw-planner { padding: 16px 22px 40px; max-width: 1500px; margin: 0 auto; animation: bootUp .5s var(--ease) both; }
.nw-pl-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.nw-pl-title-wrap { min-width: 0; flex: 1 1 280px; }
.nw-pl-title { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; line-height: 1.15; }
.nw-pl-sub { margin: 0; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.nw-pl-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nw-pl-arrow { width: 34px; padding: 7px 0; font-size: 18px; line-height: 1; }
[dir="rtl"] .nw-pl-arrow span { display: inline-block; transform: scaleX(-1); }
.nw-pl-views { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17,17,26,.8); margin-inline-start: 6px; }
.nw-pl-view { border: 0; background: transparent; color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 11.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background var(--t), color var(--t); }
.nw-pl-view[aria-selected="true"] { background: var(--nw); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.nw-pl-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 0 0; }
.nw-pl-filter { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); color: var(--muted); font-family: var(--display); font-weight: 600; font-size: 11.5px; cursor: pointer; transition: all .2s var(--ease); max-width: 260px; }
.nw-pl-filter i { width: 9px; height: 9px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 8px var(--cc); flex: none; }
.nw-pl-filter small { font-family: var(--mono); font-weight: 400; color: var(--dim); font-size: 10px; }
.nw-pl-filter[aria-pressed="true"] { color: var(--ink); border-color: color-mix(in srgb, var(--cc, #8b5cf6) 55%, transparent); background: color-mix(in srgb, var(--cc, #8b5cf6) 12%, transparent); }
.nw-pl-filter[aria-pressed="false"] i { background: transparent; box-shadow: none; border: 1.5px solid var(--cc); }
.nw-pl-filter.all[aria-pressed="true"] { background: var(--nw); color: #fff; border-color: transparent; }
.nw-pl-legend { margin-inline-start: auto; }
.nw-pl-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; margin-top: 14px; align-items: start; }
.nw-pl-cal { min-width: 0; position: relative; }
.nw-pl-cal.loading { opacity: .6; }
.nw-pl-cal .nw-cal-weekdays { margin-top: 2px; }
.nw-pl-grid { gap: 4px; } .nw-pl-grid .nw-day { min-height: 124px; padding: 7px 6px; }
.nw-day-add { margin-inline-start: auto; width: 20px; height: 20px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.18); background: transparent; color: var(--dim); font-size: 14px; line-height: 1; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity var(--t), color var(--t), border-color var(--t); }
.nw-day-num .nw-day-add { margin-inline-start: 6px; }
.nw-day:hover .nw-day-add, .nw-day:focus-within .nw-day-add, .nw-pl-wd:hover .nw-day-add, .nw-pl-wd:focus-within .nw-day-add { opacity: 1; }
.nw-day-add:hover { color: #8be9fd; border-color: rgba(34,211,238,.6); }
.nw-pl-none { margin: 14px 0 0; color: var(--dim); font-size: 12.5px; text-align: center; }
/* the post chip */
.nw-pchip { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px 6px 6px 9px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); text-align: start; cursor: grab; color: var(--ink); width: 100%; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color var(--t); }
.nw-pchip::before { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 3px; background: var(--cc); box-shadow: 0 0 10px var(--cc); }
.nw-pchip:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.22); box-shadow: 0 10px 24px rgba(0,0,0,.4), 0 0 0 1px color-mix(in srgb, var(--cc) 35%, transparent); }
.nw-pchip:focus-visible { outline: 2px solid #22d3ee; outline-offset: 1px; }
.nw-pchip.dragging { opacity: .4; transform: scale(.96); }
.nw-pchip.selected { border-color: transparent; box-shadow: 0 0 0 1.5px #22d3ee, 0 0 18px var(--nw-glow); }
.nw-pchip[draggable="false"], .nw-pchip[data-state="posted"] { cursor: pointer; }
.nw-pchip-top { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); min-width: 0; }
.nw-pchip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 6px var(--pc); flex: none; }
.nw-pchip-time { color: var(--ink); font-weight: 500; }
.nw-pchip-plat { color: var(--pc); font-weight: 600; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nw-pchip-vis { margin-inline-start: auto; color: var(--dim); font-size: 10px; }
.nw-pchip-title { overflow-wrap: anywhere; font-size: 11.5px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* the AI badge: what the scheduler does with the post */
.nw-ai { display: inline-block; align-self: flex-start; max-width: 100%; padding: 2px 6px; border-radius: 999px; border: 1px solid transparent; font-family: var(--display); font-weight: 600; font-size: 9.5px; letter-spacing: 0; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; cursor: default; vertical-align: middle; }
.nw-ai i { font-style: normal; opacity: .6; }
.nw-ai b { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
button.nw-ai { cursor: pointer; transition: transform .15s var(--ease), filter .15s; }
button.nw-ai:hover { transform: translateY(-1px); filter: brightness(1.15); }
button.nw-ai.busy, button.nw-ai[disabled] { opacity: .55; cursor: default; }
.nw-ai.will_post { background: rgba(139,92,246,.22); border-color: rgba(139,92,246,.6); color: #e9e4ff; box-shadow: 0 0 10px rgba(139,92,246,.3); }
.nw-ai.awaiting_approval { background: rgba(245,176,65,.18); border-color: rgba(245,176,65,.7); color: #fde6b8; animation: pulse 1.8s infinite; }
.nw-ai.manual { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: var(--muted); }
.nw-ai.posted { background: rgba(52,211,153,.16); border-color: rgba(52,211,153,.55); color: #c9f7e5; }
a.nw-ai.posted:hover { color: #fff; border-color: #34d399; }
.nw-ai.failed { background: rgba(239,68,68,.16); border-color: rgba(239,68,68,.6); color: #ffd7d7; }
.nw-ai.retrying { background: rgba(251,146,60,.14); border-color: rgba(251,146,60,.6); color: #ffe3c9; }
.nw-ai.draft { background: transparent; border-color: rgba(255,255,255,.28); border-style: dashed; color: var(--muted); }
.nw-ai.past_due { background: transparent; border-color: rgba(239,68,68,.5); color: #f7b7b7; }
/* week view: a row per posting hour */
.nw-pl-week { display: grid; gap: 6px; }
.nw-pl-wrow { display: grid; grid-template-columns: 48px repeat(7, minmax(0, 1fr)); gap: 6px; align-items: stretch; }
.nw-pl-wlabel { font-family: var(--mono); font-size: 10.5px; color: var(--dim); padding-top: 10px; text-align: end; padding-inline-end: 4px; }
.nw-pl-wd { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(23,23,35,.6); font-family: var(--mono); color: var(--muted); min-width: 0; }
.nw-pl-wd small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.nw-pl-wd b { font-family: var(--display); font-size: 15px; color: var(--ink); }
.nw-pl-wd.today { border-color: rgba(34,211,238,.5); } .nw-pl-wd.today b { color: #8be9fd; }
.nw-pl-slot { min-height: 56px; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(23,23,35,.5), rgba(14,14,22,.6)); display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t), background var(--t), box-shadow var(--t); }
.nw-pl-slot.today { border-color: rgba(34,211,238,.35); }
.nw-pl-slot.past { opacity: .75; }
.nw-pl-slot.over { border-color: rgba(34,211,238,.9); background: rgba(34,211,238,.1); box-shadow: 0 0 0 3px rgba(34,211,238,.18); }
/* agenda */
.nw-pl-abar { display: flex; justify-content: flex-end; margin-bottom: 10px; position: relative; }
.nw-pl-agenda.nw-daylist { display: block; }
.nw-pl-agenda .nw-pchip { cursor: pointer; }
.nw-pl-agenda .nw-dl-day { padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(23,23,35,.5); display: grid; gap: 6px; }
.nw-pl-agenda .nw-dl-head { margin-bottom: 2px; }
/* the inline "+ Add post" form */
.nw-add { position: absolute; z-index: 8; inset-inline-start: 0; top: 100%; margin-top: 6px; width: min(300px, calc(100vw - 48px)); padding: 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, #1a1a26, #12121b); box-shadow: 0 24px 60px rgba(0,0,0,.6); display: grid; gap: 8px; animation: panelIn .2s var(--ease) both; cursor: default; }
.nw-day { position: relative; } .nw-day .nw-add { top: auto; inset-inline-start: 50%; transform: translateX(-50%); }
[dir="rtl"] .nw-day .nw-add { transform: translateX(50%); }
.nw-pl-abar .nw-add { top: 100%; inset-inline-start: auto; inset-inline-end: 0; }
.nw-pl-wd { position: relative; } .nw-pl-wd .nw-add { top: 100%; inset-inline-start: 0; font-family: var(--sans); }
.nw-add label { display: grid; gap: 4px; font-size: 11px; color: var(--dim); font-family: var(--display); font-weight: 600; }
.nw-add input, .nw-add select { width: 100%; font: inherit; font-size: 12.5px; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line-2); border-radius: 9px; padding: 7px 9px; }
.nw-add input:focus, .nw-add select:focus { outline: none; border-color: rgba(34,211,238,.7); box-shadow: 0 0 0 2px rgba(34,211,238,.2); }
.nw-add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nw-add-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.nw-add-foot .primary, .nw-add-foot .ghost { border-radius: 999px; padding: 7px 14px; font-size: 11.5px; }
/* the empty state */
.nw-pl-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 20px; border: 1px dashed rgba(255,255,255,.14); border-radius: 20px; background: radial-gradient(60% 50% at 50% 0%, rgba(139,92,246,.14), transparent 70%); }
.nw-pl-empty h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.nw-pl-empty .muted { margin: 0; max-width: 420px; font-size: 13.5px; line-height: 1.55; }
.nw-pl-empty-art { display: grid; grid-template-columns: repeat(7, 22px); gap: 5px; margin-bottom: 6px; }
.nw-pl-empty-art i { height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.03); }
.nw-pl-empty-art i:nth-child(3) { background: rgba(139,92,246,.35); border-color: rgba(139,92,246,.6); box-shadow: 0 0 12px rgba(139,92,246,.4); }
.nw-pl-empty-art i:nth-child(6) { background: rgba(34,211,238,.25); border-color: rgba(34,211,238,.6); }
.nw-pl-empty-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
/* the "AI acts" rail */
.nw-ai-rail { position: sticky; top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-width: 0; overflow-x: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(23,23,35,.88), rgba(14,14,22,.92)); box-shadow: var(--edge); max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: thin; }
.nw-ai-rail > * { min-width: 0; } /* a long campaign name must never widen the rail: every child shrinks, the names ellipsize */
.nw-ai-rail > .nw-kicker { color: #c4b5fd; } .nw-ai-rail > .nw-kicker::before { background: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }
.nw-ai-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.nw-ai-card-head { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-size: 13px; }
.nw-ai-card p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink); } .nw-ai-card p.muted { color: var(--dim); font-size: 11.5px; }
.nw-ai-n { margin-inline-start: auto; font-family: var(--mono); font-size: 10px; padding: 1px 7px; border-radius: 999px; background: rgba(245,176,65,.2); color: #fde6b8; border: 1px solid rgba(245,176,65,.5); }
.nw-ai-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); flex: none; }
.nw-ai-sched.on { border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.07); } .nw-ai-sched.on .nw-ai-dot { background: #8b5cf6; box-shadow: 0 0 10px #8b5cf6; animation: pulse 1.8s infinite; }
.nw-ai-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; }
.nw-ai-count { display: grid; gap: 1px; padding: 8px 8px 7px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); text-align: center; }
.nw-ai-count b { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.nw-ai-count span { overflow-wrap: anywhere; font-size: 10px; color: var(--dim); font-family: var(--display); font-weight: 600; letter-spacing: .02em; }
.nw-ai-count.will_post b { color: #c4b5fd; } .nw-ai-count.awaiting_approval b { color: #fde6b8; } .nw-ai-count.posted b { color: #34d399; } .nw-ai-count.failed b { color: #f87171; } .nw-ai-count.manual b, .nw-ai-count.draft b { color: var(--muted); }
.nw-ai-appr { display: grid; gap: 8px; padding: 8px 0 2px; border-top: 1px solid var(--line); }
.nw-ai-appr-text { display: grid; gap: 2px; min-width: 0; } .nw-ai-appr-text strong { font-size: 12.5px; } .nw-ai-appr-text .muted { font-size: 11px; font-family: var(--mono); word-break: break-word; }
.nw-ai-appr-btns { display: flex; flex-wrap: wrap; gap: 6px; } .nw-ai-appr-btns .primary, .nw-ai-appr-btns .ghost { border-radius: 999px; padding: 6px 12px; font-size: 11px; }
.nw-ai-appr-btns .primary { background: linear-gradient(135deg, #f5b041, #d97706); color: #1a1205; }
.nw-ai-channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.nw-ai-channels li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.nw-ai-channels li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nw-ai-channels li i { width: 8px; height: 8px; border-radius: 50%; flex: none; box-shadow: 0 0 6px currentColor; }
.nw-ai-channels li small { margin-inline-start: auto; color: var(--dim); font-size: 11px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; } .nw-ai-channels li small.ok { color: #34d399; }
.nw-ai-channels li .nw-link { margin-inline-start: auto; font-size: 12px; text-decoration: none; border: 1px solid rgba(34,211,238,.4); border-radius: 999px; padding: 2px 9px; }
.nw-ai-switch { width: 100%; min-width: 0; max-width: 100%; justify-content: flex-start; padding-inline-end: 10px; overflow: hidden; }
.nw-ai-switch .nw-ai-switch-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.nw-ai-switch::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 6px var(--cc); flex: none; order: -1; margin-inline-start: 4px; }
.nw-ai-switch[disabled] { opacity: .5; cursor: default; }
.nw-ai-all { border-radius: 999px; width: 100%; min-width: 0; white-space: normal; line-height: 1.25; } .nw-ai-all[disabled] { opacity: .45; cursor: default; box-shadow: none; } .nw-ai-all[disabled]::after { display: none; }
@media (max-width: 1280px) { .nw-pl-body { grid-template-columns: minmax(0, 1fr) 280px; } }
/* below 1180 px the month needs the whole width: the rail drops under the calendar and lays its cards out side by side */
@media (max-width: 1180px) {
  .nw-pl-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nw-pl-grid .nw-day { min-height: 104px; }
  .nw-ai-rail { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: start; }
  .nw-ai-rail > .nw-kicker, .nw-ai-rail > .nw-ai-all { grid-column: 1 / -1; }
  .nw-ai-rail > .nw-ai-all { justify-self: center; width: min(100%, 420px); }
}
@media (max-width: 900px) {
  .nw-planner { padding: 12px 16px 32px; }
  .nw-pl-top { flex-direction: column; align-items: stretch; gap: 10px; } .nw-pl-title-wrap { flex: none; }
  .nw-pl-nav { justify-content: space-between; } .nw-pl-views { margin-inline-start: 0; }
  .nw-pl-body { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nw-pl-legend { margin-inline-start: 0; flex-basis: 100%; }
  .nw-day-add { opacity: 1; }
  .nw-add { width: min(300px, calc(100vw - 32px)); }
  .nw-pl-wrow { grid-template-columns: 40px repeat(7, minmax(0, 1fr)); gap: 4px; } .nw-pl-wd { padding: 6px 4px; flex-direction: column; gap: 0; } .nw-pl-wd .nw-day-add { display: none; } .nw-pl-slot { padding: 3px; min-height: 40px; } .nw-pl-slot .nw-pchip { padding: 4px 5px 4px 7px; } .nw-pl-slot .nw-pchip-title, .nw-pl-slot .nw-pchip-plat { display: none; } .nw-pl-slot .nw-ai { padding: 1px 5px; font-size: 8.5px; }
}
@media (max-width: 480px) { .nw-planner-btn span { display: none; } .nw-planner-btn svg { margin: 0; } .nw-planner-btn { padding: 7px 9px; } .nw-planner-pill { font-size: 11px; } .nw-pl-filter { max-width: 170px; } }
@media (prefers-reduced-motion: reduce) { .nw-planner, .nw-planner-pill, .nw-planner-pill i, .nw-ai.awaiting_approval, .nw-ai-sched.on .nw-ai-dot, .nw-add { animation: none !important; } .nw-pchip, button.nw-ai { transition: none; } .nw-pchip:hover, button.nw-ai:hover { transform: none; } }

/* ----------------------------------------------------------------- brand memory entry points (v3/memory/CONTRACT.md) */
a.nw-memory { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.nw-remembered { margin-top: 12px; display: grid; gap: 8px; padding: 12px 14px; border: 1px solid rgba(245,176,65,.3); border-radius: 14px; background: linear-gradient(180deg, rgba(245,176,65,.07), rgba(14,14,22,.8)); }
.nw-rem-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.nw-rem-head strong { font-family: var(--display); font-size: 13px; }
.nw-rem-head .muted { font-size: 12px; color: var(--muted); flex: 1 1 200px; }
.nw-rem-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.nw-rem-list li { min-width: 0; max-width: 100%; }
.nw-rem-chip { display: inline-block; max-width: 100%; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--ink); text-decoration: none; background: rgba(255,255,255,.05); border: 1px solid var(--line-2); overflow-wrap: anywhere; }
.nw-rem-chip:hover { border-color: rgba(245,176,65,.6); }
.nw-rem-chip.due, .nw-rem-chip.aging, .nw-rem-chip.dormant { border-style: dashed; }
.nw-mem-stamp { display: block; margin: 0 14px 12px; font-size: 11.5px; color: #fbe3b5; text-decoration: none; }
.nw-mem-stamp::before { content: "◆ "; color: #f5b041; }
.nw-mem-stamp:hover { text-decoration: underline; }
