/* First-run onboarding (js/onboarding.js): the quiet «Ранній доступ» note and the one-time «Зрозуміло» hint cards.
   Also the quiet «Збережено» status of layouts.js. Only tokens from tokens.css / glass.css. */

/* «Ранній доступ» note: one line in the bottom bar (desktop) or the mobile header */
.ea-note { display: inline-flex; align-items: center; gap: 2px; margin-left: var(--s2, 8px); min-width: 0; flex: 0 1 auto; overflow: hidden; }
/* a narrow bottom bar (720 px, long RU text) shortens the note with «…» instead of drawing it over «Баланс» */
.ea-note .ea-link { min-width: 0; max-width: 100%; }
.ea-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ea-link {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 0; border-radius: var(--r-pill, 999px);
  background: transparent; color: var(--muted); font: 500 var(--fs-xs)/1 var(--sans); white-space: nowrap; cursor: pointer;
}
.ea-link:hover { color: var(--text); background: var(--glass-hover, var(--panel2)); }
.ea-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.ea-x {
  display: inline-grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--soft); cursor: pointer;
}
.ea-x:hover { color: var(--text); background: var(--glass-hover, var(--panel2)); }
.ea-x .icon { width: 12px; height: 12px; }
.ea-link:focus-visible, .ea-x:focus-visible { outline: none; box-shadow: var(--focus); }
.ea-note.ea-m { margin: 0 2px 0 auto; flex: none; }
.ea-note.ea-m .ea-link { padding: 0 6px; font-size: var(--fs-2xs, 11px); }

/* one-time hint card («Got it!») */
.ob-hint {
  position: fixed; z-index: calc(var(--z-dialog) + 2); width: min(300px, calc(100vw - 16px)); padding: 12px 14px 10px;
  border-radius: 12px; color: var(--text);
  background: var(--glass-bg, var(--panel)); -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-edge, var(--border)); box-shadow: var(--glass-shadow, var(--shadow-2));
}
.ob-hint p { margin: 0; font: 400 var(--fs-sm)/1.5 var(--sans); }
.ob-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.ob-ok { min-width: 96px; background: var(--text); color: var(--bg); border-color: transparent; }
.ob-ok:hover { background: color-mix(in srgb, var(--text) 86%, var(--bg)); }

/* layouts.js: quiet «Збережено» after an autosave, under the «Макет» (or «···») button */
.lay-saved { margin-left: 4px; color: var(--soft); font: 500 var(--fs-2xs, 11px)/1 var(--sans); white-space: nowrap; opacity: 0; transition: opacity .3s; pointer-events: none; }
.lay-saved.on { opacity: 1; }

/* ai/panel.js: ready-made questions */
#aiPanel .ai-quick { display: flex; flex-wrap: wrap; gap: 6px; }
#aiPanel .ai-q { height: auto; min-height: 26px; padding: 4px 10px; white-space: normal; text-align: left; line-height: 1.3; font-size: var(--fs-xs); }
#aiPanel .ai-q:disabled { opacity: .55; }
body > .lay-saved { position: fixed; transform: translateX(-50%); margin: 0; z-index: var(--z-popover); }
.layout-menu .lay-csv { display: flex; align-items: center; gap: 6px; width: 100%; margin-top: 4px; padding: 6px 8px; border: 0; border-top: 1px solid var(--glass-sep, var(--border)); border-radius: 0; background: transparent; color: var(--muted); font: 500 var(--fs-xs)/1.2 var(--sans); text-align: left; cursor: pointer; }
.layout-menu .lay-csv:hover { color: var(--text); }
.layout-menu .lay-csv .icon { width: 14px; height: 14px; }
/* the mobile header has ~70px to spare next to the pair name: two short lines, no dot */
.ea-note.ea-m .ea-dot { display: none; }
.ea-note.ea-m .ea-link { width: min-content; height: auto; padding: 2px 4px; white-space: normal; text-align: left; font-size: 10px; line-height: 1.15; }
.ea-note.ea-m .ea-x { width: 18px; height: 18px; }
