/* lesson_shell.css — التبويبات الموحّدة، التوضيح التفاعلي داخل الشرح الوافي، ودفتر الملاحظات */

:root {
  --np-paper: #FFFDF6;
  --np-rule: #E4E9EE;          /* سطور الدفتر */
  --np-margin: #E39A8E;        /* خط الهامش الأحمر في دفتر المدرسة */
  --np-ink: #23251E;
  --np-ink-2: #6E6E62;
  --np-accent: #9A6B12;        /* لون أزرار النص: كهرماني يقرأ جيداً على الورق */
  --np-board: #1E4A3E;
  --np-wood: #8B5E3C;
  --np-chalk: #FFDF8A;
  --np-line: rgba(60, 50, 30, 0.12);
}

/* ---------- شريط التبويبات ---------- */
.topic-ribbon-nav .ribbon-tab-btn { flex: 1 1 0; }
@media (max-width: 640px) {
  .topic-ribbon-nav .ribbon-tab-btn .ribbon-text { display: none; }
  .topic-ribbon-nav .ribbon-tab-btn .ribbon-short { display: inline; }
}

/* ---------- التوضيح التفاعلي داخل الشرح الوافي ---------- */
.wafi-lab {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px dashed rgba(139, 94, 60, 0.35);
}
.wafi-lab[hidden] { display: none; }
.wafi-lab-head { margin-bottom: 1rem; }
.wafi-lab-kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--np-board);
  background: #E6EFE9; border-radius: 999px; padding: 0.15rem 0.7rem; margin-bottom: 0.4rem;
}
.wafi-lab-title { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--np-ink); }
.wafi-lab-sub { margin: 0.3rem 0 0; color: var(--np-ink-2); font-size: 0.92rem; line-height: 1.7; max-width: 62ch; }
.wafi-lab > #content-math-lab-body > .page-strip { display: none; }

