/* tippy.css -- Tippy "ask MetroTrak" panel (2026-12-02). Own file; namespaced tpy-*. Themes through the ADP
   variables (dark default, html.light variant) so day/night follow the site. Phone: full-screen panel. */
.tpy-launch { position: fixed; right: 18px; bottom: 18px; z-index: 8990; display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--adp-bd, #2b3a55);
  background: var(--adp-surf, #16213e); color: var(--adp-txt, #e8eef8); font-weight: 800; font-size: 12px; line-height: 1; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.35); letter-spacing: .02em; }
.tpy-launch:hover, .tpy-launch:focus-visible { border-color: var(--adp-pulse, #22d3ee); outline: none; }
.tpy-launch.tpy-in-slot { position: static; box-shadow: none; padding: 3px 10px 3px 3px; }
.tpy-av { border-radius: 50%; flex: 0 0 auto; display: block; }
.tpy-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); z-index: 9000; display: flex;
  flex-direction: column; background: var(--adp-bg, #111a30); color: var(--adp-txt, #e8eef8);
  border-left: 1px solid var(--adp-bd, #2b3a55); box-shadow: -12px 0 40px rgba(0,0,0,.35);
  transform: translateX(105%); transition: transform .22s ease; visibility: hidden; }
.tpy-panel.tpy-open { transform: none; visibility: visible; }
.tpy-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(135deg, var(--adp-hero1, #0b1226), var(--adp-hero2, #182a52));
  border-bottom: 1px solid var(--adp-bd, #2b3a55); }
.tpy-hd { flex: 1; min-width: 0; }
.tpy-name { font-size: 12px; font-weight: 800; color: #d97706; text-transform: uppercase; letter-spacing: 1.4px; }
.tpy-sub { font-size: 11px; font-weight: 600; color: var(--adp-mut, #8fa3bd); }
.tpy-dot { width: 9px; height: 9px; border-radius: 50%; background: #64748b; }
.tpy-dot.tpy-t-good { background: #34d399; } .tpy-dot.tpy-t-warn { background: #fbbf24; }
.tpy-x { background: none; border: 0; color: var(--adp-mut, #8fa3bd); font-size: 24px; line-height: 1; cursor: pointer;
  padding: 2px 6px; border-radius: 6px; }
.tpy-x:hover { color: var(--adp-txt, #e8eef8); }
.tpy-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  overscroll-behavior: contain; }
.tpy-msg { font-size: 13px; line-height: 1.4; }
.tpy-me { align-self: flex-end; max-width: 85%; background: rgba(59,130,246,.16); border: 1px solid rgba(59,130,246,.45);
  border-radius: 12px 12px 2px 12px; padding: 8px 11px; }
.tpy-bot { align-self: stretch; }
.tpy-hello { color: var(--adp-mut, #8fa3bd); font-size: 12.5px; margin-bottom: 8px; }
.tpy-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tpy-chip { font-weight: 600; font-size: 11.5px; line-height: 1.25; font-family: inherit; color: var(--adp-txt, #e8eef8); background: var(--adp-surf2, #1b2747);
  border: 1px solid var(--adp-bd, #2b3a55); border-radius: 999px; padding: 6px 10px; cursor: pointer; text-align: left; }
.tpy-chip:hover { border-color: var(--adp-pulse, #22d3ee); }
.tpy-wait { display: flex; align-items: center; gap: 8px; color: var(--adp-mut, #8fa3bd); font-size: 12px; }
.tpy-typing span { animation: tpyBlink 1.2s infinite; } .tpy-typing span:nth-child(2) { animation-delay: .2s; }
.tpy-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes tpyBlink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tpy-typing span { animation: none; } .tpy-panel { transition: none; } }
.tpy-ans { background: var(--adp-surf, #16213e); border: 1px solid var(--adp-bd, #2b3a55); border-radius: 12px; padding: 10px; }
.tpy-ans-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.tpy-ans-t { font-size: 12px; font-weight: 800; color: #d97706; text-transform: uppercase; letter-spacing: 1.2px; }
.tpy-asof, .tpy-secs { font-size: 9.5px; font-weight: 700; color: var(--adp-mut, #8fa3bd); text-transform: uppercase;
  letter-spacing: .05em; white-space: nowrap; }
.tpy-secs { text-align: right; margin-top: 4px; }
.tpy-blk + .tpy-blk { margin-top: 10px; }
.tpy-sec { font-size: 10.5px; font-weight: 900; color: var(--adp-mut, #8fa3bd); text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: 6px; }
.tpy-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.tpy-metric { border-radius: 10px; padding: 9px 10px; min-height: 58px; border: 1px solid var(--adp-bd, #2b3a55);
  background: var(--adp-surf2, #1b2747); }
.tpy-mv { font-size: 21px; font-weight: 900; line-height: 1.1; color: var(--adp-txt, #e8eef8); overflow-wrap: anywhere; }
.tpy-mu { font-size: 11px; font-weight: 700; color: var(--adp-mut, #8fa3bd); }
.tpy-ml { font-size: 9px; font-weight: 800; color: var(--adp-mut, #8fa3bd); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 4px; }
/* semantic triad (page-design system): green good / yellow warn / red bad; cyan info; grey mute */
.tpy-metric.tpy-t-good .tpy-mv { color: #34d399; } .tpy-metric.tpy-t-warn .tpy-mv { color: #fbbf24; }
.tpy-metric.tpy-t-bad .tpy-mv { color: #f87171; } .tpy-metric.tpy-t-info .tpy-mv { color: var(--adp-txt, #e8eef8); }
.tpy-metric.tpy-t-bad { border-color: rgba(248,113,113,.45); } .tpy-metric.tpy-t-warn { border-color: rgba(251,191,36,.4); }
.tpy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tpy-li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px;
  background: var(--adp-surf2, #1b2747); border: 1px solid var(--adp-bd, #2b3a55); }
.tpy-li-main { flex: 1; min-width: 0; }
.tpy-li-p { font-size: 12px; font-weight: 800; color: var(--adp-txt, #e8eef8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpy-li-s { font-size: 11px; font-weight: 500; color: var(--adp-mut, #8fa3bd); margin-top: 2px; overflow-wrap: anywhere; }
.tpy-pill { flex: 0 0 auto; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.tpy-pill.tpy-t-good { color: #34d399; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.1); }
.tpy-pill.tpy-t-warn { color: #fbbf24; border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.1); }
.tpy-pill.tpy-t-bad { color: #f87171; border-color: rgba(248,113,113,.5); background: rgba(248,113,113,.1); }
.tpy-pill.tpy-t-info { color: var(--adp-pulse, #22d3ee); border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.08); }
.tpy-pill.tpy-t-mute { color: var(--adp-mut, #8fa3bd); border-color: var(--adp-bd, #2b3a55); }
.tpy-tablewrap { overflow-x: auto; border: 1px solid var(--adp-bd, #2b3a55); border-radius: 10px; }
.tpy-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.tpy-table th { text-align: left; font-size: 9.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em;
  color: var(--adp-mut, #8fa3bd); background: var(--adp-surf2, #1b2747); padding: 6px 8px; white-space: nowrap; }
.tpy-table td { padding: 6px 8px; border-top: 1px solid var(--adp-bd, #2b3a55); color: var(--adp-txt, #e8eef8);
  vertical-align: top; }
.tpy-table tr:nth-child(even) td { background: rgba(148,163,184,.04); }
.tpy-bars { display: flex; flex-direction: column; gap: 5px; }
.tpy-bar { display: grid; grid-template-columns: minmax(70px, 34%) 1fr auto; align-items: center; gap: 8px; font-size: 11px; }
.tpy-bl { color: var(--adp-txt, #e8eef8); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tpy-bt { height: 12px; border-radius: 6px; background: rgba(148,163,184,.12); overflow: hidden; }
.tpy-bf { height: 100%; border-radius: 6px; background: var(--adp-pulse, #22d3ee); }
.tpy-bf.tpy-t-good { background: #34d399; } .tpy-bf.tpy-t-warn { background: #fbbf24; }
.tpy-bf.tpy-t-bad { background: #f87171; } .tpy-bf.tpy-t-mute { background: #64748b; }
.tpy-bv { font-weight: 800; color: var(--adp-txt, #e8eef8); min-width: 36px; text-align: right; }
.tpy-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tpy-btn { font-weight: 800; font-size: 11.5px; line-height: 1; font-family: inherit; color: var(--adp-txt, #e8eef8); background: transparent; cursor: pointer;
  border: 1px solid var(--adp-pulse, #22d3ee); border-radius: 8px; padding: 8px 12px; }
.tpy-btn:hover, .tpy-btn:focus-visible { background: rgba(34,211,238,.12); outline: none; }
.tpy-btn-sm { padding: 5px 8px; font-size: 10.5px; }
.tpy-notice { font-size: 12px; line-height: 1.45; border-radius: 10px; padding: 8px 10px; border: 1px solid;
  border-left-width: 4px; }
.tpy-notice.tpy-t-good { border-color: rgba(52,211,153,.55); background: rgba(52,211,153,.08); }
.tpy-notice.tpy-t-warn { border-color: rgba(251,191,36,.55); background: rgba(251,191,36,.08); }
.tpy-notice.tpy-t-bad { border-color: rgba(248,113,113,.6); background: rgba(248,113,113,.08); }
.tpy-notice.tpy-t-info, .tpy-notice.tpy-t-mute { border-color: rgba(34,211,238,.45); background: rgba(34,211,238,.06); }
.tpy-form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--adp-bd, #2b3a55); background: var(--adp-surf, #16213e); }
.tpy-in { flex: 1; min-width: 0; font-size: 16px; /* 16px stops phone zoom-on-focus */ padding: 9px 11px; border-radius: 10px;
  border: 1px solid var(--adp-bd, #2b3a55); background: var(--adp-bg, #111a30); color: var(--adp-txt, #e8eef8); }
.tpy-in:focus { outline: none; border-color: var(--adp-pulse, #22d3ee); }
.tpy-go { font-weight: 800; font-size: 12px; line-height: 1; font-family: inherit; border: 0; border-radius: 10px; padding: 0 16px; cursor: pointer; color: #0b1226;
  background: var(--adp-pulse, #22d3ee); }
@media (max-width: 640px) {
  .tpy-panel { width: 100vw; border-left: 0; }
  .tpy-launch .tpy-launch-t { display: none; } .tpy-launch { padding: 5px; right: 12px; bottom: 12px; }
}
html.light .tpy-metric.tpy-t-good .tpy-mv, html.light .tpy-pill.tpy-t-good { color: #059669; }
html.light .tpy-metric.tpy-t-warn .tpy-mv, html.light .tpy-pill.tpy-t-warn { color: #b45309; }
html.light .tpy-metric.tpy-t-bad .tpy-mv, html.light .tpy-pill.tpy-t-bad { color: #dc2626; }
html.light .tpy-panel { box-shadow: -12px 0 40px rgba(15,23,42,.18); }

/* 2026-12-03: "AI for school or personal use" button (admin, or office with Family on). Purple = personal side. */
.tpy-personal { display: flex; align-items: center; gap: 10px; margin: 10px 12px 0; padding: 9px 12px; border-radius: 12px;
  text-decoration: none; color: var(--adp-txt, #e8eef8); background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.55); }
.tpy-personal:hover, .tpy-personal:focus-visible { background: rgba(167,139,250,.2); border-color: #a78bfa; outline: none; }
.tpy-personal-i { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 900; font-size: 12px; color: #1e1036; background: #a78bfa; }
.tpy-personal-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tpy-personal-t b { font-size: 12.5px; font-weight: 800; }
.tpy-personal-t span { font-size: 11px; color: var(--adp-mut, #8fa3bd); }
.tpy-personal-go { font-size: 20px; font-weight: 800; color: #a78bfa; }
html.light .tpy-personal { background: rgba(124,58,237,.07); border-color: rgba(124,58,237,.45); }

/* 2026-12-03 overlap fix: the layout-editor pencil docked INTO the look2 view bar (moved there by tippy.js).
   Same look as the bar's own buttons. #mt-look-ctl #mtle-edit-btn beats layout_editor.css's #mtle-edit-btn. */
#mt-look-ctl #mtle-edit-btn.tpy-docked { position: static; width: auto; height: auto; border-radius: 8px; z-index: auto;
  border: 1px solid var(--line, #334155); background: var(--surf, #141f37); color: var(--ink2, #cbd5e1);
  padding: 4px 9px; font-size: 13px; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.25); transform: none; }
#mt-look-ctl #mtle-edit-btn.tpy-docked:hover { border-color: var(--accentBg, #2563eb); transform: none; }
/* No view bar: the floating pencil sits above a floating Tippy button, and hides while the Tippy panel is open. */
html.tpy-float #mtle-edit-btn:not(.tpy-docked) { bottom: 70px; }
html.tpy-is-open #mtle-edit-btn:not(.tpy-docked) { display: none; }
/* The panel's top is set inline by tippy.js to just below the view bar; keep the header from shrinking. */
.tpy-panel { transition: transform .22s ease, top .12s ease; }
.tpy-head { flex: 0 0 auto; }
@media (max-width: 640px) { .tpy-panel { border-top: 1px solid var(--adp-bd, #2b3a55); } }
/* Phone: the bar (now one item longer) wraps onto two rows inside the screen instead of running off the left edge. */
@media (max-width: 700px) { html.tpy-dock #mt-look-ctl { left: 8px; right: 8px; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; } }

/* 2026-12-03 Tippy header: avatar 3x (36 -> 108 px; 72 px on phones so the chat keeps its room), title in the site's
   page-title treatment: the look2 --title orange + 700 weight sans, same as .content-header h2 (falls back to the
   ADP orange #d97706 when the new look is off). */
.tpy-head { gap: 14px; padding: 12px 14px; align-items: center; }
.tpy-head .tpy-av { width: 108px; height: 108px; border-radius: 50%; flex: 0 0 auto; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 4px 14px rgba(0,0,0,.35); }
.tpy-head .tpy-name { font: 700 21px/1.2 var(--mt-sans, inherit); color: var(--title, #d97706); letter-spacing: .04em; }
.tpy-head .tpy-sub { margin-top: 3px; }
.tpy-head .tpy-x, .tpy-head .tpy-dot { flex: 0 0 auto; }
html.light .tpy-head .tpy-av { box-shadow: 0 0 0 1px rgba(15,23,42,.12), 0 4px 14px rgba(15,23,42,.15); }
@media (max-width: 640px) {
  .tpy-head { gap: 10px; padding: 10px 12px; }
  .tpy-head .tpy-av { width: 72px; height: 72px; }
  .tpy-head .tpy-name { font-size: 18px; }
}


/* 2026-12-03 (Dennis 2:47 / 2:56 screenshots) ---------------------------------------------------------------
   1. Metric tiles: never an orphan tile on a second row. 4 tiles = clean 2x2 in the panel (4 across only when the
      card is wide), 3 = one row of 3, 2 = 2, 1 = full width. Container query on the answer card, so it follows the
      PANEL width, not the window.
   2. The question bubble and the suggestion chips never touch the panel's right edge: everything in the chat body
      stays inside the same 12 px gutter as the cards (long chips wrap instead of overflowing). */
.tpy-ans { container-type: inline-size; }
.tpy-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpy-metrics:has(> .tpy-metric:only-child) { grid-template-columns: minmax(0, 1fr); }
.tpy-metrics:has(> .tpy-metric:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (min-width: 520px) {
  .tpy-metrics:has(> .tpy-metric:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.tpy-metric { min-width: 0; }
.tpy-panel, .tpy-panel * { box-sizing: border-box; }
.tpy-body { padding: 12px 12px 12px 12px; }
.tpy-msg { max-width: 100%; min-width: 0; }
.tpy-me { max-width: 85%; margin-right: 0; overflow-wrap: anywhere; }
.tpy-chips { max-width: 100%; }
.tpy-chip { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
/* the filtered "Show ..." button: same button, filled so it reads as the primary action */
.tpy-btn.tpy-btn-f { background: rgba(34,211,238,.14); }
.tpy-btn.tpy-btn-f:hover, .tpy-btn.tpy-btn-f:focus-visible { background: rgba(34,211,238,.24); }


/* 2026-12-03 (Dennis 3:03 PM): case # and VIN in an account row are links to that order (tippy.js a.tpy-acct). */
a.tpy-acct { color: var(--adp-pulse, #22d3ee); font-weight: 700; text-decoration: underline; text-decoration-style: dotted;
  text-underline-offset: 2px; cursor: pointer; white-space: nowrap; }
a.tpy-acct:hover, a.tpy-acct:focus-visible { text-decoration-style: solid; outline: none; }
html.light a.tpy-acct { color: #0369a1; }
