:root {
  --ask-bg: var(--bg, #f2eadc);
  --ask-panel: var(--panel, #fffaf2);
  --ask-text: var(--text, #201a16);
  --ask-muted: var(--muted, #4f473f);
  --ask-accent: var(--accent, #8d6933);
  --ask-accent-2: var(--accent-2, #7c775f);
  --ask-line: var(--line, #d8ccba);
  --ask-radius: var(--radius, 6px);
  /* Flat, minimal chrome matching sherpa.css — subtle color-mix borders, no pills. */
  --ask-border-subtle: color-mix(in srgb, var(--text) 14%, transparent);
  --ask-border-strong: color-mix(in srgb, var(--text) 30%, transparent);

  /* Tightened typography to fit more content */
  --ask-hero-headline-size: 1.67rem;
  --ask-bubble-font: 0.86rem;
  --ask-meta-font: 0.63rem;
  --ask-input-font: 0.86rem;
}

/* Ask view styles — OpenCase-style centered, conversational surface */

.ask-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  gap: 0.55rem;
  background: transparent;
}

/* Empty state: scope pills top, input centered, disclaimer below */
.ask-layout.ask-empty-state {
  justify-content: center;
  height: auto;
  min-height: 70vh;
  text-align: center;
  gap: 0.75rem;
}

.ask-layout.ask-empty-state .ask-history {
  display: none;
}

.ask-layout.ask-empty-state .ask-scope-bar {
  justify-content: center;
  order: 0;
}

.ask-layout.ask-empty-state .ask-input-area {
  order: 1;
}

.ask-layout.ask-empty-state .ask-bottom-meta {
  order: 2;
}

.ask-hero-headline {
  font-family: var(--memo-font, Baskerville, Georgia, serif);
  font-size: var(--ask-hero-headline-size);
  font-weight: 600;
  color: var(--ask-text);
  margin: 0;
  line-height: 1.25;
}

.ask-layout.ask-empty-state .ask-hero-headline {
  font-family: var(--memo-font);
  font-size: 2.07rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.75rem;
  text-align: center;
}

.ask-hero-sub {
  font-size: 0.82rem;
  color: var(--ask-muted);
  margin: 0;
}

.ask-disclaimer {
  background: color-mix(in srgb, var(--ask-accent) 10%, transparent);
  border: 1px solid var(--ask-line);
  border-radius: var(--ask-radius);
  padding: 0.4rem 0.7rem;
  font-size: 0.64rem;
  color: var(--ask-text);
  text-align: center;
  line-height: 1.35;
}

.ask-disclaimer strong {
  font-weight: 600;
}

.ask-privacy-notice {
  font-size: 0.68rem;
  color: var(--ask-muted);
  padding: 0;
  text-align: center;
}

.ask-privacy-notice a {
  color: var(--ask-accent);
  text-decoration: underline;
}

/* Scope pills — replaces checkboxes */
.ask-scope-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.15rem 0;
  align-items: center;
}

.ask-scope-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ask-border-subtle);
  border-radius: 3px;
  background: transparent;
  color: var(--ask-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ask-scope-pill:hover {
  border-color: var(--ask-accent);
  color: var(--ask-text);
}

.ask-scope-pill.active,
.ask-scope-pill[aria-pressed="true"] {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  border-color: var(--ask-border-subtle);
  color: var(--ask-text);
}

/* Language pill — white/off style that cycles */
.ask-language-bar {
  display: flex;
  justify-content: center;
  padding: 0.15rem 0;
}

.ask-lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--ask-border-subtle);
  border-radius: 3px;
  background: var(--ask-panel);
  color: var(--ask-text);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ask-lang-pill:hover {
  border-color: var(--ask-accent);
}

.ask-lang-pill.active,
.ask-lang-pill[aria-pressed="true"] {
  background: var(--ask-panel);
  border-color: var(--ask-border-subtle);
  color: var(--ask-text);
}

.ask-lang-pill::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ask-accent);
}

.ask-lang-pill:disabled,
.ask-lang-pill[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

.ask-scope-pill:disabled,
.ask-scope-pill[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Inline language pill inside the scope bar */
.ask-scope-with-lang {
  justify-content: center;
}

.ask-scope-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  position: relative;
}

.ask-scope-divider {
  display: inline-block;
  width: 15px;
}

/* Jurisdiction selector */
.ask-jurisdiction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ask-muted);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ask-jurisdiction-pill:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--ask-text);
}

