/* مساعد تحضير القهوة | نقطة خيال — كل التنسيقات محصورة داخل .nb-app حتى لا تمس المتجر عند الدمج. */
/* خط Almarai (رخصة SIL OFL 1.1 — fonts/OFL-Almarai.txt). ملفات محلية داخل المشروع، بلا أي طلب خارجي. */
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/almarai-arabic-400-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 400; font-display: swap; src: url('./fonts/almarai-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 700; font-display: swap; src: url('./fonts/almarai-arabic-700-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 700; font-display: swap; src: url('./fonts/almarai-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 800; font-display: swap; src: url('./fonts/almarai-arabic-800-normal.woff2') format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Almarai'; font-style: normal; font-weight: 800; font-display: swap; src: url('./fonts/almarai-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
html, body { margin: 0; padding: 0; background: #FBF6EC; }
@media (prefers-color-scheme: dark) { html, body { background: #0F1717; } }

.nb-app {
  --bg: #FBF6EC; --card: #FFFFFF; --ink: #1B2627; --muted: #5C6A6B; --line: #E7E0D2;
  --teal: #0E5A61; --teal-2: #2B8A92; --tint: #E3EFEE; --gold: #C79A2B; --gold-tint: #FBF1D9;
  --warn: #9A4B0B; --warn-tint: #FCEBDD; --danger: #B3261E; --ok: #2E7D4F;
  --pour: #0E5A61; --wait: #F4E9CE; --drain: #FCEBDD;
  --r: 16px; --shadow: 0 1px 2px rgba(20, 40, 40, .06), 0 4px 16px rgba(20, 40, 40, .06);
  font-family: 'Almarai', "SF Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  color: var(--ink); background: var(--bg); min-height: 100vh; min-height: 100dvh;
  font-size: 16px; line-height: 1.55; -webkit-tap-highlight-color: transparent; direction: rtl;
}
.nb-app[data-theme="dark"] {
  --bg: #0F1717; --card: #172223; --ink: #EAF1F0; --muted: #9AB0AF; --line: #263536;
  --teal: #5CC3C9; --teal-2: #7FD3D6; --tint: #18393B; --gold: #E3B94A; --gold-tint: #3A3018;
  --warn: #F2A86A; --warn-tint: #3A2616; --danger: #FF8A80; --ok: #7BD49B;
  --pour: #11474C; --wait: #2F2A1A; --drain: #3A2616; --shadow: none;
}
.nb-app *, .nb-app *::before, .nb-app *::after { box-sizing: border-box; }
.nb-app :where(button, input, select, textarea) { font: inherit; color: inherit; }
.nb-app :where(button) { cursor: pointer; }
.nb-app :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nb-app h1, .nb-app h2, .nb-app p { margin: 0; }
.nb-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; direction: ltr; unicode-bidi: isolate; }

/* هيكل */
.nb-screen { max-width: 560px; margin: 0 auto; padding-bottom: 120px; }
.nb-main { padding: 8px 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.nb-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); }
.nb-top__title { flex: 1; font-size: 17px; font-weight: 800; text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; flex-direction: column; line-height: 1.25; }
.nb-top__title small { font-size: 12px; font-weight: 700; color: var(--teal); }
.nb-top__logo { width: 34px; height: 34px; border-radius: 50%; background: var(--teal); display: grid; place-items: center; flex: none; }
.nb-top__logo span { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }
.nb-top__actions { display: flex; gap: 4px; min-width: 44px; justify-content: flex-end; }
.nb-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--teal); font-size: 15px; min-width: 44px; }
.nb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); display: inline-block; box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.nb-dot--lg { width: 56px; height: 56px; }
.nb-icon { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; color: var(--teal); }
.nb-icon svg { width: 24px; height: 24px; }
.nb-icon:active { background: var(--tint); }

/* بطاقات ونصوص */
.nb-card { background: var(--card); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.nb-card--tight { padding: 12px 16px; }
.nb-card--warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: var(--warn-tint); }
.nb-h1 { font-size: 24px; font-weight: 800; }
.nb-h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.nb-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.nb-strong { font-weight: 700; }
.nb-muted { color: var(--muted); }
.nb-small { font-size: 13px; }
.nb-warn { color: var(--warn); }
.nb-center { text-align: center; }
.nb-mt { margin-top: 10px; }
.nb-row { display: flex; align-items: center; }
.nb-row--between { justify-content: space-between; }
.nb-gap { gap: 8px; }
.nb-wrap { flex-wrap: wrap; }
.nb-grow { flex: 1; }
.nb-block { display: block; }
.nb-why { margin-top: 6px; color: var(--teal); font-weight: 600; font-size: 14px; }

/* أزرار */
.nb-btn { min-height: 48px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform .08s, background .15s; }
.nb-btn svg { width: 20px; height: 20px; }
.nb-btn:active { transform: scale(.98); }
.nb-btn:disabled { opacity: .45; cursor: not-allowed; }
.nb-btn--primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.nb-app[data-theme="dark"] .nb-btn--primary { color: #062226; }
.nb-btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--teal) 35%, transparent); color: var(--teal); }
.nb-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.nb-btn--danger-ghost { background: transparent; border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
.nb-btn--sm { min-height: 40px; padding: 6px 12px; font-size: 14px; }
.nb-btn--lg { min-height: 56px; font-size: 17px; width: 100%; }
.nb-btn--xl { min-height: 60px; font-size: 19px; width: 100%; border-radius: 18px; }
.nb-link { background: none; border: 0; color: var(--teal); font-weight: 700; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.nb-dock { position: fixed; inset-inline: 0; bottom: 0; z-index: 6; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, transparent); max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }

/* مقاطع ورقائق */
.nb-seg { display: flex; flex-wrap: wrap; gap: 6px; background: var(--tint); padding: 4px; border-radius: 14px; }
.nb-seg__btn { flex: 1 1 auto; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 11px; background: transparent; font-weight: 600; color: var(--teal); white-space: nowrap; }
.nb-seg__btn.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.nb-seg--sm .nb-seg__btn { min-height: 38px; font-size: 13px; padding: 4px 8px; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-chips--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-top: 8px; scrollbar-width: none; }
.nb-chip { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nb-chip.is-on { background: var(--teal); color: #fff; border-color: var(--teal); }
.nb-app[data-theme="dark"] .nb-chip.is-on { color: #062226; }
.nb-chip--check input { accent-color: var(--teal); width: 18px; height: 18px; }
.nb-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-tag { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--gold-tint); color: var(--ink); }
.nb-tag--muted { background: var(--tint); color: var(--muted); }
.nb-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--teal); font-weight: 700; vertical-align: middle; }
.nb-badge--muted { color: var(--muted); }
.nb-badge--warn { background: var(--warn-tint); color: var(--warn); }

/* حقول */
.nb-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 8px; }
.nb-field input, .nb-field select, .nb-search input, .nb-sharelink, .nb-in-sm {
  min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 12px; background: var(--card); color: var(--ink); font-size: 17px; width: 100%;
}
.nb-field input[aria-invalid="true"], .nb-in-sm[aria-invalid="true"] { border-color: var(--danger); }
.nb-search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 12px; background: var(--card); }
.nb-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.nb-search input { border: 0; padding: 8px 0; min-height: 48px; outline: none; }
.nb-in-sm { min-height: 40px; font-size: 15px; padding: 4px 8px; text-align: center; }
.nb-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* مفتاح الوضع */
.nb-switch { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--teal); min-height: 44px; cursor: pointer; }
.nb-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nb-switch__track { width: 48px; height: 28px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.nb-switch__track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: inset-inline-start .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.nb-switch input:checked + .nb-switch__track { background: var(--teal); }
.nb-switch input:checked + .nb-switch__track::after { inset-inline-start: 23px; }
.nb-switch input:focus-visible + .nb-switch__track { outline: 3px solid var(--gold); outline-offset: 2px; }

/* المحاصيل */
.nb-crops { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; max-height: 52vh; overflow-y: auto; }
.nb-crop { text-align: start; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); }
.nb-crop:active { border-color: var(--teal); }
.nb-crop__name { font-weight: 700; }
.nb-crop__meta { font-size: 13px; color: var(--muted); }
.nb-repeat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--teal) 40%, transparent); background: var(--tint); font-weight: 700; color: var(--teal); text-align: start; }

