/* css/np-ui.css -- חלון מחיקה אחיד, "יש לכם KEY?" ותצוגה מקדימה לפני ייבוא (הודעה 15, פריטים 8-10).
   מקור: mock.css של CTO-UX (UX_assets 2026-10-30 transfer-A), מחלקות nx-*; מותאם לטוקנים של EnergyFocus.
   הכפתור הראשי הוא תמיד .btn-primary של האפליקציה. מאפיינים לוגיים בלבד (RTL/LTR). בלי אדום לכישלון: אזהרה בצהוב.
   כל הצבעים מול הרקע שלהם: AA (נבדק ב-qa/np_ui_test.mjs). */
.app-modal.nx-sheet { align-items: flex-end; padding: 0; }
.app-modal.nx-center { padding: 16px; }
.nx-card { background: var(--white); width: 100%; max-width: 480px; max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain; border-radius: 22px 22px 0 0; padding: 16px 16px 8px; box-sizing: border-box; font-family: var(--font-body); color: var(--text); text-align: start; font-size: 14px; line-height: 1.45; }
.nx-card h2 { font: 800 17px/1.3 var(--font-ui); margin: 0 0 8px; text-align: center; }
.nx-dlg { border-radius: 20px; padding: 20px 16px 16px; text-align: center; max-width: 440px; }
.nx-dlg p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--text); }
.nx-dicon { display: flex; justify-content: center; margin-bottom: 6px; color: var(--accent-text); }
.nx-dicon svg { width: 32px; height: 32px; }
.nx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-auto-rows: 1fr; margin-bottom: 8px; }
.nx-two > * { width: 100%; }
.nx-one { display: flex; justify-content: center; margin-bottom: 8px; }
.nx-btn1, .nx-btn2, .nx-del { min-height: 44px; border-radius: 999px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font: 800 14px var(--font-ui); padding: 6px 14px; cursor: pointer; }
.nx-btn1 { padding: 6px 18px; min-width: 88px; white-space: nowrap; }          /* מקבל גם .btn-primary */
.nx-btn2 { border: 1.5px solid var(--accent-dark); background: var(--accent-soft); color: var(--accent-text); gap: 6px; }
.nx-del { border: 1.5px solid var(--red-text); background: var(--white); color: var(--red-text); }
.nx-wide { width: 100%; }
.nx-btn2:focus-visible, .nx-del:focus-visible, .nx-btn1:focus-visible, .nx-havekey:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* "יש לכם KEY?" */
.nx-havekey { font-weight: 800; color: var(--accent-text); text-decoration: underline; min-height: 44px; }
.nx-panel { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: none; flex-direction: column; gap: 10px; margin: 10px 0; text-align: start; width: 100%; max-width: 340px; box-sizing: border-box; }
.nx-panel.show { display: flex; }
.nx-h { font: 800 14px var(--font-ui); margin: 0; }
.nx-inrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.nx-in { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--border); padding: 0 10px; font: 800 16px ui-monospace, monospace; letter-spacing: .06em; direction: ltr; text-align: center; min-width: 0; box-sizing: border-box; background: var(--white); color: var(--text); }
.nx-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.nx-in-warn { border-color: #B7791F; background: #FFFBEB; }
.nx-warn { display: none; margin: 0; font-size: 13px; color: #7A5200; background: #FFF8E6; border-radius: 10px; padding: 8px 10px; }
.nx-warn.show { display: block; }
.nx-or { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.nx-or:before, .nx-or:after { content: ""; flex: 1; height: 1px; background: var(--border); }
.nx-sub { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin: 0; text-align: center; }

/* תצוגה מקדימה */
.nx-name { font: 800 16px var(--font-ui); text-align: center; margin: -4px 0 8px; }
.nx-cmp { display: flex; flex-direction: column; gap: 8px; }
.nx-prof { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 14px; padding: 10px 12px; flex: 1; }
.nx-win .nx-prof { background: var(--accent-soft); outline: 1.5px solid var(--accent-dark); }
.nx-av { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--navy); font: 900 18px/44px var(--font-ui); text-align: center; flex-shrink: 0; overflow: hidden; }
.nx-av.sm { width: 34px; height: 34px; font-size: 14px; line-height: 34px; }
.nx-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nx-prof b, .nx-list b { font: 800 16px var(--font-ui); display: block; }
.nx-prof i { font: 800 12.5px var(--font-ui); font-style: normal; color: var(--muted); display: block; }
.nx-prof span, .nx-list span { font-size: 13.5px; color: var(--text); display: block; }
.nx-ok { font-size: 13px; color: var(--green-text); font-weight: 700; margin: 12px 2px; text-align: center; }
.nx-mid { margin: 12px 2px; text-align: center; font-size: 13.5px; color: var(--text); }
.nx-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nx-list li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 8px 10px; }
.nx-chip { display: inline-block; margin-top: 4px; font: 700 12px var(--font-ui); font-style: normal; border-radius: 999px; padding: 2px 8px; background: var(--white); border: 1px solid var(--border); color: var(--text); }
.nx-chip.new { color: var(--green-text); border-color: #99D5CD; }
.nx-chip.upd { color: var(--accent-text); border-color: var(--accent-dark); }
.nx-note { display: flex; gap: 10px; align-items: flex-start; background: #FFF8E6; border: 1.5px solid #E8C35A; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: #5C4400; margin-bottom: 12px; }
.nx-card[hidden], .nx-step[hidden] { display: none; }

/* ---------- סרגל עליון: גלגל שיניים אחד (CTO הודעה 17). אייקון PNG בגרדיאנט צרוב, בלי גרדיאנט ב-CSS ---------- */
.ut-gear { width: 44px; height: 44px; display: grid; place-items: center; border: none; border-radius: 10px; background: transparent; padding: 0; flex-shrink: 0; cursor: pointer; } /* ux-0811 (2): גלגל בלי מסגרת ובלי ריבוע אפור */
.ut-gear img { width: 24px; height: 24px; display: block; }
.ut-gear:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.nx-dicon img { width: 40px; height: 40px; display: block; }

/* ---------- חלון "הפרופיל והנתונים שלכם" (CTO הודעה 18; עיצוב Daily Balance: CTO הודעה 37, gear-panel.html) ----------
   כרטיסים: אייקון בריבוע בגוון הרך של EnergyFocus (#FAE8FF), כותרת ושורה קצרה, חץ. בלי Daily Balance. בטלפון קטן החלון נגלל בתוכו. */
.nw-card { padding: 0 14px 14px; --nw-soft: #FAE8FF; --nw-line: #E2E8F0; }
.nw-grab { display: block; width: 40px; height: 4px; border-radius: 4px; background: #CBD2DC; margin: 8px auto 8px; }
.nw-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nw-ht { flex: 1; min-width: 0; line-height: 1.3; }
.nw-ht b { display: block; font: 800 16px var(--font-ui); overflow-wrap: anywhere; }
.nw-hsub { font-size: 12.5px; }
.nw-x { width: 44px; height: 44px; flex: none; border: 0; background: none; color: #475569; font-size: 15px; cursor: pointer; border-radius: 50%; display: grid; place-items: center; }
.nw-x span { width: 36px; height: 36px; border-radius: 50%; background: #F1F5F9; display: grid; place-items: center; }
.nw-mut { color: var(--muted); }
.nw-sm { font-size: 13px; }
.nw-xs { font-size: 12px; margin: 8px 0 0; }
.nw-xs2 { font-size: 12px; display: block; }
.nw-center { text-align: center; }
.nw-av { width: 40px; height: 40px; border-radius: 50%; background: var(--gradient-cta) var(--gradient-cta-fallback); display: grid; place-items: center; overflow: hidden; flex: none; font: 900 17px var(--font-ui); color: var(--navy); }
.nw-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-si { width: 36px; height: 36px; border-radius: 11px; background: var(--nw-soft); display: grid; place-items: center; flex: none; }
.nw-si img, .nw-si svg { width: 20px; height: 20px; display: block; }
.nw-si-white { background: var(--white); }
.nw-keyline { display: flex; align-items: center; gap: 10px; background: var(--nw-soft); border-radius: 16px; padding: 10px 12px; margin-bottom: 10px; }
.nw-kt { flex: 1; min-width: 0; line-height: 1.3; }
.nw-kt code { font: 700 16px/1.3 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .5px; color: var(--text); }
.nw-ghost { display: inline-flex; gap: 5px; align-items: center; border: 0; background: var(--white); border-radius: 10px; padding: 6px 10px; min-height: 44px; font: 700 13px var(--font-ui); color: var(--text); cursor: pointer; flex: none; }
.nw-ghost.ok { color: #065F46; }
.nw-ghost img { width: 16px; height: 16px; }
.nw-ghost img[hidden] { display: none; }
.nw-list { display: flex; flex-direction: column; gap: 8px; }
.nw-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 1px solid var(--nw-line); border-radius: 14px; background: var(--white); min-height: 56px; text-align: start; font: inherit; color: var(--text); cursor: pointer; box-sizing: border-box; }
.nw-rt { flex: 1; min-width: 0; line-height: 1.3; }
.nw-rt b { display: block; font: 700 14px var(--font-ui); }
.nw-rsub { display: block; font-size: 12px; }
.nw-row.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: -8px; }
.nw-chev { color: #94A3B8; font-size: 22px; line-height: 1; flex: none; }
.nw-chev::before { content: "\2039"; }                      /* ‹ ב-RTL */
html[dir="ltr"] .nw-chev::before { content: "\203A"; }      /* › ב-LTR */
.nw-row.open .nw-chev::before { content: "\2304"; }        /* ⌄ */
.nw-inl { background: #F8FAFC; border: 1px solid var(--nw-line); border-top: 0; border-radius: 0 0 14px 14px; padding: 12px; }
.nw-inl[hidden], .nw-inl [hidden], #pwMain[hidden], #pwData[hidden], .nw-foot[hidden] { display: none; }
.nw-inl p { margin: 0 0 10px; line-height: 1.55; }
.nw-q { display: block; margin-bottom: 8px; font: 800 14px var(--font-ui); }
.nw-seg { display: flex; background: #E2E8F0; border-radius: 12px; padding: 4px; margin-bottom: 8px; }
.nw-seg button { flex: 1; text-align: center; padding: 8px 4px; border-radius: 9px; border: 0; background: none; font: 700 13px var(--font-ui); color: var(--muted); min-height: 36px; cursor: pointer; }
.nw-seg button[aria-selected="true"] { background: var(--white); color: #0F172A; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.nw-cta { display: flex; gap: 8px; align-items: center; justify-content: center; width: 100%; border-radius: 12px; min-height: 46px; padding: 8px 14px; font: 800 15px var(--font-ui); box-sizing: border-box; }
.nw-cta img, .nw-cta svg { width: 20px; height: 20px; flex: none; }
/* בכפתור הראשי (רקע הגרדיאנט) הקו בגרדיאנט של האפליקציה כמעט נעלם: אותו קובץ מהסט, בצבע כהה כמו הטקסט */
.nw-cta img { filter: brightness(0); opacity: .9; }
.nw-alt { display: block; width: 100%; text-align: center; color: var(--accent-text); font: 700 13px var(--font-ui); margin-top: 8px; text-decoration: underline; min-height: 24px; padding: 6px 0; border: 0; background: none; cursor: pointer; }
.nw-done { margin-top: 8px; background: #ECFDF5; color: #065F46; border-radius: 10px; padding: 8px; font-weight: 700; font-size: 13px; }
.nw-paste { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nw-paste textarea { width: 100%; min-height: 64px; box-sizing: border-box; border: 1.5px solid var(--border); border-radius: 12px; padding: 8px; font: 13px ui-monospace, monospace; color: var(--text); background: var(--white); }
.nw-paste textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
/* "הנתונים שלי": כמו הקובץ הקריא (my-data-template.html): סעיף = כרטיס, שורה = תווית · ערך; שורה בלי תווית תופסת את כל הרוחב */
.nw-dcard { border: 1px solid var(--nw-line); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; line-height: 1.4; }
.nw-dcard h3 { font: 700 14px var(--font-ui); color: var(--accent-text); margin: 0 0 2px; }
.nw-dcard dl { margin: 0; }
.nw-r { display: flex; gap: 10px; justify-content: space-between; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--nw-line); }
.nw-r:first-child { border-top: 0; }
.nw-r dt { color: var(--muted); font-size: 13px; flex: none; }
.nw-r dd { margin: 0; font-size: 14px; font-weight: 600; text-align: end; overflow-wrap: anywhere; min-width: 0; }
.nw-r dt:empty { display: none; }
.nw-r dt:empty + dd { text-align: start; }
#pwData .nw-cta { margin-top: 6px; }
/* תחתית: מחיקה באדום, "סגירה" */
.nw-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid var(--nw-line); }
.nw-danger { display: inline-flex; gap: 6px; align-items: center; color: var(--red-text); font: 700 13.5px var(--font-ui); min-height: 44px; border: 0; background: none; cursor: pointer; padding: 0; text-align: start; }
.nw-danger img { width: 18px; height: 18px; flex: none; }
.nw-close { min-height: 44px; border: 0; background: none; color: var(--muted); font: 600 13.5px var(--font-ui); cursor: pointer; padding: 0 4px; }
.nw-x:focus-visible, .nw-ghost:focus-visible, .nw-row:focus-visible, .nw-seg button:focus-visible, .nw-alt:focus-visible, .nw-danger:focus-visible, .nw-close:focus-visible, .nw-cta:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