.ask-jurisdiction-pill svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  stroke-width: 2;
}

.ask-jurisdiction-pill .ask-jurisdiction-chevron {
  transition: transform 0.2s ease;
}

.ask-jurisdiction-pill[aria-expanded="true"] .ask-jurisdiction-chevron {
  transform: rotate(180deg);
}

.ask-jurisdiction-menu {
  position: absolute;
  z-index: 100;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  width: 100%;
  max-height: none;
  overflow-y: visible;
  background: var(--ask-panel);
  border: 1px solid var(--ask-border-subtle);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  padding: 0.4rem 0;
}

.ask-jurisdiction-menu.hidden {
  display: none;
}

.ask-jurisdiction-header {
  padding: 0 0.6rem 0.35rem;
  font-size: calc(var(--ask-meta-font) * 1.1);
  font-weight: 600;
  color: var(--ask-text);
}

.ask-jurisdiction-row {
  display: flex;
  gap: 0.4rem;
  padding: 0 0.6rem;
}

.ask-jurisdiction-divider {
  border: none;
  border-top: 1px solid var(--ask-line);
  margin: 0.35rem 0.6rem;
}

.ask-jurisdiction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 0 0.6rem;
}

.ask-jurisdiction-option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.2rem;
  border: none;
  background: transparent;
  color: var(--ask-text);
  font-size: calc(var(--ask-meta-font) * 1.1);
  cursor: pointer;
  border-radius: 3px;
  text-align: left;
  line-height: 1.1;
}

.ask-jurisdiction-option::before {
  content: '';
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--ask-line);
  border-radius: 2px;
  flex-shrink: 0;
}

.ask-jurisdiction-option.active::before {
  background: var(--ask-accent);
  border-color: var(--ask-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3 3 7-7'/%3E%3C/svg%3E");
  background-size: 0.6rem;
  background-position: center;
  background-repeat: no-repeat;
}

.ask-jurisdiction-option:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--ask-text);
}

.ask-jurisdiction-option.active {
  color: var(--ask-accent);
  background: transparent;
}

.ask-scope-pill svg {
  width: 0.85rem;
  height: 0.85rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.ask-message-bubble .streaming-cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1em;
  margin-left: 0.1rem;
  vertical-align: text-bottom;
  background: var(--ask-accent);
  opacity: 0.65;
  animation: ask-stream-cursor 1s step-end infinite;
}

@keyframes ask-stream-cursor {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0.2; }
}

/* Sherpa / general assistant streaming cursor (not inside ask-message-bubble) */
.message.agent .streaming-cursor {
  display: inline-block;
  width: 0.55rem;
  height: 1em;
  margin-left: 0.1rem;
  vertical-align: text-bottom;
  background: var(--text);
  opacity: 0.5;
  animation: agent-stream-cursor 1s step-end infinite;
}

@keyframes agent-stream-cursor {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.15; }
}

.ask-history {
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.3rem 0;
  order: 0;
}

.ask-history:empty::before {
  content: '';
  display: block;
  flex: 1;
}

/* Public empty state centers the conversation area */
#ask-public-container .ask-history {
  justify-content: flex-end;
}

.ask-message {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 92%;
  animation: ask-fade-in 0.2s ease;
}

@keyframes ask-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ask-message.user {
  align-self: flex-end;
}

.ask-message.assistant {
  align-self: flex-start;
}

.ask-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: var(--ask-radius);
  line-height: 1.45;
  font-size: var(--ask-bubble-font);
}

.ask-message.user .ask-message-bubble {
  background: color-mix(in srgb, var(--ask-accent) 8%, var(--ask-panel));
  color: var(--ask-text);
  border: 1px solid var(--ask-border-subtle);
}

.ask-message.assistant .ask-message-bubble {
  background: var(--ask-panel);
  color: var(--ask-text);
  border: 1px solid var(--ask-line);
}

.ask-message-meta {
  font-size: var(--ask-meta-font);
  color: var(--ask-muted);
}

/* Input area wrapper */
.ask-input-area {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  order: 1;
}