/* بطاقة الوصفة */
.nb-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
.nb-stat { background: var(--bg); border-radius: 12px; padding: 8px; min-width: 0; }
.nb-stat__l { font-size: 12px; color: var(--muted); font-weight: 600; }
.nb-stat__v { font-size: 15px; font-weight: 700; color: var(--teal); }
.nb-stat__v b { font-size: 22px; }
.nb-range { font-size: 17px; font-weight: 800; white-space: nowrap; }
.nb-stat__s { font-size: 11px; color: var(--muted); line-height: 1.3; }
.nb-expect { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--gold-tint); font-size: 14px; }
.nb-pro-meta { margin-top: 8px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nb-banner { padding: 10px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; margin-bottom: 8px; }
.nb-banner--gold { background: var(--gold-tint); }
.nb-banner--warn { background: var(--warn-tint); color: var(--ink); }
.nb-banner--teal { background: var(--tint); }
.nb-choices { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.nb-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.nb-table th { font-size: 12px; color: var(--muted); font-weight: 600; text-align: start; padding: 4px 6px; border-bottom: 1px solid var(--line); }
.nb-table td { padding: 6px; border-bottom: 1px solid var(--line); }
.nb-table--big td { font-size: 17px; padding: 10px 6px; }
.nb-changed { background: var(--gold-tint); font-weight: 700; }
.nb-scrollx { overflow-x: auto; }
.nb-pro details summary { cursor: pointer; font-weight: 700; color: var(--teal); min-height: 40px; display: flex; align-items: center; }

/* شاشة التحضير */
.nb-screen--brew { padding-bottom: 0; }
.nb-brew { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; transition: background .3s; }
.nb-brew.phase-pour { background: color-mix(in srgb, var(--pour) 10%, var(--bg)); }
.nb-brew.phase-wait { background: var(--wait); }
.nb-brew.phase-await_drain { background: var(--drain); }
.nb-brew.phase-drawdown, .nb-brew.phase-action { background: color-mix(in srgb, var(--teal-2) 12%, var(--bg)); }
.nb-brew.phase-done { background: color-mix(in srgb, var(--ok) 12%, var(--bg)); }
.nb-brew__top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.nb-brew__title { flex: 1; text-align: center; min-width: 0; }
.nb-brew__title > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-brew__body { flex: 1; padding: 8px 16px 210px; display: flex; flex-direction: column; gap: 10px; }
.nb-prog { position: relative; height: 22px; margin: 4px 20px 6px; }
.nb-prog__bar { position: absolute; inset-inline: 0; top: 9px; height: 4px; border-radius: 4px; background: var(--line); }
.nb-prog__mark { position: absolute; top: 6px; width: 10px; height: 10px; margin-inline-start: -5px; border-radius: 50%; background: var(--card); border: 2px solid var(--teal-2); }
.nb-prog__mark.is-past { background: var(--teal-2); }
.nb-prog__dot { position: absolute; top: 1px; width: 20px; height: 20px; margin-inline-start: -10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent); transition: inset-inline-start .25s linear; }
.nb-stage { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; }
.nb-phase-chip { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 14px; margin-inline-end: 4px; }
.phase-wait .nb-phase-chip { background: var(--gold); color: #1B2627; }
.phase-await_drain .nb-phase-chip { background: var(--warn); color: #fff; }
.nb-app[data-theme="dark"] .nb-phase-chip { color: #062226; }
.nb-target { text-align: center; font-weight: 800; color: var(--teal); line-height: 1; margin-top: 6px; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.nb-target .nb-num { font-size: clamp(88px, 30vw, 132px); letter-spacing: -2px; }
.nb-target small { font-size: 26px; font-weight: 700; }
.phase-wait .nb-target, .phase-await_drain .nb-target { color: color-mix(in srgb, var(--teal) 70%, var(--muted)); }
.nb-target__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: -4px; }
.nb-instr { text-align: center; font-size: 22px; font-weight: 700; line-height: 1.4; min-height: 2.8em; }
.nb-late { text-align: center; font-size: 14px; color: var(--muted); padding: 0 10px; }
.nb-clockrow { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; background: var(--card); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--shadow); }
.nb-clock { font-size: 40px; font-weight: 800; }
.nb-next { font-size: 15px; color: var(--muted); text-align: end; }
.nb-next b { font-size: 22px; color: var(--ink); }
.nb-countdown { font-size: 140px; font-weight: 800; color: var(--gold); line-height: 1; margin-top: 30px; }
.nb-dock--brew { background: linear-gradient(to top, var(--bg) 75%, transparent); }
.nb-brew.phase-pour .nb-dock--brew, .nb-brew.phase-wait .nb-dock--brew, .nb-brew.phase-await_drain .nb-dock--brew { background: transparent; }
.nb-hold { position: relative; overflow: hidden; min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: var(--muted); font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; }
.nb-hold span:last-child { position: relative; }
.nb-hold__fill { position: absolute; inset: 0; width: 0; background: color-mix(in srgb, var(--danger) 20%, transparent); }
.nb-hold.is-holding .nb-hold__fill { width: 100%; transition: width .9s linear; }
.nb-checklist ul { margin: 6px 0; padding-inline-start: 20px; }
.nb-done-mark { margin: 30px auto 8px; animation: nb-pop .5s ease-out; }
@keyframes nb-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* التقييم */
.nb-starsin { display: flex; justify-content: center; gap: 4px; direction: ltr; }
.nb-starbtn { width: 56px; height: 56px; border: 0; background: none; color: var(--line); padding: 4px; }
.nb-starbtn svg { width: 100%; height: 100%; }
.nb-starbtn.is-on { color: var(--gold); }
.nb-details { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.nb-qrow { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.nb-sugg { display: flex; flex-direction: column; gap: 8px; }
.nb-app .nb-ok { color: var(--ok); font-weight: 700; }
.nb-stars { color: var(--gold); letter-spacing: 1px; direction: ltr; display: inline-block; }
.nb-stars__off { color: var(--line); }

/* السجل */
.nb-usage { background: var(--card); border-radius: var(--r); padding: 12px 16px; border: 1px solid var(--line); }
.nb-meter { height: 8px; border-radius: 8px; background: var(--tint); margin: 6px 0; overflow: hidden; }
.nb-meter span { display: block; height: 100%; background: var(--teal); }
.nb-list { display: flex; flex-direction: column; gap: 8px; }
.nb-hrow { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-align: start; width: 100%; }
.nb-hrow--static { flex-wrap: wrap; }
.nb-hrow__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.nb-hrow__side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }

/* نوافذ */
.nb-scrim { position: fixed; inset: 0; background: rgba(10, 20, 20, .45); z-index: 20; }
.nb-modal { position: fixed; z-index: 21; inset-inline: 12px; bottom: 12px; max-width: 520px; margin: 0 auto; background: var(--card); border-radius: 20px; padding: 18px; max-height: 86vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, .25); }
.nb-modal h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.nb-modal__body { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.nb-modal__actions { display: flex; flex-direction: column; gap: 8px; }
.nb-sharelink { font-size: 13px; direction: ltr; }
.nb-cardprev { width: 100%; max-width: 260px; height: auto; align-self: center; border-radius: 12px; border: 1px solid var(--line); }
.nb-toast { position: fixed; z-index: 30; bottom: calc(96px + env(safe-area-inset-bottom)); inset-inline: 16px; max-width: 480px; margin: 0 auto; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-weight: 600; text-align: center; animation: nb-pop .2s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .nb-app *, .nb-app *::before, .nb-app *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 600px) {
  .nb-main { padding-inline: 20px; }
}

/* شريط «توقف الصوت» */
.nb-audiohold { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 8px 16px 0; }
/* زمن النزول في شاشة الاكتمال */
.nb-ddcard { width: 100%; max-width: 420px; margin: 8px auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; text-align: start; }
.nb-ddrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.nb-ddrow b { color: var(--ink); font-size: 20px; font-weight: 800; }
.nb-ddnote { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.nb-ddnote--fast { background: var(--tint); }
.nb-ddnote--slow { background: var(--warn-tint); }
.nb-ddfix { border-top: 1px dashed var(--line); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.nb-ddfix .nb-field { flex: 1 1 0; min-width: 0; }
.nb-ddfix input { width: 100%; }
.nb-ddactions { justify-content: flex-start; }
.nb-app .nb-err { color: var(--danger); font-weight: 700; }
.nb-audiohold--soft { background: var(--tint); }
/* رأس الشاشة الرئيسية بثلاث أيقونات (السجل، الدليل، الإعدادات) على 360 بكسل */
.nb-top__actions { gap: 0; }
.nb-top__actions .nb-icon { width: 40px; }
.nb-top__title { font-size: 16px; }

/* زر «المتجر»: رابط عادي للصفحة الرئيسية، ذهبي بنص داكن، بمساحة لمس 44 بكسل */
.nb-store { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--gold); color: #1B2627; font-weight: 800; font-size: 14px; text-decoration: none; line-height: 1; }
.nb-store svg { width: 18px; height: 18px; flex: none; }
.nb-app[data-theme="dark"] .nb-store { color: #0F1717; }
.nb-storebar { display: flex; justify-content: flex-start; padding: 8px 12px 0; }

/* اختيار وضع التحضير: خياران متجاوران، والإطار حول النشط */
.nb-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.nb-mode { min-height: 46px; padding: 6px 6px; border-radius: 14px; border: 2px solid transparent; background: var(--tint); color: var(--teal); font: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; cursor: pointer; transition: border-color .15s, background .15s; }
.nb-mode.is-on { border-color: var(--teal); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nb-mode:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nb-app .nb-warnline { color: var(--warn); margin: 6px 0 0; }