/* ---------- زر + العائم ---------- */
.np-fab {
  position: fixed; z-index: 1200;
  inset-inline-end: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 60px; height: 60px; border-radius: 50%;
  background: radial-gradient(120% 120% at 30% 20%, #2A5E50 0%, var(--np-board) 55%, #173D33 100%);
  border: 4px solid var(--np-wood);
  box-shadow: 0 8px 22px rgba(40, 28, 12, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--np-chalk);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.np-fab[hidden] { display: none; }
.np-fab svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.np-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(40, 28, 12, 0.36); }
.np-fab:active { transform: scale(0.95); }
.np-fab:focus-visible { outline: 3px solid var(--np-chalk); outline-offset: 3px; }
html.np-open .np-fab { opacity: 0; pointer-events: none; }

/* ---------- لوحة الملاحظات ---------- */
.np-root { position: fixed; inset: 0; z-index: 1300; font-family: var(--font-base, system-ui); direction: rtl; }
.np-root[hidden] { display: none; }
.np-scrim { position: absolute; inset: 0; background: rgba(28, 24, 16, 0.32); opacity: 0; transition: opacity 0.18s ease; }
.np-root.is-open .np-scrim { opacity: 1; }

.np-sheet {
  position: absolute; inset-inline-end: 22px; bottom: 22px;
  width: min(880px, calc(100vw - 44px)); height: min(640px, calc(100vh - 44px));
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  background: var(--np-paper); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(30, 22, 10, 0.35), 0 0 0 1px rgba(60, 50, 30, 0.08);
  transform: translateY(14px) scale(0.985); opacity: 0;
  transition: transform 0.2s cubic-bezier(.2,.8,.2,1), opacity 0.18s ease;
  transform-origin: bottom left;
}
.np-root.is-open .np-sheet { transform: none; opacity: 1; }

/* القائمة */
.np-list { min-width: 0; display: flex; flex-direction: column; background: #F5F2EA; border-inline-end: 1px solid var(--np-line); min-height: 0; }
.np-list-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.np-list-head h2 { margin: 0; font-size: 1.55rem; font-weight: 800; color: var(--np-ink); letter-spacing: 0; }
.np-search {
  display: flex; align-items: center; gap: 6px; margin: 4px 14px 10px; padding: 0 10px;
  background: rgba(118, 118, 128, 0.12); border-radius: 10px; color: var(--np-ink-2);
}
.np-search svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.np-search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 0.95rem; padding: 8px 0; color: var(--np-ink); outline: none; min-width: 0; }
.np-rows { flex: 1; overflow-y: auto; padding: 0 10px 10px; overscroll-behavior: contain; }
.np-group { margin: 14px 8px 6px; font-size: 1rem; font-weight: 800; color: var(--np-ink); }
.np-card { background: #fff; border-radius: 12px; overflow: hidden; }
.np-row {
  display: block; width: 100%; text-align: start; border: 0; background: transparent; cursor: pointer;
  padding: 10px 14px; font: inherit; color: var(--np-ink); position: relative;
}
.np-row + .np-row::before { content: ""; position: absolute; top: 0; inset-inline: 14px 0; border-top: 1px solid var(--np-line); }
.np-row.is-on { background: #F3DE9C; }
.np-row.is-on + .np-row::before, .np-row.is-on::before { border-color: transparent; }
.np-row:focus-visible { outline: 2px solid var(--np-accent); outline-offset: -2px; }
.np-row-t { display: block; font-weight: 700; font-size: 0.98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row-m { display: block; margin-top: 2px; font-size: 0.85rem; color: var(--np-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-row-m b { color: var(--np-ink); font-weight: 600; margin-inline-end: 4px; }
.np-row-m i { font-style: normal; }
.np-row-p { display: block; margin-top: 3px; font-size: 0.78rem; color: #4E6B5E; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-none { color: var(--np-ink-2); font-size: 0.92rem; line-height: 1.7; padding: 18px 10px; }
.np-list-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; border-top: 1px solid var(--np-line); }
.np-count { font-size: 0.8rem; color: var(--np-ink-2); }

/* الأزرار */
.np-icon {
  width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--np-accent);
}
.np-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.np-icon:hover { background: rgba(154, 107, 18, 0.1); }
.np-icon:focus-visible, .np-textbtn:focus-visible { outline: 2px solid var(--np-accent); outline-offset: 1px; }
.np-icon.is-on { color: #fff; background: var(--np-accent); }
.np-textbtn {
  border: 0; background: transparent; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem;
  color: var(--np-accent); display: inline-flex; align-items: center; gap: 2px; padding: 6px 8px; border-radius: 8px;
}
.np-textbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.np-textbtn:hover { background: rgba(154, 107, 18, 0.1); }

/* المحرر: ورقة دفتر مدرسي مسطّر بهامش أحمر على اليمين */
.np-editor { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--np-paper); }
.np-ed-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--np-line); }
.np-back { visibility: hidden; }
.np-ed-tools { display: flex; align-items: center; gap: 2px; }
.np-paper[hidden], .np-empty[hidden], .np-place[hidden] { display: none; }
.np-paper {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  --lh: 2rem;
  padding: 10px 56px 40px 28px;
  background: linear-gradient(to left, transparent 42px, var(--np-margin) 42px, var(--np-margin) 43.5px, transparent 43.5px);
}
.np-date { margin: 0; text-align: center; font-size: 0.8rem; color: var(--np-ink-2); line-height: 1.6rem; }
.np-place {
  display: block; margin: 0 auto 4px; border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 0.82rem; color: #3F6B5A; text-decoration: underline; text-underline-offset: 3px; line-height: 1.4rem;
}
.np-ed {
  outline: none; min-height: 60vh; color: var(--np-ink); margin-top: 6px;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--np-rule) calc(var(--lh) - 1px), var(--np-rule) var(--lh));
  font-size: 1.05rem; line-height: var(--lh); word-wrap: break-word; caret-color: var(--np-accent);
}
.np-ed > div:first-child { font-size: 1.45rem; font-weight: 800; line-height: var(--lh); }
.np-ed > div { min-height: var(--lh); }
.np-ed > .chk { position: relative; padding-inline-start: 34px; }
.np-ed > .chk::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: calc(var(--lh) / 2 - 11px);
  width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid #A9A493; background: #fff; cursor: pointer;
}
.np-ed > .chk.done { color: var(--np-ink-2); }
.np-ed > .chk.done::before {
  border-color: var(--np-accent); background: var(--np-accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.5 3.5 7.5-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat;
}
.np-empty { flex: 1; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--np-ink-2); padding: 24px; }
.np-empty p { margin: 0; }

