
.askbar {
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.5);
  --pill: rgba(0, 0, 0, 0.05);
  --pill-border: rgba(0, 0, 0, 0.1);
  --pill-focus: rgba(0, 0, 0, 0.08);
  --row-hover: rgba(0, 0, 0, 0.05);
  --send-bg: #0b57d0;
  --send-fg: #ffffff;
  --research: #7c3aed; --research-ink: #ffffff; --verify: #1a7f37; --verify-ink: #ffffff;
  --strip-lip-width: 710px;
  --strip-lip-height: 48px;
  --strip-tile: 28px;
  --strip-cell-pad-y: calc((var(--strip-lip-height) - 10px - var(--strip-tile)) / 2);

  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .askbar {
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.55);
    --pill: rgba(255, 255, 255, 0.1);
    --pill-border: rgba(255, 255, 255, 0.1);
    --pill-focus: rgba(255, 255, 255, 0.175);
    --row-hover: rgba(255, 255, 255, 0.07);
    --send-bg: #ffffff;
    --send-fg: #000000;
    --research: #8b5cf6; --research-ink: #ffffff; --verify: #30d158; --verify-ink: #06230f;
  }
}
html[data-theme="dark"] .askbar {
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.55);
  --pill: rgba(255, 255, 255, 0.1);
  --pill-border: rgba(255, 255, 255, 0.1);
  --pill-focus: rgba(255, 255, 255, 0.175);
  --row-hover: rgba(255, 255, 255, 0.07);
  --send-bg: #ffffff;
  --send-fg: #000000;
  --research: #8b5cf6; --research-ink: #ffffff; --verify: #30d158; --verify-ink: #06230f;
}
.askbar [hidden] { display: none !important; }

.askbar .composer {
  position: relative;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 60px;
  padding: 0 8px;
  background: var(--pill);
  border: 1px solid var(--pill-border);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.14s, border-color 0.14s;
}
.askbar .composer:focus-within { background: var(--pill-focus); }

.askbar .q-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.askbar .q {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 0 6px;
  text-align: center;
}
.askbar .q::placeholder { color: transparent; }
.askbar .q-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: safe center;
  text-align: center;
  padding: 0 6px;
  font-size: 15px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.askbar .q:not(:placeholder-shown) + .q-hint { display: none; }

.askbar .send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--send-bg);
  color: var(--send-fg);
  cursor: pointer;
  transition: opacity 0.12s, transform 0.08s;
}
.askbar .send:hover { opacity: 0.9; }
.askbar .send:active { transform: scale(0.94); }
.askbar .send:disabled { opacity: 0.4; cursor: default; }
.askbar .send svg { width: 22px; height: 22px; }
.askbar .send:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

.askbar .status-strip {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  margin: 0 auto;
  padding: 4px;
  border-radius: 18px;
  border: 1px solid var(--pill-border);
  background: var(--pill);
  overflow: hidden;
  position: relative;
  transition: background 0.14s;
  margin-top: 0;
  padding: 4px 8px;
  width: 100%;
  max-width: var(--strip-lip-width);
  justify-content: flex-start;
  border-radius: 0 0 20px 20px;
  border-top-color: transparent;
}
.askbar .status-strip > :is(button, a) { transition: opacity 0.16s ease 0.04s; }
.askbar:has(.composer:focus-within) .status-strip,
.askbar:has(.status-strip:focus-within) .status-strip { background: var(--pill-focus); }
.askbar .status-seg {
  display: inline-flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  gap: 10px;
  padding: var(--strip-cell-pad-y) 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: default;
  text-decoration: none;
  text-align: start;
  transition: background 0.12s;
}
.askbar .status-strip > :is(button, a) + :is(button, a) { box-shadow: -1px 0 0 var(--pill-border); }
[dir="rtl"] .askbar .status-strip > :is(button, a) + :is(button, a) { box-shadow: 1px 0 0 var(--pill-border); }
.askbar .status-seg:hover,
.askbar .status-icon:hover { background: var(--pill-focus); }
.askbar .status-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.askbar .status-primary { font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askbar .status-sub { font-size: 11px; line-height: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askbar .status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--strip-cell-pad-y) 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  cursor: default;
  transition: background 0.12s, color 0.12s;
}
.askbar .status-icon:hover { color: var(--text); }
.askbar .status-art {
  width: var(--strip-tile);
  height: var(--strip-tile);
  flex: 0 0 auto;
  object-fit: fill;
  border-radius: 26.2%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.askbar .status-icon--research:hover {
  color: var(--research);
  background: color-mix(in oklab, var(--research) 18%, transparent);
}
.askbar .status-icon--verify:hover {
  color: var(--verify);
  background: color-mix(in oklab, var(--verify) 18%, transparent);
}
.askbar .status-icon--verify[aria-pressed="true"] { color: var(--verify-ink); background: var(--verify); }
.askbar .status-icon--verify[aria-pressed="true"]:hover { color: var(--verify-ink); }
@media (max-width: 640px) {
  .askbar .status-strip { flex-wrap: wrap; justify-content: center; }
  .askbar .status-strip > :is(button, a) + :is(button, a) { box-shadow: none; }
  .askbar .status-seg { flex: 0 0 auto; min-width: auto; }
}
.askbar.wrap-narrow { container-type: inline-size; }
@container (max-width: 640px) {
  .askbar.wrap-narrow .status-strip { flex-wrap: wrap; justify-content: center; }
  .askbar.wrap-narrow .status-strip > :is(button, a) + :is(button, a) { box-shadow: none; }
  .askbar.wrap-narrow .status-seg { flex: 0 0 auto; min-width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .askbar .status-strip, .askbar .status-strip > :is(button, a) { transition: none; }
}

/* THE WAITLIST HINT ON THE ORB, centred on the orb. The hint was centred in .q-wrap, which sits off-centre in the bar (one button before it,
   three after), so its centre was 48 px to the start side of the orb's (measured at 1728 px). The field and its hint now
   span the WHOLE bar with the same padding on both sides, so their centre is the bar's, which is the orb's; the buttons
   sit above the field and still take the click. The padding clears the wider button group in every language
   (padding-inline). */
.t-hello .askbar .q-wrap { position: static; }
.t-hello .askbar .composer > :not(.q-wrap) { position: relative; z-index: 1; }
.t-hello .askbar .q-wrap .q, .t-hello .askbar .q-hint { position: absolute; inset: 0; height: 100%; padding-inline: var(--q-side, 152px); }
@media (max-width: 480px) {
  .t-hello .askbar { --q-side: calc(120 * var(--mv)); }
  /* PHONES: on a phone the words nearly fill the bar, and with one button before them and three after, the bar's
     centre put them 51 px from the + and 1 px from the next button (measured at 390 px). Here they centre in the
     space BETWEEN the buttons instead: the field is its own box again, so the space on each side is equal (23-26 px
     at 360-430 px). */
  .t-hello .askbar .q-wrap { position: relative; }
  .t-hello .askbar .q-wrap .q, .t-hello .askbar .q-hint { padding-inline: 6px; }
}
