/* מסכי הגבאי: קודם לטלפון, ובמחשב רשימה וכרטיס זה לצד זה.
   סגנון: נגיש ורגוע — ניגודיות גבוהה, טקסט גדול, כפתורים גדולים לאגודל,
   סטטוס שלא נשען על צבע בלבד, ותנועה קטנה רק כשהיא מסבירה משהו. */
:root {
  /* צבעים — כל זוג טקסט/רקע עומד ב-4.5:1 לפחות */
  --bg: #f1f5f9;
  --surface: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d5dde7;
  --line-soft: #e2e8f0;
  --primary: #0369a1;
  --primary-strong: #075985;
  --primary-soft: #e0f2fe;
  --brand-dark: #0f2a4a;   /* הפס העליון */
  --on-primary: #ffffff;
  --ring: #0f172a;
  --ok: #15803d;      --ok-bg: #dcfce7;
  --warn: #92400e;    --warn-bg: #fef3c7;
  --bad: #b91c1c;     --bad-bg: #fee2e2;
  --info: #075985;    --info-bg: #e0f2fe;
  --idle: #475569;    --idle-bg: #e2e8f0;

  /* מידות */
  --radius: 14px;
  --radius-sm: 10px;
  --tap: 52px;
  --gap: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .04);

  /* תנועה */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
/* גודל הטקסט נגזר מהגדרת המשתמש בטלפון (112.5% = 18px כברירת מחדל), לא קבוע */
html { font-size: 112.5%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.55 system-ui, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
#app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px max(16px, env(safe-area-inset-right)) 56px max(16px, env(safe-area-inset-left));
}
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 10px; }
.loading, .muted { color: var(--muted); }
.small { font-size: .9rem; }

/* סכומים ומספרים: ספרות ברוחב קבוע, כדי שלא "יקפצו" */
.stat b, .tag, .sub, .msg, .choices button, input[inputmode="decimal"] { font-variant-numeric: tabular-nums; }

