/* Mingo - ui/mascot-panel.css: the panel the mascot opens (ui/mascot-panel.js; the flamingo panel contract of 2026-11-12, the
   owner's mockup panel D). An OPAQUE plate above the mascot, placed by the module (fixed: left / top / width / height in px, always
   inside the window), shown and hidden at once - never a fade, nothing behind it dimmed. Top to bottom: the tip (a bubble alone, the
   row's full width: no mascot inside the panel, the owner's at-most-one rule of 2026-11-13), the coming-soon middle (most of the height), `Any suggestions or bugs?`. Colors from ui/theme.css + ui/ridge.css, so
   both palettes follow by themselves. Every control is fully declared here: theme.css's bare <button> rules do not reach in. */

.mp {
  position: fixed; z-index: 1; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--glass-edge);
  background: var(--surface); box-shadow: var(--shadow-3);
  color: var(--fg); font-family: var(--font-ui); font-size: 13px; line-height: 1.45; text-align: left;
  pointer-events: auto;
}
.mp:focus { outline: none; }
/* open, the mascot and its panel stand over everything of the page (the web app's top bar and drawer, a hover word card), under a
   confirmation plate alone */
.mf:has(> .mp:not([hidden])) { z-index: 70; }
.mp p { margin: 0; }

/* x: a bare glyph at the top right */
.mp .mp-x, .mp .mp-x:hover {
  position: absolute; top: 9px; right: 9px; z-index: 1; width: 26px; height: 26px; min-width: 0; min-height: 0; margin: 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--fg-2); --press-bg: var(--press-quiet);
}
.mp .mp-x::before { content: ""; position: absolute; inset: -6px; }
@media (hover: hover) and (pointer: fine) { .mp .mp-x:hover { background: var(--fill-quiet); color: var(--fg); } }

/* ---------- 1. the tip: the bubble alone, the row's full width (left of the x) ---------- */
.mp-tip { flex: none; display: flex; align-items: center; margin-right: 30px; }
.mp-tip[hidden] { display: none; }
.mp-cloud {
  flex: 1; min-width: 0; display: block; min-height: 34px; box-sizing: border-box; overflow-wrap: break-word;
  padding: 7px 12px; border-radius: 17px; background: var(--field); border: 1px solid var(--glass-edge);
}
/* `Tip:` inline with the sentence, which wraps under it (as on Windows). No control: no hand, no hover; the tip changes at each opening of the panel (section 123, 2026-11-13). Only a link in it works */
.mp-tip-word { flex: none; font-weight: 600; }
.mp-tip-text { flex: 1; min-width: 0; overflow-wrap: break-word; }
.mp-tip-link { color: var(--accent-text, var(--current)); }

/* ---------- 2. the middle: coming soon ---------- */
.mp-soon { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 14px 12px; overflow: hidden; }
.mp-soon-line { font-size: 14px; }
.mp-place { display: grid; place-items: center; min-height: 32px; margin-top: 12px; max-width: 100%; }
.mp-place > [hidden], .mp-note[hidden], .mp-said[hidden], .mp-sugbox[hidden], .mp .mp-sugline[hidden] { display: none; }
.mp-entry { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.mp-email { width: 200px; min-width: 0; flex: 0 1 200px; height: 32px; }
.mp-thanks { font-size: 13px; }
.mp-note { margin-top: 6px; font-size: 12px; color: var(--fg-2); text-align: center; }
/* the one filled action: theme.css button.primary (the Current fill, the label --on-accent: 4.5 : 1 on it in both palettes) in the
   kit's primary measures */
.mp .mp-primary { flex: none; height: 30px; min-height: 30px; min-width: 88px; margin: 0; padding: 0 18px; border-radius: var(--radius-btn-sm); font-size: 13px; font-weight: 600; white-space: nowrap; }
.mp .mp-primary.mp-send { min-width: 0; height: 32px; min-height: 32px; padding: 0 14px; }
.mp .mp-primary:disabled { opacity: 1; }   /* while a send is on its way: inert, never dimmed */

/* ---------- 3. the bottom: Any suggestions or bugs? ---------- */
.mp-sug { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: -2px 0 -4px; }
.mp .mp-sugline, .mp .mp-sugline:hover {
  height: 24px; min-height: 0; min-width: 0; margin: 0; padding: 0 8px; border: 0; border-radius: 8px; background: none;
  color: var(--fg-2); font-size: 12px; --press-bg: var(--press-quiet);
}
@media (hover: hover) and (pointer: fine) { .mp .mp-sugline:hover { background: var(--fill-quiet); color: var(--fg); } }
.mp-sugbox { display: flex; align-items: flex-end; gap: 6px; width: 100%; padding-bottom: 4px; }
/* the box's close (2026-11-14): a round bare x at its top right, Send under it at the bottom */
.mp-sugside { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; flex: none; }
.mp .mp-sugx, .mp .mp-sugx:hover {
  position: relative; width: 24px; height: 24px; min-width: 0; min-height: 0; margin: 0; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--fg-2); --press-bg: var(--press-quiet);
}
.mp .mp-sugx::before { content: ""; position: absolute; inset: -6px; }
@media (hover: hover) and (pointer: fine) { .mp .mp-sugx:hover { background: var(--fill-quiet); color: var(--fg); } }
.mp-sugtext { flex: 1; min-width: 0; width: auto; height: 58px; min-height: 58px; padding: 6px 12px; line-height: 1.4; resize: none; border-radius: 12px; }
.mp-said { font-size: 12px; min-height: 24px; display: flex; align-items: center; }
.mp-sug .mp-note { margin: 0 0 4px; }

.mp button:focus-visible, .mp a:focus-visible { outline: none; box-shadow: var(--focus-ring); }

@media (forced-colors: active) { .mp { border-color: CanvasText; } }

/* ---------- a narrow new tab (the web app's card on a phone): the mascot a size smaller, as on the web app's pages, and the card
   ends above it, so it never stands on the card's ‹ › ---------- */
@media (max-width: 640px) {
  body.nt.has-mf .mf { --mf-h: 82px; }
  body.nt.has-mf .nt-main { padding-bottom: 96px; }
}
