/* App quick wins (Wave A, A3; public/quick-wins.js). Loaded by the chat (index.html) and the insertion order (io.html);
   every colour is a theme.css token, so light and dark follow the page. */

/* ---- "Counted Oct 2" on an old count, on the count card's navy band ---- */
.count-age {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  margin: 10px 0 2px;
}
.count-hero .count-cost { text-wrap: pretty; }
/* Amber on the navy band in both themes: the dark theme's --warn (#F5B759; the light theme's --warn is a dark amber
   made for white, unreadable on navy) reads at 8.6:1 on #15294F and 6.4:1 on #24406F. */
.count-age-when {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: #F5B759;
}
.count-age-when::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.count-again {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid rgba(245, 183, 89, 0.75); border-radius: 999px;
  background: transparent; color: #F5B759;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.count-again svg { flex: none; }
@media (hover: hover) { .count-again:not([aria-disabled="true"]):hover { background: rgba(245, 183, 89, 0.14); } }
.count-again:active { background: rgba(245, 183, 89, 0.22); }
.count-again:focus-visible { outline: 2px solid #F5B759; outline-offset: 2px; }
.count-again[aria-disabled="true"] { opacity: .7; cursor: default; }
.count-again.is-busy svg { animation: qw-spin .9s linear infinite; }
.count-age-note { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--on-navy-dim); }
.count-again-done {
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--on-navy);
  background: none; border: 0; padding: 8px 0; margin: -8px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.45);
}
.count-again-done:focus-visible { outline: 2px solid var(--on-navy); outline-offset: 2px; border-radius: 4px; }
@keyframes qw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .count-again.is-busy svg { animation: none; } }

/* The account's saved counts: the same amber for a count older than a week (account.js). */
.count-when.is-old { color: var(--warn); font-weight: 600; }

/* ---- Election Day countdown, in the chat's top bar ---- */
.election-countdown {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  margin: 0 0 0 auto; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: var(--navy-tint); color: var(--navy-text);
  box-shadow: inset 0 0 0 1px var(--navy-line);
  font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.election-countdown[hidden] { display: none; }
.election-countdown .ec-mark {
  flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral);
}
.election-countdown .ec-short { display: none; }
/* One countdown per screen (chat wave 2, 17 Oct 2026): on the empty home page its opener (#home-date, "<State> votes
   Tuesday, November 3, N days from today") says it, so the pill steps aside while that line shows. The opener hides
   itself below 701px tall; there the pill stays. */
/* One date on the home (calm design pass, 24 Oct 2026): the short line too ("Florida votes Tuesday, November 3.", design
   round 2 #10's data-short) now stands alone there, the pill back in every conversation. The pill plus the line showed
   the same day twice in two wordings (design walk, claim b). Held out while the line's room is held too, so nothing
   comes and goes when the line lands; only a page with no line (home-date.js hides it) gets the pill back. */