/* ── כפתורים ─────────────────────────────────────────────────────── */
button {
  min-height: var(--tap);
  padding: 0 20px;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
/* תגובה ברגע הלחיצה (לא בעזיבה), ומהר יותר מהשחרור */
button:active:not(:disabled) { transform: scale(0.97); transition-duration: 100ms; }
button.secondary { background: var(--surface); color: var(--primary); }
button.link {
  background: none; border: none; color: var(--primary);
  min-height: 44px; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; font-weight: 600;
}
button:disabled { opacity: .45; cursor: not-allowed; }

/* כפתור השמירה של טופס כסף: לכל הרוחב ובולט */
button.primary { width: 100%; min-height: 56px; margin-top: 4px; font-size: 1.05rem; }

@media (hover: hover) and (pointer: fine) {
  button:not(:disabled):hover { background: var(--primary-strong); border-color: var(--primary-strong); }
  button.secondary:not(:disabled):hover { background: var(--primary-soft); color: var(--primary-strong); }
  button.link:not(:disabled):hover { background: none; color: var(--primary-strong); }
}

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* ── שדות ─────────────────────────────────────────────────────────── */
input, select {
  width: 100%;
  min-height: var(--tap);
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  transition: border-color 150ms ease;
}
input:focus { border-color: var(--primary); }
input:disabled { background: var(--line-soft); color: var(--muted); }
input::placeholder { color: #64748b; }
label { display: block; font-weight: 600; margin: 16px 0 6px; }

/* "קיבלתי את הכסף": כל השורה לחיצה, תיבה גדולה */
.check {
  display: flex; gap: 12px; align-items: center;
  min-height: var(--tap); margin: 18px 0 12px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.check:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.check input { width: 26px; height: 26px; min-height: 0; margin: 0; flex: none; accent-color: var(--ok); }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 140px; }

/* ── כרטיסים ──────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  margin: 0 0 var(--gap);
}
.card > h2 + .tag { margin-bottom: 6px; }
.narrow { max-width: 440px; margin: 10vh auto 0; padding: 24px; }
.narrow h1 { font-size: 1.6rem; }
.narrow button:not(.link) { width: 100%; margin-top: 18px; }

/* ── פס עליון כהה: שם הארגון, שם הגבאי, יציאה ─────────────────────── */
.appbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin: -12px -16px 0; padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: var(--brand-dark); color: var(--on-primary);
}
.appbar .brand { display: flex; flex-direction: column; line-height: 1.2; }
.appbar .brand strong { font-size: 1.05rem; letter-spacing: -0.01em; }
.appbar .brand span { font-size: .8rem; opacity: .8; }
.appbar .user { display: flex; align-items: center; gap: 4px; font-size: .85rem; }
.appbar .who { opacity: .85; }
button.link.on-dark { color: var(--on-primary); min-height: 40px; }
/* קיצורי דרך קטנים בפס העליון (נפתחים בטאב חדש) */
.appbar .shortcuts { display: flex; gap: 6px; }
a.shortcut {
  display: inline-flex; align-items: center; min-height: 30px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .35); color: var(--on-primary); font-size: .78rem; text-decoration: none; white-space: nowrap;
  transition: background-color .15s var(--ease-out), border-color .15s var(--ease-out);
}
a.shortcut:focus-visible { outline: 2px solid #bae6fd; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { a.shortcut:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .6); } }
.appbar .user { flex-wrap: wrap; justify-content: flex-end; }
@media (hover: hover) and (pointer: fine) { button.link.on-dark:hover { color: #bae6fd; } }

/* ── כותרת הדף: קומפקטית, עם תגית מצב ההרשמה ───────────────────────── */
.pagehead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0 10px; }
.pagehead h1 { font-size: 1.3rem; margin: 0; }
.pagehead .sub { margin: 0; color: var(--muted); font-size: .85rem; }
.open-badge {
  flex: none; padding: 3px 10px; border-radius: 999px;
  background: var(--ok-bg); color: var(--ok); font-size: .8rem; font-weight: 600; white-space: nowrap;
}

/* ── סיכום: שלוש קוביות קטנות בשורה אחת ──────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.stat {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px 10px; min-width: 0;
}
.stat .icon { display: none; }
.stat span { display: block; color: var(--muted); font-size: .8rem; line-height: 1.3; }
.stat b { display: block; font-size: 1.1rem; line-height: 1.25; letter-spacing: -0.01em; white-space: nowrap; }

/* ── חיפוש: שדה עם זכוכית מגדלת, ולידו "+ חדשה" ───────────────────── */
.search-row { display: flex; gap: 8px; align-items: stretch; margin-bottom: 4px; }
.search { position: relative; flex: 1; min-width: 0; }
.search .icon { position: absolute; inset-inline-start: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { padding-inline-start: 44px; }
.search-row .add { flex: none; padding: 0 14px; white-space: nowrap; }
.hint { margin-top: 12px; }

/* כותרות קטנות */
.list-title { display: none; }
.results-title, .section-title { font-size: .9rem; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.section-title { margin: 14px 0 0; }

/* ── סרגל למטה בטלפון: המשפחות שלי / חיפוש בקהילה ──────────────────── */
.bottom-nav {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line-soft);
  box-shadow: 0 -2px 10px rgb(15 23 42 / .06);
}
.bottom-nav button {
  min-height: 56px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: transparent; border-color: transparent; color: var(--muted); font-size: .85rem;
}
.bottom-nav .icon { width: 22px; height: 22px; }
.bottom-nav button[aria-current="page"] { background: var(--primary-soft); color: var(--primary-strong); }
@media (hover: hover) and (pointer: fine) {
  .bottom-nav button:not([aria-current="page"]):hover { background: #f8fafc; color: var(--ink); border-color: transparent; }
  .bottom-nav button[aria-current="page"]:hover { background: var(--primary-soft); color: var(--primary-strong); }
}
#app:has(.bottom-nav) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ── לשוניות: בקר מקטעים ─────────────────────────────────────────── */
.tabs {
  display: flex; gap: 4px; margin: 12px 0; padding: 4px;
  background: var(--line-soft); border-radius: var(--radius-sm);
}
.tabs button {
  flex: 1; min-height: 46px; padding: 0 8px;
  background: transparent; border-color: transparent; color: var(--muted);
}
.tabs button[aria-pressed="true"] {
  background: var(--surface); color: var(--ink); border-color: var(--surface);
  box-shadow: 0 1px 3px rgb(15 23 42 / .12);
}
@media (hover: hover) and (pointer: fine) {
  .tabs button:not([aria-pressed="true"]):hover { background: rgb(255 255 255 / .6); color: var(--ink); border-color: transparent; }
  .tabs button[aria-pressed="true"]:hover { background: var(--surface); }
}

/* ── רשימת משפחות ─────────────────────────────────────────────────── */
.list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.list li button {
  width: 100%; min-height: 64px; padding: 10px 12px 10px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  text-align: start; font-weight: 400;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line-soft); border-inline-start: 5px solid var(--idle-bg);
  box-shadow: var(--shadow);
}
.list li button[data-status="paid"] { border-inline-start-color: var(--ok); }
.list li button[data-status="partial"],
.list li button[data-status="pending"] { border-inline-start-color: #d97706; }
.list li button[data-status="cancelled"] { border-inline-start-color: var(--bad); }
.list li button[aria-current="true"] { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.list li button > .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; }
.list .meta .tag { padding: 1px 9px; font-size: .8rem; }
.list .prev, .list .balance { color: var(--muted); font-size: .8rem; }
.list .balance { color: var(--warn); font-weight: 600; }
.list li button > .icon { flex: none; width: 18px; height: 18px; color: var(--muted); margin-inline-start: -4px; }
@media (hover: hover) and (pointer: fine) {
  .list li button:not(:disabled):hover { background: #f8fafc; color: var(--ink); border-color: var(--line); }
}
.list .name { font-weight: 650; display: block; }
.list .sub { color: var(--muted); font-size: .85rem; display: block; line-height: 1.4; }

/* ── תגיות סטטוס: צבע + נקודה + מילה ─────────────────────────────── */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  background: var(--idle-bg); color: var(--idle);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.paid { background: var(--ok-bg); color: var(--ok); }
.tag.partial, .tag.pending { background: var(--warn-bg); color: var(--warn); }
.tag.cancelled { background: var(--bad-bg); color: var(--bad); }

/* ── הודעות ───────────────────────────────────────────────────────── */
.msg {
  border-radius: var(--radius-sm); border-inline-start: 5px solid currentColor;
  padding: 12px 14px; margin: 12px 0; font-weight: 600; line-height: 1.45;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  @starting-style { opacity: 0; transform: translateY(4px); }
}
.msg.ok { background: var(--ok-bg); color: var(--ok); }
.msg.warn { background: var(--warn-bg); color: var(--warn); }
.msg.bad { background: var(--bad-bg); color: var(--bad); }
.msg.info { background: var(--info-bg); color: var(--info); }

/* ── בחירה (רגיל/מוזל, אמצעי תשלום) ──────────────────────────────── */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices button {
  min-height: var(--tap); padding: 6px 10px; line-height: 1.3;
  background: var(--surface); color: var(--ink); border-color: var(--line);
}
.choices button[aria-pressed="true"] {
  background: var(--primary-soft); color: var(--primary-strong); border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
@media (hover: hover) and (pointer: fine) {
  .choices button:not(:disabled):not([aria-pressed="true"]):hover { background: #f8fafc; color: var(--ink); border-color: var(--muted); }
  .choices button[aria-pressed="true"]:hover { background: var(--primary-soft); color: var(--primary-strong); }
}

/* ── פרטי משפחה ───────────────────────────────────────────────────── */
.details { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 12px 0 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }

/* ── פריסה ────────────────────────────────────────────────────────── */
.layout { display: block; }
.panel .back { margin-bottom: 8px; }
.panel { scroll-margin-top: 72px; }   /* לא להיבלע מתחת לכותרת הצפה */
.hidden { display: none !important; }

/* מחשב: רשימה וכרטיס זה לצד זה, בלי הסרגל התחתון */
@media (min-width: 900px) {
  html { font-size: 106.25%; }
  #app { padding-top: 0; }
  .appbar { margin: 0 0 4px; border-radius: 0 0 var(--radius) var(--radius); padding-inline: 20px; }
  .bottom-nav { display: none; }
  #app:has(.bottom-nav) { padding-bottom: 16px; }

  /* קוביות הסיכום: עם סמל, ומספר גדול יותר */
  .stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
  .stat { padding: 12px 16px; gap: 14px; }
  .stat .icon {
    display: block; flex: none; width: 40px; height: 40px; padding: 9px;
    border-radius: 10px; background: var(--primary-soft); color: var(--primary);
  }
  .stat span { font-size: .85rem; }
  .stat b { font-size: 1.4rem; letter-spacing: -0.02em; }

  .layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
  .layout.no-panel { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
  .panel .back { display: none; }
  .layout .list-side.hidden-mobile { display: flex !important; }

  /* הרשימה בתוך מסגרת עם כותרת */
  .list-side {
    display: flex; flex-direction: column; min-height: 0;
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px 14px 8px;
  }
  .list-title { display: block; font-size: 1.1rem; margin: 0 4px 10px; }
  .list-side .list li button { box-shadow: none; }

  /* המסך לא נגלל כולו: רק רשימת המשפחות (בצד ימין) נגללת,
     והכותרת, הסיכום, החיפוש, הלשוניות והכרטיס נשארים במקומם */
  #app:has(.layout) { height: 100dvh; display: flex; flex-direction: column; padding-bottom: 16px; }
  #app:has(.layout) > .appbar, #app:has(.layout) > .pagehead, #app:has(.layout) > .stats { flex: none; }
  #app:has(.layout) .layout { flex: 1; min-height: 0; align-items: stretch; }
  .list-side > .search-row { flex: none; }
  .list-side > div:last-child { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  .list-side .tabs, .list-side h2, .list-side h3, .list-side .msg { flex: none; }
  .list-side .list {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    margin: 0; padding: 4px 4px 12px;          /* מקום לטבעת הבחירה, שלא תיחתך */
    align-content: start; scrollbar-gutter: stable;
  }
  .list-side .list + * { flex: none; margin-top: 8px; }
  /* הכרטיס בצד שמאל: אם טופס החידוש ארוך — נגלל בתוך עצמו, לא כל המסך */
  .panel { overflow-y: auto; min-height: 0; padding: 4px; }
}
@media (max-width: 899px) {
  .hidden-mobile { display: none !important; }
}

/* מי שביקש ניגודיות גבוהה: גבולות כהים ומוגדרים */
@media (prefers-contrast: more) {
  :root { --line: #475569; --line-soft: #64748b; --muted: #334155; }
  .tabs button[aria-pressed="true"], .bottom-nav button[aria-current="page"] { border-color: var(--ink); }
}


/* מי שביקש פחות תנועה: בלי תזוזה ובלי כיווץ, רק דהייה */
@media (prefers-reduced-motion: reduce) {
  button { transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
  button:active:not(:disabled) { transform: none; }
  .msg { transition: opacity 150ms ease; @starting-style { opacity: 0; transform: none; } }
}

/* ── טופס החידוש קומפקטי: "שמירה" נראה בלי גלילה ─────────────────── */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.panel .card { padding: 14px 16px; margin-bottom: 10px; }
.panel .section-title { margin: 10px 0 0; }
.panel .details { margin-top: 6px; gap: 4px 14px; }
.money-form h2 { margin-bottom: 2px; }
.money-form label { margin: 10px 0 4px; }
.money-form .choices button { min-height: 46px; }
.money-form input { min-height: 46px; }
.money-form .check { min-height: 48px; margin: 12px 0 10px; padding: 6px 12px; }
.money-form p.muted { margin: 4px 0 0; font-size: .9rem; }
.money-form button.primary { min-height: 50px; margin-top: 0; }

@media (min-width: 900px) {
  /* במחשב: ארבעת אמצעי התשלום בשורה אחת, ופרטי המשפחה בשני טורים */
  .choices.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel .details { grid-template-columns: auto 1fr auto 1fr; }
}
@media (max-width: 899px) {
  /* בטלפון: כשמשפחה פתוחה — בלי הכותרת והקוביות (הן ברשימה), כדי שכל הטופס ייכנס */
  #app:has(.panel) > .pagehead, #app:has(.panel) > .stats { display: none; }
  #app:has(.panel) .panel { margin-top: 6px; }
}
.panel > div > .card:last-child { margin-bottom: 0; }
.money-form .check { margin: 10px 0 8px; }

/* הלוגו של הארגון בפס העליון, בתוך עיגול לבן */
.appbar .brand-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.appbar .brand-logo {
  flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: contain;
  background: #fff; padding: 2px; box-shadow: 0 0 0 2px rgb(255 255 255 / .35);
}

/* סיסמה עם עין (כמו במסך המנהל). button.eye — כדי לגבור על ".narrow button" */
.secret { position: relative; }
.secret input { width: 100%; padding-left: 52px; }
.secret button.eye {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 44px; min-height: 44px; margin: 0; padding: 0; display: grid; place-items: center;
  background: transparent; border-color: transparent; box-shadow: none; color: var(--muted);
}
.secret button.eye .icon { width: 22px; height: 22px; }
.secret button.eye[aria-pressed="true"] { color: var(--primary); }
/* אזהרה קצרה כשלא נבחר אמצעי תשלום */
.method-warn { margin: 4px 0 0; font-size: .85rem; font-weight: 600; color: var(--warn); }
/* התקדמות ההרשמה: פס לכל הקהילה, ופסים דקים לכל בית כנסת. המספרים המדויקים בריחוף */
.progress { margin: -4px 0 12px; }
.pbar { display: grid; grid-template-columns: minmax(70px, 9rem) 1fr 2.6rem; align-items: center; gap: 8px; font-size: .8rem; }
.pbar .pname { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar .ptrack { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.pbar .pfill { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.pbar .pval { text-align: end; font-size: .8rem; font-variant-numeric: tabular-nums; }
.pbar.total { grid-template-columns: minmax(70px, auto) 1fr 2.6rem; font-size: .85rem; margin-bottom: 6px; }
.pbar.total .pname { color: inherit; font-weight: 600; }
.pbar.total .ptrack { height: 10px; }
.pbar.muted .pfill { background: var(--muted); }
.pgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 18px; }
/* מאז הביקור הקודם: חלונית קטנה בפינה התחתונה; בלחיצה — השמות */
.news-toast {
  position: fixed; z-index: 30; inset-inline-end: 16px; bottom: 16px;
  width: min(340px, calc(100vw - 32px)); font-size: .85rem;
  background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--ok);
  border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(15, 23, 42, .16);
}
@media (max-width: 899px) { .news-toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.news-toast .nt-head { display: flex; align-items: flex-start; }
.news-toast .nt-toggle {
  flex: 1; min-height: 0; padding: 8px 12px; text-align: start;
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
  background: none; border: 0; color: var(--ink); cursor: pointer;
}
.news-toast .nt-toggle b { display: block; color: var(--ok); }
.news-toast .nt-icon { grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.news-toast .nt-icon .icon { width: 16px; height: 16px; }
.news-toast .nt-sub { display: block; color: var(--muted); font-size: .8rem; }
.news-toast .nt-close { min-height: 0; padding: 6px 10px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.news-toast ul { margin: 0; padding: 4px 12px 10px; padding-inline-start: 28px; max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--line-soft); }
.news-toast li { margin: 3px 0; }
.news-toast li .link { padding: 0; min-height: 0; font-size: inherit; }
.list .new-tag { padding: 0 7px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); }