/* Input row — pill-shaped, centered */
.ask-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  background: var(--ask-panel);
  border: 1px solid var(--ask-border-subtle);
  border-radius: var(--ask-radius);
  padding: 0.25rem 0.25rem 0.25rem 0.85rem;
  box-shadow: none;
}

.ask-input-row textarea {
  flex: 1 1 auto;
  resize: none;
  border: 0;
  background: transparent;
  padding: 0.45rem 0;
  font-family: inherit;
  font-size: var(--ask-input-font);
  line-height: 1.4;
  min-height: 2.2rem;
  max-height: 12rem;
  color: var(--ask-text);
  outline: none;
}

.ask-input-row textarea::placeholder {
  color: var(--ask-muted);
}

.ask-input-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0.35rem 0.5rem;
  position: relative;
}

.ask-input-meta .ask-reformulate-check,
.ask-input-meta .ask-my-files-pill,
.ask-input-meta .ask-jurisdiction-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ask-muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.ask-input-meta .ask-reformulate-check span,
.ask-input-meta .ask-my-files-pill span,
.ask-input-meta .ask-jurisdiction-pill .ask-jurisdiction-label {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.ask-input-meta .ask-reformulate-input {
  margin: 0;
  width: 0.85rem;
  height: 0.85rem;
  accent-color: var(--ask-accent);
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0;
}
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ask-input-meta .ask-jurisdiction-pill:hover {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--ask-text);
}

.ask-input-meta .ask-jurisdiction-pill svg {
  width: 0.9rem;
  height: 0.9rem;
  stroke: currentColor;
  stroke-width: 2;
}

.ask-input-meta .ask-jurisdiction-pill .ask-jurisdiction-chevron {
  transition: transform 0.2s ease;
}

.ask-input-meta .ask-jurisdiction-pill[aria-expanded="true"] .ask-jurisdiction-chevron {
  transform: rotate(180deg);
}

.ask-input-meta .ask-my-files-plus {
  font-weight: 500;
  line-height: 1;
}

/* Improve prompt: flat link-style button + undo link, matching Sherpa.
   Mirrors sherpa.css #qa-improve-prompt / .sherpa-tune-link. */
.ask-input-meta .ask-improve-prompt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  margin: 0;
  border: 1px solid var(--ask-border-subtle);
  border-radius: var(--ask-radius);
  background: transparent;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  color: var(--ask-accent);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ask-input-meta .ask-improve-prompt:hover {
  background: color-mix(in srgb, var(--ask-accent) 10%, transparent);
}

.ask-input-meta .ask-improve-prompt:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-input-meta .ask-improve-undo {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 0 0.4rem;
  margin: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--ask-muted);
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.ask-input-meta .ask-improve-undo:hover {
  color: var(--ask-text);
}

/* Grey out the composer while improving the prompt. */
.ask-input-row textarea.improving {
  opacity: 0.5;
}

.ask-send-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 0;
  border-radius: var(--ask-radius);
  background: var(--ask-accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.ask-send-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ask-accent) 85%, #000);
}

.ask-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ask-send-btn svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ask-bottom-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  order: 2;
}

.ask-footnote {
  font-size: 0.63rem;
  color: var(--ask-muted);
  text-align: center;
}

.ask-footnote a {
  color: var(--ask-accent);
  text-decoration: underline;
}

.ask-sources {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  color: var(--ask-muted);
  padding-left: 0.3rem;
}

.ask-sources summary {
  cursor: pointer;
  font-weight: 500;
}

.ask-sources ul {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
}

.ask-handoff {
  margin-top: 0.5rem;
  padding: 0.55rem 0.8rem;
  border: 1px dashed var(--ask-line);
  border-radius: var(--ask-radius);
  background: var(--ask-panel);
  font-size: 0.8rem;
  max-width: 100%;
}

.ask-handoff p {
  margin: 0 0 0.5rem;
}

.ask-handoff button {
  padding: 0.4rem 0.8rem;
  border-radius: var(--ask-radius);
  border: 1px solid var(--ask-accent);
  background: transparent;
  color: var(--ask-accent);
  font-weight: 500;
  cursor: pointer;
}

.ask-handoff button:hover {
  background: color-mix(in srgb, var(--ask-accent) 10%, transparent);
}

.ask-loading {
  align-self: flex-start;
  color: var(--ask-muted);
  font-size: 0.82rem;
  font-style: italic;
}

.ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.ask-action-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--ask-border-subtle);
  border-radius: var(--ask-radius);
  background: transparent;
  color: var(--ask-accent);
  font-size: 0.72rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ask-action-chip:hover {
  background: color-mix(in srgb, var(--ask-accent) 10%, transparent);
  color: var(--ask-accent);
}

.ask-email-capture {
  align-self: flex-start;
  margin-top: 0.55rem;
  padding: 0.8rem;
  border: 1px solid var(--ask-line);
  border-radius: var(--ask-radius);
  background: var(--ask-panel);
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ask-email-capture p {
  margin: 0;
  font-size: 0.82rem;
}

.ask-email-capture input {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--ask-line);
  border-radius: var(--ask-radius);
  font-family: inherit;
  font-size: 0.82rem;
  background: var(--ask-bg);
  color: var(--ask-text);
}

.ask-email-actions {
  display: flex;
  justify-content: flex-end;
}

.ask-email-submit {
  padding: 0.4rem 0.8rem;
  border-radius: var(--ask-radius);
  border: 0;
  background: var(--ask-accent);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}

.ask-email-error {
  color: var(--danger, #b54a40);
  font-size: 0.77rem;
  margin: 0;
}

.ask-email-error.hidden {
  display: none;
}

/* Public ask page shell */
.public-ask-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 1px 1px, rgba(32,26,22,.04) 1px, transparent 0),
    linear-gradient(180deg, #f6efe3 0%, #f2eadc 100%);
  background-size: 24px 24px, auto;
}

.public-ask-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid var(--ask-line);
}

.public-ask-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--ask-text);
}

.public-ask-brand img {
  height: 24px;
}

.public-ask-header a {
  font-size: 0.85rem;
  color: var(--ask-accent);
  text-decoration: none;
}

.public-ask-header a:hover {
  text-decoration: underline;
}

.public-ask-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1rem;
}

.public-ask-main .ask-layout {
  width: 100%;
  margin: 0 auto;
  flex: 1 1 auto;
  height: auto;
  min-height: 75vh;
}

.public-ask-footer {
  padding: 0.75rem;
  text-align: center;
  font-size: 0.72rem;
  color: var(--ask-muted);
  border-top: 1px solid var(--ask-line);
}

.ask-query-expansion-chip {
  position: relative;
  margin-top: 0;
}

.ask-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ask-chips-row .ask-query-expansion-chip,
.ask-chips-row .ask-search-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0;
}

.ask-query-expansion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ask-border-subtle);
  border-radius: 3px;
  background: transparent;
  color: var(--ask-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ask-query-expansion-toggle:hover {
  border-color: var(--ask-accent);
  color: var(--ask-text);
}

.ask-query-expansion-chevron {
  transition: transform 0.15s ease;
}

.ask-query-expansion-toggle.open .ask-query-expansion-chevron {
  transform: rotate(180deg);
}

.ask-query-expansion-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.3rem);
  z-index: 10;
  width: max-content;
  max-width: 800px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ask-radius);
  background: var(--ask-panel);
  border: 1px solid var(--ask-border-subtle);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font-size: 0.75rem;
  color: var(--ask-text);
}

.ask-query-expansion-panel.hidden {
  display: none;
}

.ask-query-expansion-row {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.ask-query-expansion-row:last-child {
  margin-bottom: 0;
}

.ask-search-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.ask-search-meta-pill-chip {
  position: relative;
}

.ask-search-meta-pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--ask-border-subtle);
  border-radius: 3px;
  background: transparent;
  color: var(--ask-muted);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.ask-search-meta-pill-toggle:hover {
  border-color: var(--ask-accent);
  color: var(--ask-text);
}

.ask-search-meta-pill-chevron {
  transition: transform 0.15s ease;
}

.ask-search-meta-pill-toggle.open .ask-search-meta-pill-chevron {
  transform: rotate(180deg);
}

.ask-search-meta-pill-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.3rem);
  z-index: 10;
  width: max-content;
  max-width: 800px;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ask-radius);
  background: var(--ask-panel);
  border: 1px solid var(--ask-border-subtle);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  font-size: 0.75rem;
  color: var(--ask-text);
}

.ask-search-meta-pill-panel.hidden {
  display: none;
}

.ask-search-meta-pill-row {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

.ask-search-meta-pill-row:last-child {
  margin-bottom: 0;
}
