/* Lenci · Nawaa tools, package "commerce" (ads, product, links; v3/docs/tools/commerce.md). Builds on nawaa-tools.css tokens. Logical
   properties only so Arabic mirrors itself; every editable text is dir="auto"; the app previews are honest mocks (no real numbers). */
.ntc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ntc-chips .nw-chip[aria-pressed="true"]::before { content: "✓"; }
.ntc-chips.plats .nw-chip[aria-pressed="false"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #8b5cf6); flex: none; }
.ntc-est { margin-top: -6px; }
.ntc-est.warn, .ntc-px.over { color: #fca5a5; }
.ntc-store-hint { margin-top: -8px; }

/* the live counter: the platform's own count beside a small bar, a tick where "See more" starts */
.ntc-count { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); }
.ntc-bar { position: relative; width: 96px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; flex: none; }
.ntc-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: #34d399; }
.ntc-bar b { position: absolute; inset-block: 0; width: 2px; background: rgba(255,255,255,.75); }
.ntc-count small { font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
[dir="rtl"] .ntc-count small { font-family: var(--arabic); }
.ntc-count.near .ntc-bar i { background: #22d3ee; } .ntc-count.warn .ntc-bar i, .ntc-count.bad .ntc-bar i { background: #f5b041; } .ntc-count.over .ntc-bar i { background: #ef4444; }
.ntc-count.over small, .ntc-count.bad small { color: #fca5a5; } .ntc-count.warn small { color: #fde68a; }
.ntc-warns { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.ntc-warns:empty { display: none; }
.ntc-warn { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11px; line-height: 1.5; border: 1px solid transparent; overflow-wrap: anywhere; cursor: default; }
.ntc-warn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.ntc-warn.error { color: #fecaca; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.35); }
.ntc-warn.warn { color: #fde68a; background: rgba(245,176,65,.1); border-color: rgba(245,176,65,.3); }
.ntc-warn.info { color: #bae6fd; background: rgba(34,211,238,.07); border-color: rgba(34,211,238,.2); }
.ntc-warn.ok { color: #a7f3d0; background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.25); }
.ntc-field { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10,10,16,.35); transition: border-color .2s; }
.ntc-field[data-level="error"] { border-color: rgba(239,68,68,.45); }
.ntc-field[data-level="warn"] { border-color: rgba(245,176,65,.35); }
.ntc-fhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ntc-fhead .nt-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntc-copy { padding: 3px 9px !important; font-size: 10.5px !important; flex: none; }
.ntc-input { padding: 8px 10px; font-size: 14px; }
textarea.ntc-input { resize: vertical; min-height: 44px; }
textarea.ntc-input.grow { resize: none; overflow-y: auto; max-height: 18em; line-height: 1.5; } /* as tall as its text (commerce-ui.js editField grow) */
.ntc-fline { display: grid; gap: 6px; min-width: 0; }
.ntc-fcount:empty, .ntc-fwarns:empty { display: none; }
.ntc-field.compact { padding: 0; border: 0; background: none; gap: 4px; }
.ntc-field.compact .ntc-fline { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ntc-field.compact .ntc-bar { width: 48px; }
.ntc-field.compact[data-level="error"] .ntc-input { border-color: rgba(239,68,68,.55); }
.ntc-field.compact[data-level="warn"] .ntc-input { border-color: rgba(245,176,65,.45); }
.ntc-toggle { display: inline-flex; align-items: center; gap: 9px; padding-block: 6px; padding-inline: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font: 600 12px var(--display); cursor: pointer; }
.ntc-toggle[hidden], .ntc-link-acts > [hidden] { display: none !important; }
.ntc-toggle i { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(255,255,255,.14); transition: background .2s; flex: none; }
.ntc-toggle i::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s var(--ease); }
.ntc-toggle[aria-checked="true"] { color: var(--ink); border-color: rgba(34,211,238,.5); }
.ntc-toggle[aria-checked="true"] i { background: #22d3ee; }
.ntc-toggle[aria-checked="true"] i::after { inset-inline-start: 14px; }
.ntc-toggle[hidden] { display: none; }
.ntc-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 600 11.5px var(--display); white-space: nowrap; }
.ntc-pill.ok { color: #a7f3d0; background: rgba(52,211,153,.12); } .ntc-pill.warn { color: #fde68a; background: rgba(245,176,65,.12); } .ntc-pill.bad { color: #fecaca; background: rgba(239,68,68,.14); }
.ntc-sechead { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ntc-sechead h3 { margin: 0; font-family: var(--display); font-size: 13.5px; }
.ntc-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; color: #c4b5fd; background: rgba(139,92,246,.14); border: 1px solid rgba(139,92,246,.3); white-space: nowrap; }
.ntc-a { color: #8be9fd; font-size: 11.5px; text-decoration: none; overflow-wrap: anywhere; }
a.ntc-a:hover { text-decoration: underline; }

/* results frame shared by the three tools */
.ntc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ntc-top .nt-meta { overflow-wrap: anywhere; }
.ntc-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ntc-tabs .nw-chip.ntc-has-err::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f87171; margin-inline-start: 2px; }
.ntc-body { display: grid; gap: 12px; min-width: 0; }
.ntc-checks { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: rgba(255,255,255,.02); }
.ntc-checks summary { cursor: pointer; font: 600 12.5px var(--display); color: var(--muted); }
.ntc-checklist { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ntc-checklist li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border-inline-start: 3px solid #f5b041; background: rgba(245,176,65,.05); font-size: 12.5px; }
.ntc-checklist li.error { border-inline-start-color: #f87171; background: rgba(239,68,68,.06); }
.ntc-checklist li strong { font-size: 11.5px; color: var(--muted); }
.ntc-checklist li small { color: var(--dim); font-size: 11.5px; }
.ntc-actions { position: static; }
.ntc-fixed { margin: 0; font-size: 11.5px; color: #a7f3d0; }

/* ads: the matrix (angles × platforms); on a phone each angle stacks its platform cells */
.ntc-matrix { display: grid; gap: 8px; min-width: 0; }
.ntc-mx-row { display: grid; grid-template-columns: minmax(96px, 130px) repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.ntc-mx-head span { font: 700 11.5px var(--display); color: var(--muted); padding: 0 4px; display: flex; align-items: center; gap: 6px; }
.ntc-mx-plat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc, #8b5cf6); flex: none; }
.ntc-mx-angle { align-self: center; font: 700 12.5px var(--display); padding: 6px 4px; }
.ntc-mx-cw { display: flex; min-width: 0; } /* role=cell around the cell's button */
.ntc-mx-cw > .ntc-mx-cell { flex: 1; width: 100%; }
.ntc-mx-cell { display: flex; flex-direction: column; align-items: stretch; gap: 4px; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--pc, #8b5cf6); background: rgba(255,255,255,.025); color: var(--ink); text-align: start; font: 12.5px/1.5 var(--body, inherit); cursor: pointer; transition: border-color .2s, background .2s; }
.ntc-mx-cell:hover, .ntc-mx-cell:focus-visible { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.ntc-mx-cell.error { box-shadow: inset 0 0 0 1px rgba(239,68,68,.35); }
.ntc-mx-cell.empty { cursor: default; color: var(--dim); align-items: center; justify-content: center; }
.ntc-mx-cell strong { font-size: 13px; overflow-wrap: anywhere; }
.ntc-mx-text { color: var(--muted); overflow-wrap: anywhere; white-space: pre-line; }
.ntc-mx-label { display: none; font: 700 10.5px var(--display); color: var(--dim); }
.ntc-mx-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.ntc-mx-foot small { font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.ntc-mx-cell.error .ntc-mx-lv { color: #fca5a5; } .ntc-mx-cell.warn .ntc-mx-lv { color: #fde68a; } .ntc-mx-cell.ok .ntc-mx-lv, .ntc-mx-cell.info .ntc-mx-lv { color: #a7f3d0; }
.ntc-mx-n { font-family: var(--mono); }

/* ads: the Meta-ready block (multiple text options) */
.ntc-metablock { border-color: rgba(24,119,242,.35); background: rgba(24,119,242,.04); }
.ntc-metablock > .nt-hint { margin: 0; }
.ntc-mb-sec { display: grid; gap: 4px; min-width: 0; }
.ntc-mb-list { margin: 0; padding-inline-start: 22px; display: grid; gap: 3px; font-size: 13px; }
.ntc-mb-list li { overflow-wrap: anywhere; }
.ntc-mb-list li::marker { color: var(--dim); font-family: var(--mono); font-size: 11px; }

/* ads: one card per angle with its preview */
.ntc-vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.ntc-variant { border-top: 3px solid var(--pc, #8b5cf6); gap: 10px; }
.ntc-angle { font: 700 12px var(--display); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.07); }
.ntc-pv-wrap { padding-top: 4px; }
.ntc-pv { --pv-bg: #ffffff; --pv-ink: #1c1e21; --pv-dim: #65676b; border-radius: 14px; overflow: hidden; background: var(--pv-bg); color: var(--pv-ink); font: 13px/1.45 -apple-system, "Segoe UI", Inter, Cairo, Roboto, sans-serif; box-shadow: 0 8px 26px rgba(0,0,0,.35); max-width: 380px; }
.ntc-pv[dir="rtl"] { font-family: Cairo, "Geeza Pro", -apple-system, sans-serif; }
.ntc-pv-who { display: flex; align-items: center; gap: 9px; padding: 10px 12px 6px; }
.ntc-pv-who > div { display: grid; min-width: 0; }
.ntc-pv-who strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntc-pv-who small { font-size: 11px; color: var(--pv-dim); }
.ntc-pv-av { width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #8b5cf6, #22d3ee); }
.ntc-pv-text { margin: 0; padding: 2px 12px 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ntc-pv-text b { color: var(--pv-dim); font-weight: 600; }
.ntc-pv-media { position: relative; aspect-ratio: 1.91 / 1; display: grid; place-items: center; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(34,211,238,.3)), repeating-linear-gradient(45deg, #e9e9f2 0 10px, #f4f4f8 10px 20px); color: rgba(0,0,0,.45); font-size: 11px; }
.ntc-pv-media > span { padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.7); }
.ntc-pv-media.tall { aspect-ratio: 9 / 13; max-height: 330px; width: 100%; background: linear-gradient(180deg, #2a2440, #0d0d14 70%); color: rgba(255,255,255,.45); place-items: start center; padding-top: 40%; }
.ntc-pv-media.tall > span { background: rgba(255,255,255,.08); }
.ntc-pv-media.card { margin: 0 12px 12px; border-radius: 14px; overflow: hidden; border: 1px solid #cfd9de; }
.ntc-pv-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; background: #f0f2f5; }
.ntc-pv-bar > div { display: grid; min-width: 0; }
.ntc-pv-bar small { font-size: 10.5px; color: var(--pv-dim); overflow-wrap: anywhere; }
.ntc-pv-bar strong { font-size: 13.5px; overflow-wrap: anywhere; }
.ntc-pv-cta { flex: none; padding: 6px 12px; border-radius: 6px; background: #e4e6eb; color: #050505; font-weight: 600; font-size: 12px; white-space: nowrap; }
.ntc-pv-over { position: absolute; inset-inline: 0; bottom: 0; padding: 12px; display: grid; gap: 4px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); text-align: start; }
.ntc-pv-over .ntc-pv-text { padding: 0; color: #fff; }
.ntc-pv-over .ntc-pv-text b { color: rgba(255,255,255,.75); }
.ntc-pv-over small { color: rgba(255,255,255,.7); font-size: 10.5px; }
.ntc-pv-over .ntc-pv-cta { justify-self: stretch; text-align: center; background: #fe2c55; color: #fff; }
.ntc-pv-snaptop { position: absolute; top: 10px; inset-inline: 10px; display: flex; gap: 8px; align-items: center; color: #fff; text-align: start; }
.ntc-pv-snaptop > div { display: grid; min-width: 0; }
.ntc-pv-snaptop strong { font-size: 13px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.ntc-pv-snaptop small { font-size: 11.5px; opacity: .9; text-shadow: 0 1px 3px rgba(0,0,0,.6); overflow-wrap: anywhere; }
.ntc-pv-cta.up { position: absolute; bottom: 12px; inset-inline: 30%; text-align: center; border-radius: 999px; background: #fffc00; color: #111; }
.ntc-pv-cardtext { position: absolute; inset-inline: 8px; bottom: 8px; display: grid; gap: 2px; padding: 4px 8px; border-radius: 6px; background: rgba(0,0,0,.6); color: #fff; text-align: start; }
.ntc-pv-cardtext strong { font-size: 12.5px; } .ntc-pv-cardtext small { font-size: 10.5px; opacity: .8; }
.ntc-pv-x { --pv-ink: #0f1419; --pv-dim: #536471; }
.ntc-pv-linkedin .ntc-pv-bar { background: #f4f2ee; }
.ntc-pv-linkedin .ntc-pv-cta { border: 1px solid #0a66c2; background: transparent; color: #0a66c2; border-radius: 999px; }
.ntc-pv-tiktok, .ntc-pv-snapchat { background: #0d0d14; max-width: 260px; }

/* Google: the RSA editor beside its preview and coverage */
.ntc-rsa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 14px; align-items: start; }
.ntc-rsa-edit { display: grid; gap: 14px; min-width: 0; }
.ntc-rsa-side { display: grid; gap: 12px; position: sticky; top: 12px; min-width: 0; }
.ntc-rsa-list { display: grid; gap: 8px; min-width: 0; }
.ntc-rsa-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.ntc-rsa-n { padding-top: 10px; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--dim); }
.ntc-rsa-tools { display: flex; align-items: center; gap: 6px; padding-top: 3px; }
.ntc-rsa-tools .ntc-tag { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.ntc-pin { width: auto; padding: 5px 8px; font-size: 11.5px; border-radius: 9px; }
.ntc-add { justify-self: start; }
.ntc-paths { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; direction: ltr; } /* a URL reads left to right in every language */
.ntc-paths .ntc-field { flex: 1 1 150px; }
.ntc-durl bdi { unicode-bidi: isolate; }
.ntc-lane { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.ntc-domain { font-family: var(--mono); font-size: 12px; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.ntc-export { padding: 12px; border-radius: 14px; border: 1px dashed rgba(66,133,244,.45); background: rgba(66,133,244,.05); }
.ntc-serp { display: grid; gap: 8px; min-width: 0; }
.ntc-serp-wrap { display: grid; gap: 8px; }
.ntc-serp-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #fff; color: #202124; font: 14px/1.5 Arial, "Segoe UI", Cairo, sans-serif; box-shadow: 0 8px 26px rgba(0,0,0,.3); text-align: start; min-width: 0; }
.ntc-serp-card[dir="rtl"] { font-family: Arial, Cairo, sans-serif; }
.ntc-serp-sp { font-size: 13px; font-weight: 700; color: #202124; }
.ntc-serp-site { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ntc-serp-site > div { display: grid; min-width: 0; }
.ntc-serp-site span { font-size: 13px; color: #202124; }
.ntc-serp-site small { font-size: 12px; color: #4d5156; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntc-serp-fav { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff !important; background: #4285f4; }
.ntc-serp-title { font-size: 19px; line-height: 1.3; color: #1a0dab; text-decoration: none; overflow-wrap: anywhere; cursor: default; }
.ntc-serp-desc { margin: 0; font-size: 13.5px; color: #4d5156; overflow-wrap: anywhere; }
.ntc-coverage { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.ntc-rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 12.5px; }
.ntc-rules li { display: flex; gap: 8px; color: var(--muted); }
.ntc-rules li.no { color: #fde68a; }
.ntc-mark { width: 16px; flex: none; text-align: center; font-weight: 700; }
.ntc-rules li.ok .ntc-mark { color: #34d399; } .ntc-rules li.no .ntc-mark { color: #f87171; }

/* product */
.ntc-photo { position: relative; }
.ntc-drop { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: rgba(255,255,255,.02); cursor: pointer; color: var(--muted); transition: border-color .2s, background .2s; }
.ntc-drop:hover, .ntc-photo input:focus-visible + .ntc-drop { border-color: rgba(34,211,238,.6); background: rgba(34,211,238,.05); }
.ntc-drop svg { width: 28px; height: 28px; flex: none; color: #67e8f9; }
.ntc-drop img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.ntc-drop > span { display: grid; gap: 2px; min-width: 0; }
.ntc-drop strong { color: var(--ink); font-size: 13.5px; overflow-wrap: anywhere; }
.ntc-drop small { font-size: 11.5px; }
.ntc-page { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(34,211,238,.25); background: rgba(34,211,238,.05); }
.ntc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 12.5px; }
.ntc-facts dt { color: var(--dim); } .ntc-facts dd { margin: 0; overflow-wrap: anywhere; }
.ntc-pd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 14px; align-items: start; }
.ntc-pd-main { display: grid; gap: 12px; min-width: 0; }
.ntc-pd-side { display: grid; gap: 12px; position: sticky; top: 12px; min-width: 0; }
.ntc-group { display: grid; gap: 8px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.015); min-width: 0; }
.ntc-group > .ntc-field { background: rgba(10,10,16,.4); }

.ntc-sec { display: grid; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--line); }
.ntc-sec > .ntc-tag { justify-self: start; }
.ntc-px { font-family: var(--mono); font-size: 10.5px; color: var(--dim); }
[dir="rtl"] .ntc-px { font-family: var(--arabic); }
.ntc-kw { display: flex; flex-wrap: wrap; gap: 6px; }
.ntc-kw .ntc-tag { color: var(--ink); background: rgba(255,255,255,.05); border-color: var(--line-2); font-size: 11.5px; white-space: normal; }
.ntc-outbtns { display: flex; flex-wrap: wrap; gap: 6px; }
.ntc-html summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ntc-html pre { margin: 8px 0 0; max-height: 260px; overflow: auto; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.35); font: 11px/1.5 var(--mono); color: #c7d2fe; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.ntc-paste { margin: 0; }

/* links */
.ntc-basemsg { display: flex; flex-wrap: wrap; gap: 5px; }
.ntc-basemsg:empty { display: none; }
.ntc-norm { font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
[dir="rtl"] .ntc-norm { font-family: var(--arabic); }
.ntc-adv summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding: 4px 0; }
.ntc-adv[open] > .nt-row, .ntc-adv[open] > .nt-field { margin-top: 10px; }
.ntc-links { display: grid; gap: 10px; }
.ntc-link { display: grid; grid-template-columns: minmax(0, 1fr) 96px; grid-template-areas: "head qr" "fields qr" "out qr"; gap: 8px 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); border-inline-start: 3px solid var(--pc, #8b5cf6); background: rgba(255,255,255,.02); min-width: 0; }
.ntc-link-head { grid-area: head; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.ntc-plat { font-family: var(--display); font-size: 13.5px; }
.ntc-ch { padding: 2px 9px; border-radius: 999px; font: 600 11px var(--display); color: #a7f3d0; background: rgba(52,211,153,.12); white-space: nowrap; }
.ntc-ch.paid { color: #c7d2fe; background: rgba(99,102,241,.18); }
.ntc-ch.bad { color: #fde68a; background: rgba(245,176,65,.14); }
.ntc-link-fields { grid-area: fields; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ntc-mini { display: grid; gap: 3px; min-width: 0; }
.ntc-mini span { font-family: var(--mono); font-size: 10px; color: var(--dim); direction: ltr; text-align: start; }
.ntc-mini .nt-input { padding: 6px 9px; font: 12.5px var(--mono); }
.ntc-link-out { grid-area: out; display: grid; gap: 6px; min-width: 0; }
.ntc-url { display: block; padding: 7px 10px; border-radius: 9px; background: rgba(0,0,0,.35); font: 11.5px/1.5 var(--mono); color: #c7d2fe; overflow-wrap: anywhere; word-break: break-all; text-align: left; }
.ntc-link-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.ntc-qr { grid-area: qr; align-self: start; padding: 6px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.ntc-qr svg { width: 84px; height: 84px; display: block; }
.ntc-qr .nt-hint { color: #555; font-size: 10px; text-align: center; }
.ntc-check:empty { display: none; }
.ntc-check .nt-note p { margin: 4px 0 0; overflow-wrap: anywhere; }
.ntc-check .nt-note small { display: block; margin-top: 4px; }
.ntc-viewseg { justify-self: start; }
.ntc-ltable .nt-copy { white-space: nowrap; }
/* kit fix, scoped to this package's tools (wished in nawaa-tools.css for every tool): a History row is a grid item whose min-content
   (a long title that never wraps) widened the list past a phone screen, so its Save and × buttons were cut off */
#tools[data-tool="ads"] .nt-hrow, #tools[data-tool="product"] .nt-hrow, #tools[data-tool="links"] .nt-hrow { min-width: 0; }
.ntc-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.015); max-width: 100%; }
.ntc-ltable { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 720px; }
.ntc-ltable th, .ntc-ltable td { padding: 8px 10px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.ntc-ltable thead th { font: 700 10.5px var(--display); color: var(--dim); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ntc-ltable tbody tr:last-child > * { border-bottom: 0; }
.ntc-ltable tbody th { font: 700 12.5px var(--display); white-space: nowrap; border-inline-start: 3px solid var(--pc, #8b5cf6); }
.ntc-mono { font-family: var(--mono); font-size: 11.5px; }
.ntc-turl { color: #c7d2fe; overflow-wrap: anywhere; word-break: break-all; min-width: 260px; }
.ntc-legend summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.ntc-legend p { margin: 6px 0 0; }

@media (max-width: 1100px) {
  .ntc-rsa, .ntc-pd { grid-template-columns: minmax(0, 1fr); }
  .ntc-rsa-side, .ntc-pd-side { position: static; }
}
@media (max-width: 900px) {
  .ntc-mx-head { display: none; }
  .ntc-mx-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 6px; border-bottom: 1px dashed var(--line); }
  .ntc-mx-angle { padding: 4px 0 0; }
  .ntc-mx-label { display: block; }
}
@media (max-width: 640px) {
  .ntc-vgrid { grid-template-columns: minmax(0, 1fr); }
  .ntc-pv { max-width: none; }
  .ntc-pv-tiktok, .ntc-pv-snapchat { max-width: 280px; }
  .ntc-rsa-row { grid-template-columns: 18px minmax(0, 1fr); row-gap: 4px; }
  .ntc-rsa-tools { grid-column: 2; flex-wrap: nowrap; padding-top: 0; min-width: 0; }
  .ntc-rsa-tools .ntc-pin { flex: 0 1 auto; min-width: 0; width: auto !important; }
  .ntc-field.compact .ntc-bar { display: none; } /* the count stays beside the field; the bar would squeeze it */
  .ntc-paths .ntc-field { flex: 1 1 96px; }
  .ntc-link { grid-template-columns: minmax(0, 1fr) 76px; grid-template-areas: "head qr" "fields fields" "out out"; padding: 12px; }
  .ntc-qr svg { width: 64px; height: 64px; }
  .ntc-link-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ntc-link-fields .ntc-mini:last-child { grid-column: 1 / -1; }
  .ntc-facts { grid-template-columns: minmax(0, 1fr); } .ntc-facts dd { margin-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) { .ntc-toggle i, .ntc-toggle i::after, .ntc-field { transition: none !important; } }

/* product: where the alt text comes from (the owner's photo, the page's photo, or only the facts) */
.ntc-altfrom { display: block; margin-top: 2px; }
.ntc-altfrom.warn { color: #fde68a; }