@media (min-height: 701px) {
  html.chat-empty:has(#home-date:not([hidden])) #election-countdown { display: none; }
}
/* Its New chat icon keeps its own place at the right edge, beside it. */
.topbar > .election-countdown:not([hidden]) ~ .new-chat-icon { margin-left: 4px !important; }
/* A phone: two short lines, small capitals over the days, in a rounded badge that fits beside the name at 320px. */
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .election-countdown { padding: 5px 11px; border-radius: 12px; gap: 0; }
  .election-countdown .ec-mark { display: none; }
  .election-countdown .ec-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .election-countdown .ec-short { display: flex; flex-direction: column; align-items: center; }
  .election-countdown .ec-k { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.15; color: var(--navy-text); opacity: .82; }
  .election-countdown .ec-n { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
}

/* ---- the signed order's moment (io.js) ---- */
.qw-pop { animation: qw-pop .48s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes qw-pop { 0% { transform: scale(.55); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.io-signed-mark { position: relative; }
/* The words and Print stay above the burst. */
.io-signed-copy, .io-print-btn { position: relative; z-index: 1; }
.qw-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.qw-piece {
  position: absolute; left: -4px; top: -2px; width: 8px; height: 4px; border-radius: 1px;
  background: var(--c); opacity: 0;
  animation: qw-fly var(--t, 900ms) cubic-bezier(.15, .7, .3, 1) forwards;
}
.qw-piece.is-dot { width: 6px; height: 6px; border-radius: 50%; left: -3px; top: -3px; }
@keyframes qw-fly {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(.6); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .qw-pop, .qw-piece { animation: none; } .qw-burst { display: none; } }

/* ---- "Add the send to your calendar" ---- */
.qw-cal { grid-column: 1 / -1; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.qw-cal-head { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.qw-cal-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qw-cal-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  /* The insertion order page's own button (io.css .io-ghost), so Print and these read as one set. */
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
@media (hover: hover) { .qw-cal-btn:hover { background: var(--surface-2); border-color: var(--ink-line); } }
.qw-cal-btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (max-width: 479.98px) { .qw-cal-row { display: grid; grid-template-columns: 1fr; } }
@media print { .qw-cal { display: none !important; } }

/* ---- the email on a phone and a computer ---- */
.draft-preview-label:has(.draft-devices) { display: flex; align-items: center; justify-content: space-between; gap: 2px 8px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
/* The card being written holds the same button unseen (app.js), so both labels are one height and the email does not
   move when the finished card takes its place (holdFoot). */
.draft-devices.is-held { visibility: hidden; }
.draft-devices {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin: 0 -8px 0 0; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--navy-text);
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.draft-devices svg { flex: none; }
@media (hover: hover) { .draft-devices:hover { background: var(--navy-tint-2); } }
.draft-devices:active { background: var(--navy-tint-2); }
.draft-devices:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

html.qw-preview-open { overflow: hidden; }
.qw-preview {
  width: min(1180px, calc(100vw - 48px)); max-width: none; height: min(820px, calc(100dvh - 48px)); max-height: none;
  margin: auto; padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.qw-preview:not([open]) { display: none; }
.qw-preview::backdrop { background: rgba(11, 11, 16, 0.48); }
.qw-pv-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 16px 10px 24px; }
.qw-pv-titles { min-width: 0; padding-top: 8px; }
.qw-pv-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.qw-pv-title:focus { outline: none; }
.qw-pv-x {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
@media (hover: hover) { .qw-pv-x:hover { background: var(--ink-soft); } }
.qw-pv-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.qw-pv-body { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 4px 24px 16px; }
.qw-pv-tabs { display: none; }
.qw-pv-stage { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); gap: 28px; align-items: end; }
.qw-pv-device { margin: 0; min-width: 0; }
.qw-pv-device[hidden] { display: none; }
.qw-pv-fit { position: relative; width: 100%; margin: 0 auto; overflow: hidden; }
/* Never a transition: app.css's Reduce Motion rule gives every property a .01ms one, which left a screen's scale
   stuck at its first frame in WebKit and headless Chrome (the computer drawn at full size, cut off), and the
   Phone/Computer switch showing the old side picked. */
.qw-preview *, .qw-home, .qw-home * { transition-property: none !important; }
.qw-pv-screen {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden;
  background: #fff; color: #212529; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}
.qw-pv-device.is-computer .qw-pv-screen { border-radius: 12px; box-shadow: 0 0 0 1px rgba(11, 11, 16, .16), 0 18px 40px -18px rgba(11, 11, 16, .35); }
.qw-pv-device.is-phone .qw-pv-screen { border-radius: 54px; box-shadow: 0 0 0 12px #16171c, 0 0 0 13px #3a3b42, 0 18px 40px -12px rgba(11, 11, 16, .45); }
/* The phone frame's 12px ring sits outside the screen: room is left for it around the fit box. */
.qw-pv-device.is-phone .qw-pv-fit { margin: 13px auto; overflow: visible; }
.qw-pv-cap { margin: 16px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-dim); }

/* The computer: a window with three dots, a folder list and the reading pane. */
.qw-pv-chrome { display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 16px; background: #EEF0F3; border-bottom: 1px solid #DDE1E6; }
.qw-pv-chrome i { width: 12px; height: 12px; border-radius: 50%; background: #F26B5E; }
.qw-pv-chrome i + i { background: #F5BE4F; }
.qw-pv-chrome i + i + i { background: #5FC453; }
.qw-pv-main { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: calc(100% - 38px); }
.qw-pv-main.is-small { grid-template-columns: minmax(0, 1fr); }
.qw-pv-folders { display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; background: #F6F7F9; border-right: 1px solid #E5E7EB; font-size: 15px; color: #4B5563; }
.qw-pv-folders span { padding: 8px 12px; border-radius: 8px; }
.qw-pv-folders .is-on { background: #E3E8F2; color: #15294F; font-weight: 600; }
.qw-pv-pane { height: 100%; overflow-y: auto; overscroll-behavior: contain; background: #F3F4F6; scrollbar-width: none; }
.qw-pv-pane::-webkit-scrollbar { display: none; }
.qw-pv-device.is-phone .qw-pv-pane { height: calc(100% - 50px); }

/* The phone: the time, then the mail app. */
.qw-pv-status { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 14px 34px 0; background: #fff; font-size: 16px; font-weight: 600; color: #000; }
.qw-pv-status i { width: 26px; height: 12px; border-radius: 3px; border: 1.5px solid #000; position: relative; }
.qw-pv-status i::after { content: ''; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: #000; border-radius: 1px; }

.qw-mail-head { background: #fff; padding: 16px 24px 14px; border-bottom: 1px solid #E5E7EB; }
.qw-mail-head.is-phone { padding: 6px 18px 12px; }
.qw-mail-nav { margin: 0 0 10px; }
.qw-mail-back { color: #1a73e8; font-size: 17px; }
.qw-mail-back::before { content: '‹'; font-size: 28px; line-height: 0; vertical-align: -3px; margin-right: 4px; }
.qw-mail-subject { margin: 0 0 12px; font-size: 22px; line-height: 1.3; font-weight: 600; color: #111; overflow-wrap: anywhere; }
.qw-mail-head.is-phone .qw-mail-subject { font-size: 20px; }
.qw-mail-from { display: flex; align-items: center; gap: 10px; }
.qw-mail-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #15294F; }
.qw-mail-who { display: flex; flex-direction: column; min-width: 0; }
.qw-mail-name { font-size: 15px; font-weight: 600; color: #111; }
.qw-mail-to { font-size: 13px; color: #6B7280; }
.qw-mail-preview { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: #6B7280; overflow-wrap: anywhere; }
.qw-email { display: block; }

.qw-pv-note { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text-dim); }
.qw-pv-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; padding: 14px 24px 18px; border-top: 1px solid var(--line); background: var(--surface); }

/* A phone: the box is the whole screen, Phone and Computer to switch, the buttons along the foot. */
@media (max-width: 760px) {
  .qw-preview { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; margin: 0; }
  .qw-pv-head { padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px 18px; }
  .qw-pv-titles { padding-top: 6px; }
  .qw-pv-body { padding: 4px 16px 8px; }
  .qw-pv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 14px; padding: 4px; border-radius: 999px; background: var(--ink-soft); }
  .qw-pv-tab {
    min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text-dim);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .qw-pv-tab[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(11, 11, 16, .14); }
  html[data-theme="dark"] .qw-pv-tab[aria-pressed="true"] { background: rgba(255, 255, 255, .16); }
  /* The body is a column: the shown screen sits in the middle of the room left, never over a blank foot. */
  .qw-pv-body { display: flex; flex-direction: column; }
  .qw-pv-stage { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
  .qw-pv-tab:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
  .qw-pv-cap { display: none; }
  .qw-pv-acts { padding: 12px 16px calc(env(safe-area-inset-bottom, 0px) + 12px); justify-content: stretch; }
  .qw-pv-acts .card-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .qw-preview[open] { animation: qw-in .22s var(--ease, ease-out); }
  .qw-preview[open]::backdrop { animation: qw-fade .22s ease-out; }
}
@keyframes qw-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes qw-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Add to Home Screen, once ---- */
/* In the flow under a finished reply (calm design pass, 24 Oct 2026; it was a fixed strip under the top bar, over the
   conversation): a quiet bordered row, no lift, like the other notes in the thread. */
.qw-home {
  display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 14px;
  border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (prefers-reduced-motion: no-preference) { .qw-home { animation: qw-in .26s var(--ease, ease-out); } }
.qw-home-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: #15294F url('/icon-192.png') center / cover no-repeat;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.qw-home-words { flex: 1 1 auto; min-width: 0; }
.qw-home-title { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.qw-home-how .nw { white-space: nowrap; }
.qw-home-how { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-dim); }
.qw-home-how b { color: var(--text); font-weight: 600; }
.qw-home-share {
  display: inline-block; width: 15px; height: 17px; margin: 0 3px -3px 1px;
  background: currentColor; color: #1a73e8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 17'%3E%3Cpath d='M7.5 1v9.5M4.2 4.3 7.5 1l3.3 3.3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 6.8H3a1.5 1.5 0 0 0-1.5 1.5v6.2A1.5 1.5 0 0 0 3 16h9a1.5 1.5 0 0 0 1.5-1.5V8.3A1.5 1.5 0 0 0 12 6.8h-2' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 17'%3E%3Cpath d='M7.5 1v9.5M4.2 4.3 7.5 1l3.3 3.3' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M5 6.8H3a1.5 1.5 0 0 0-1.5 1.5v6.2A1.5 1.5 0 0 0 3 16h9a1.5 1.5 0 0 0 1.5-1.5V8.3A1.5 1.5 0 0 0 12 6.8h-2' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
html[data-theme="dark"] .qw-home-share { color: #8AB4F8; }
.qw-home-add { min-height: 40px; flex: none; }
.qw-home-x {
  display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-dim); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qw-home-x:active { background: var(--ink-soft); }
.qw-home-x:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }

/* Learning tips (quick-wins.js learningTips; Nick 17 Oct 2026, colours from the coordinator's proposal): the logo's
   navy in both themes, white words, a white pill for Next/Done, "Don't show again" plain light words, the counter
   white at 70%, no coral. A thin light edge in the dark theme so it stands off the page. */
.qw-tip {
  --qw-tip-bg: #15294F;
  position: fixed; z-index: 60; box-sizing: border-box; padding: 12px 14px 12px 16px; border-radius: 16px;
  background: var(--qw-tip-bg); color: #fff; box-shadow: 0 14px 36px -18px rgba(5, 12, 28, .7), 0 2px 6px rgba(5, 12, 28, .18);
  font-family: var(--sans); text-align: left;
}
html[data-theme="dark"] .qw-tip { box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 36px -18px rgba(0, 0, 0, .8); }
.qw-tip:focus { outline: none; }
.qw-tip.is-arriving { animation: qw-tip-in .18s var(--ease, ease-out) both; }
.qw-tip.is-arriving.is-up { animation-name: qw-tip-in-up; }
@keyframes qw-tip-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes qw-tip-in-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.qw-tip-head { display: flex; align-items: center; justify-content: space-between; margin: -4px -8px 2px 0; }
.qw-tip-count { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.qw-tip-x {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: none; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.qw-tip-words { margin: 0 0 12px; font-size: 15px; font-weight: 500; line-height: 1.45; color: #fff; }
.qw-tip-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qw-tip-off {
  min-height: 40px; margin: 0 0 0 -8px; padding: 0 8px; border: 0; border-radius: 10px; background: none;
  color: rgba(255, 255, 255, .86); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.qw-tip-next {
  min-height: 40px; min-width: 84px; padding: 0 18px; border: 0; border-radius: 999px; background: #fff; color: #15294F;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
@media (hover: hover) {
  .qw-tip-x:hover, .qw-tip-off:hover { background: rgba(255, 255, 255, .12); }
  .qw-tip-next:hover { background: #E1E8F4; }
}
.qw-tip-x:focus-visible, .qw-tip-off:focus-visible, .qw-tip-next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (pointer: coarse) { .qw-tip-x { width: 44px; height: 44px; } .qw-tip-off, .qw-tip-next { min-height: 44px; } }
/* Its point on the thing it explains: below the bubble when it sits above, above it when below. */
.qw-tip-point {
  position: absolute; left: var(--qw-tip-point, 50%); width: 14px; height: 14px; margin-left: -7px; background: var(--qw-tip-bg);
  transform: rotate(45deg); top: -6px; border-radius: 2px;
}
.qw-tip.is-up .qw-tip-point { top: auto; bottom: -6px; }
html[data-theme="dark"] .qw-tip-point { box-shadow: -1px -1px 0 0 rgba(255, 255, 255, .4); }
html[data-theme="dark"] .qw-tip.is-up .qw-tip-point { box-shadow: 1px 1px 0 0 rgba(255, 255, 255, .4); }
@media (forced-colors: active) { .qw-tip { border: 2px solid CanvasText; } }
@media (prefers-reduced-motion: reduce) { .qw-tip.is-arriving { animation: none; } }
/* Beside its target: the point on the bubble's left edge, level with the target. */
.qw-tip.is-side .qw-tip-point { left: -6px; top: var(--qw-tip-y, 24px); bottom: auto; margin: -7px 0 0; }
html[data-theme="dark"] .qw-tip.is-side .qw-tip-point { box-shadow: -1px 1px 0 0 rgba(255, 255, 255, .4); }
/* Something sits between the bubble and its target: no point, a ring on the target instead. */
.qw-tip.no-point .qw-tip-point { display: none; }
.qw-tip-target { box-shadow: 0 0 0 2px #15294F, 0 0 0 5px rgba(21, 41, 79, .18) !important; }
/* A heading has no corners of its own: its ring is rounded like the buttons' (design critic, 19 Oct 2026: the square
   ring on "Chats" read as a debugging outline). */
h2.qw-tip-target, .side-heading.qw-tip-target { border-radius: 8px; }
html[data-theme="dark"] .qw-tip-target { box-shadow: 0 0 0 2px #C9D6F0, 0 0 0 5px rgba(201, 214, 240, .22) !important; }
@media (forced-colors: active) { .qw-tip-target { outline: 3px solid Highlight; } }
