/* ============================================================================
   notes-assist.css — Writing help surfaces                            v2.37.0
   ============================================================================
   Two surfaces: the caret-anchored suggestion menu, and the settings sheet.

   THE OPAQUE-SURFACES RULE APPLIES TO BOTH. The suggestion menu is mounted on
   <body> so it can escape the panel's clipping and Studio's transformed
   ancestors — which means it has LEFT the subtree where --ntp-* is declared, so
   `background: var(--ntp-bg)` would resolve to nothing and the card would paint
   transparent over a live sermon. It therefore carries its own LITERAL palette
   in both themes and never chains through --color-bg / --cn-bg, which the theme
   remaps to a 0.72-alpha glass.

   The sheet stays inside the panel, so it may use --ntp-* — but it repeats the
   ink-canvas hide that .has-sheet performs, because a canvas painted at
   z-index 5-6 would otherwise sit on top of the settings.
   ==========================================================================*/

/* ------------------------------------------------ the suggestion menu */
.eos-nas-menu {
  --nas-bg:     #FFFFFF;
  --nas-fg:     #191917;
  --nas-fg2:    #6B6B68;
  --nas-border: #E5E5E5;
  --nas-on:     #FBF1DE;
  --nas-gold:   #7E560F;
  --nas-shadow: 0 14px 38px rgba(20, 18, 12, .26);

  position: fixed; z-index: 10050;
  display: none;
  min-width: 168px; max-width: 280px;
  padding: 5px;
  background: var(--nas-bg);
  color: var(--nas-fg);
  border: 1px solid var(--nas-border);
  border-radius: 12px;
  box-shadow: var(--nas-shadow);
  font-family: var(--font-body, 'Figtree', system-ui, sans-serif);
  font-size: 13px; line-height: 1.45;
  overflow: hidden;
}
.eos-nas-menu.is-open { display: block; }

[data-theme="dark"] .eos-nas-menu {
  --nas-bg:     #1F1F1E;
  --nas-fg:     #F5F5F3;
  --nas-fg2:    #A3A39E;
  --nas-border: #3A3A38;
  --nas-on:     #3A2F14;
  --nas-gold:   #EDB94F;
  --nas-shadow: 0 14px 38px rgba(0, 0, 0, .58);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eos-nas-menu {
    --nas-bg:     #1F1F1E;
    --nas-fg:     #F5F5F3;
    --nas-fg2:    #A3A39E;
    --nas-border: #3A3A38;
    --nas-on:     #3A2F14;
    --nas-gold:   #EDB94F;
    --nas-shadow: 0 14px 38px rgba(0, 0, 0, .58);
  }
}

.eos-nas-item {
  padding: 7px 11px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.eos-nas-item b { font-weight: 700; color: var(--nas-gold); }
.eos-nas-item.is-on { background: var(--nas-on); }
.eos-nas-item:hover { background: var(--nas-on); }
.eos-nas-hint {
  padding: 5px 11px 3px;
  font-size: 10.5px;
  color: var(--nas-fg2);
  border-top: 1px solid var(--nas-border);
  margin-top: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .eos-nas-menu.is-open { animation: nasIn .12s cubic-bezier(.2, .85, .25, 1); }
  @keyframes nasIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
}

/* ------------------------------------------------------ the settings sheet */
/* Lives inside .eos-ntp-edwrap, like the My-notes sheet. Hidden until the root
   carries .has-assist — the same shape .has-sheet uses. */
.eos-nas-sheet {
  position: absolute; inset: 0; z-index: 12;
  display: none;
  flex-direction: column;
  background: var(--ntp-bg, #FFFFFF);
  color: var(--ntp-fg, #191917);
  font-size: 13px;
}
[data-theme="dark"] .eos-nas-sheet { background: var(--ntp-bg, #1F1F1E); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eos-nas-sheet { background: var(--ntp-bg, #1F1F1E); }
}
.eos-ntp.has-assist .eos-nas-sheet { display: flex; }
/* The ink canvases sit at z-index 5/6 inside the same wrapper and would paint
   straight over the settings. .has-sheet does exactly this for My-notes. */
.eos-ntp.has-assist .eos-ntp-ink,
.eos-ntp.has-assist .eos-ntp-ink2,
.eos-ntp.has-assist .eos-ntp-inkring { display: none !important; }

.eos-nas-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 10px;
  font-size: 14px; font-weight: 700;
  border-bottom: 1px solid var(--ntp-border, #E5E5E5);
}
/* v2.37.2 - a real, findable close control. It was a bare glyph in the muted text colour
   at 28px, which read as decoration rather than a button. */
.eos-nas-x {
  margin-left: auto;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ntp-border, #E5E5E5);
  background: var(--ntp-soft, #F2F2F2);
  color: var(--ntp-fg, #191917);
  font-size: 20px; line-height: 1;
  border-radius: 9px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.eos-nas-x:hover { background: var(--ntp-amber-glow, rgba(169,118,31,.14)); color: var(--ntp-amber-txt, #7E560F); }
.eos-nas-x:focus-visible { outline: 2px solid var(--ntp-amber-txt, #7E560F); outline-offset: 2px; }
.eos-nas-body { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 14px; }

.eos-nas-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ntp-border, #E5E5E5);
}
.eos-nas-row:last-of-type { border-bottom: 0; }
.eos-nas-lab { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.eos-nas-lab span { font-weight: 600; }
.eos-nas-lab em {
  font-style: normal; font-size: 11.5px;
  color: var(--ntp-muted, #707070);
}
.eos-nas-row .eos-ink-tgl,
.eos-nas-row .eos-ntp-fbtn { margin-left: auto; flex: none; }
/* v2.37.2 - the switch is a bare button holding only the .tk track, so it needs no inner
   gap and must keep a real hit area even though it carries no label text of its own. */
.eos-nas-row .eos-ink-tgl { gap: 0; border: 0; background: transparent; padding: 6px 0 6px 10px; cursor: pointer; }
.eos-nas-row .eos-ink-tgl:focus-visible { outline: 2px solid var(--ntp-amber-txt, #7E560F); outline-offset: 3px; border-radius: 999px; }
.eos-nas-rng { margin-left: auto; flex: none; width: 132px; }
.eos-nas-rng input[type="range"] { accent-color: var(--ntp-amber, #7E560F); }
.eos-nas-note {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ntp-muted, #707070);
  line-height: 1.5;
}

/* The status-bar entry keeps the collapse behaviour the crowded bar relies on. */
#eos-nas-open .mi {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* Touch targets, matching the panel's own 40px rule. */
@media (pointer: coarse) {
  .eos-nas-item { padding: 10px 12px; }
  .eos-nas-x { width: 40px; height: 40px; }
}