/* الهاتف: شاشة كاملة، قائمة ثم محرر */
@media (max-width: 760px) {
  .np-sheet { inset: 0; width: 100%; height: 100%; border-radius: 0; grid-template-columns: minmax(0, 1fr); transform: translateY(24px); }
  .np-editor { display: none; }
  .np-root.show-editor .np-list { display: none; }
  .np-root.show-editor .np-editor { display: flex; }
  .np-back { visibility: visible; }
  .np-ed-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
  .np-list-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .np-list-head h2 { font-size: 2rem; }
  .np-paper { padding: 8px 48px 40px 16px;
    background: linear-gradient(to left, transparent 34px, var(--np-margin) 34px, var(--np-margin) 35.5px, transparent 35.5px); }
  .np-fab { inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; }
}

/* أجهزة التاب والشاشات المتوسطة: الدفتر يملأ الشاشة، والقائمة بجانب الصفحة */
@media (min-width: 761px) and (max-width: 1180px) {
  .np-sheet { inset: 0; width: 100%; height: 100%; border-radius: 0; grid-template-columns: minmax(250px, 30%) minmax(0, 1fr); transform: translateY(16px); }
  .np-list-head { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
  .np-ed-head { padding-top: calc(8px + env(safe-area-inset-top, 0px)); }
}

@media (prefers-reduced-motion: reduce) {
  .np-sheet, .np-scrim, .np-fab { transition: none; }
}

/* ---------- الكتابة بالقلم ---------- */
.np-ink-wrap { position: relative; }
.np-ink { position: absolute; inset: 0; pointer-events: none; }
.np-root.is-ink .np-ink-wrap { touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.np-root.is-ink .np-ed { pointer-events: none; }
.np-root.is-ink .np-t-check { opacity: 0.35; pointer-events: none; }
.np-row-ink { color: #3F6B5A; font-weight: 600; }

/* لوحة أدوات القلم: تطفو أسفل الورقة مثل ملاحظات الآيباد */
.np-editor { position: relative; }
.np-tray {
  position: absolute; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  background: rgba(255, 253, 246, 0.96); backdrop-filter: blur(8px);
  border: 1px solid rgba(60, 50, 30, 0.14); border-radius: 18px;
  box-shadow: 0 10px 28px rgba(40, 28, 12, 0.22); z-index: 2; max-width: calc(100% - 20px); overflow-x: auto;
}
.np-tray[hidden] { display: none; }
.np-tray-g { display: flex; align-items: center; gap: 2px; padding-inline: 4px; }
.np-tray-g + .np-tray-g { border-inline-start: 1px solid rgba(60, 50, 30, 0.14); }
.np-tool, .np-swatch, .np-size {
  width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--np-ink); flex: none;
}
.np-tool svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-tool.is-on { background: var(--np-board); color: var(--np-chalk); }
.np-tool:disabled { opacity: 0.3; cursor: default; }
.np-swatch::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.np-swatch.is-on::before { box-shadow: 0 0 0 2px var(--np-paper), 0 0 0 4px var(--sw); }
.np-size i { width: var(--d); height: var(--d); border-radius: 50%; background: var(--np-ink); }
.np-size.is-on { background: rgba(30, 74, 62, 0.12); }
.np-tool:focus-visible, .np-swatch:focus-visible, .np-size:focus-visible { outline: 2px solid var(--np-accent); outline-offset: 1px; }
@media (max-width: 760px) {
  .np-tray { gap: 2px; padding: 4px; border-radius: 14px; }
  .np-tool, .np-swatch, .np-size { width: 36px; height: 36px; }
}

/* ---------- الصور والقصاصات ---------- */
.np-fig { position: relative; margin: 8px 0; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(40, 28, 12, 0.14); display: block; max-width: 100%; }
.np-fig img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.np-fig figcaption { font-size: 0.78rem; color: #3F6B5A; line-height: 1.4rem; padding: 2px 4px 0; }
.np-fig.is-missing::before { content: "الصورة غير موجودة على هذا الجهاز"; display: block; padding: 18px; color: var(--np-ink-2); font-size: 0.85rem; }
.np-fig-del { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(35, 37, 30, 0.7); color: #fff; font-size: 1.1rem; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.np-fig:hover .np-fig-del, .np-fig:focus-within .np-fig-del { opacity: 1; }
@media (hover: none) { .np-fig-del { opacity: 0.85; } }
.np-root.is-ink .np-fig-del { display: none; }

/* زر القص فوق زر + */
.np-snip-btn {
  position: fixed; z-index: 1200; inset-inline-end: 30px; bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--np-wood); background: #FFFDF6; color: var(--np-board);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px rgba(40, 28, 12, 0.24);
}
.np-snip-btn[hidden] { display: none; }
.np-snip-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.np-snip-btn:focus-visible { outline: 3px solid var(--np-chalk); outline-offset: 3px; }
html.np-open .np-snip-btn { display: none; }
@media (max-width: 760px) { .np-snip-btn { inset-inline-end: 22px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

/* طبقة القص */
.np-snip { position: fixed; inset: 0; z-index: 1400; cursor: crosshair; touch-action: none; background: rgba(20, 30, 26, 0.18); }
.np-snip-hint {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px;
  background: var(--np-board); color: var(--np-chalk); border: 3px solid var(--np-wood); border-radius: 14px;
  font-family: var(--font-base, system-ui); font-size: 0.95rem; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.25); max-width: calc(100vw - 32px);
}
.np-snip-cancel { border: 0; background: #FFFDF6; color: var(--np-board); font: inherit; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer; }
.np-snip-box { position: fixed; border: 2px dashed var(--np-chalk); box-shadow: 0 0 0 9999px rgba(20, 30, 26, 0.35); background: transparent; border-radius: 4px; }
.np-snip.is-busy { cursor: progress; }
.np-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1500; background: #23251E; color: #fff; padding: 10px 16px; border-radius: 10px; font-family: var(--font-base, system-ui); font-size: 0.92rem; }
.np-snip:has(.np-snip-box:not([hidden])) { background: transparent; }

/* ---------- تصحيح المسائل داخل الدفتر ---------- */
.np-ed > div[data-mark] { position: relative; }
.np-ed > div[data-mark]::after {
  content: "✓"; display: inline-block; margin-inline-start: 10px; font-weight: 800; color: #15803D; font-size: 1rem;
}
.np-ed > div[data-mark="no"] { text-decoration: underline wavy #C0392B 1.5px; text-underline-offset: 6px; }
.np-ed > div[data-mark="no"]::after { content: "✗ " attr(data-hint); color: #B03A2E; font-size: 0.85rem; font-weight: 600; text-decoration: none; }

/* ---------- التقرير ---------- */
.np-report { flex: 1; overflow-y: auto; padding: 20px 28px 40px; color: var(--np-ink); }
.np-report[hidden] { display: none; }
.np-rep-title { margin: 0; font-size: 1.6rem; font-weight: 800; }
.np-rep-sub { margin: 4px 0 16px; color: var(--np-ink-2); font-size: 0.9rem; line-height: 1.7; }
.np-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.np-stat { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 1px 3px rgba(40, 28, 12, 0.1); }
.np-stat b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--np-board); }
.np-stat span { font-size: 0.82rem; color: var(--np-ink-2); }
.np-rep-h { margin: 18px 0 8px; font-size: 1.05rem; font-weight: 800; }
.np-rep-list { margin: 0; padding-inline-start: 18px; line-height: 1.8; }
.np-rep-list span { color: var(--np-ink-2); font-size: 0.9rem; }
.np-rep-good { color: #15803D; font-weight: 600; }
.np-rep-text { white-space: pre-wrap; font-family: inherit; font-size: 0.92rem; line-height: 1.8; background: #fff; border-radius: 12px; padding: 12px 14px; margin: 0; box-shadow: inset 0 0 0 1px var(--np-line); }
.np-rep-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.np-btn { border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--np-board); color: var(--np-chalk); min-height: 44px; }
.np-btn-2 { background: #fff; color: var(--np-board); box-shadow: inset 0 0 0 1.5px var(--np-board); }
.np-btn:focus-visible { outline: 3px solid var(--np-accent); outline-offset: 2px; }
.np-rep-note { color: var(--np-ink-2); font-size: 0.82rem; margin-top: 8px; }
.np-list-foot .np-textbtn { font-size: 0.92rem; }
@media (max-width: 760px) { .np-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .np-report { padding: 16px; } }

.np-ed > div[dir="ltr"] { text-align: right; unicode-bidi: isolate; }
.np-ed > div[dir="ltr"][data-mark]::after { margin-inline-start: 0; margin-left: 10px; }
.np-ed > .chk[dir="ltr"] { padding-inline-start: 0; padding-right: 34px; }
.np-ed > .chk[dir="ltr"]::before { inset-inline-start: auto; right: 2px; }

/* ---------- المحذوفة مؤخراً ---------- */
.np-list-head { gap: 6px; }
.np-list-back[hidden] { display: none; }
.np-trash-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 14px; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--np-ink); }
.np-trash-link svg { width: 20px; height: 20px; fill: none; stroke: var(--np-accent); stroke-width: 1.9; }
.np-trash-link span { flex: 1; text-align: start; font-weight: 600; }
.np-trash-link b { color: var(--np-ink-2); font-weight: 600; }
.np-trash-note { color: var(--np-ink-2); font-size: 0.85rem; line-height: 1.6; margin: 4px 8px 10px; }
.np-trash-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; background: #FBEFD5; border-bottom: 1px solid var(--np-line); font-size: 0.92rem; }
.np-trash-banner[hidden] { display: none; }
.np-trash-banner span { flex: 1 1 200px; }
.np-root.is-trashed .np-ed-tools .np-icon:not(.np-t-del) { opacity: .3; pointer-events: none; }
.np-root.is-trashed .np-t-del { display: none; }

/* نافذة التأكيد ونافذة التحويل */
.np-confirm { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(28, 24, 16, 0.38); padding: 16px; }
.np-confirm-box { width: min(420px, 100%); background: var(--np-paper); border-radius: 16px; padding: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.np-confirm-box h3 { margin: 0 0 6px; font-size: 1.15rem; font-weight: 800; color: var(--np-ink); }
.np-confirm-box p { margin: 0 0 14px; color: var(--np-ink-2); line-height: 1.7; font-size: 0.95rem; }
.np-confirm-btns { display: flex; justify-content: flex-end; gap: 8px; }
.np-danger { background: #B03A2E; color: #fff; }
.np-conv { width: min(560px, 100%); }
.np-conv-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 45vh; overflow: auto; }
.np-conv-row { display: flex; align-items: center; gap: 8px; }
.np-conv-row input[type=checkbox], .np-conv-keep input { width: 20px; height: 20px; accent-color: var(--np-board); }
.np-conv-row input[type=text] { flex: 1; min-width: 0; font: inherit; font-size: 1.2rem; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--np-line); background: #fff; text-align: right; }
.np-conv-row input[type=text]:focus { outline: 2px solid var(--np-accent); border-color: transparent; }
.np-conv-keep { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 0.92rem; color: var(--np-ink-2); }
