:root {
  --home-amber: #e89b2e;
  --home-amber-soft: #fff4df;
  --home-ink: #121820;
  --home-navy: #1b2a4e;
  --home-bone: #fafaf7;
  --home-paper: #ffffff;
  --home-line: #dfe2e4;
  --home-line-strong: #b8c0ca;
  --home-muted: #687180;
  --home-muted-strong: #4e5663;
  --home-preview: #f0f2f3;
  --home-focus: #bd6500;
  --home-shadow: 0 18px 60px rgba(27, 42, 78, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--home-bone);
  color: var(--home-ink);
  font-family: "Schibsted Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

body[data-beta-gated-page] {
  min-height: 100vh;
  overflow-x: clip;
}

[hidden] {
  display: none !important;
}

.beta-home-member {
  min-width: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.beta-home-activity-icon,
.beta-home-search-icon {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
}

.beta-home-topbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.beta-home-activity-trigger {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(250, 250, 247, 0.35);
  border-radius: 999px;
  background: rgba(250, 250, 247, 0.08);
  color: var(--home-bone);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.beta-home-activity-trigger:hover {
  border-color: var(--home-amber);
  background: rgba(232, 155, 46, 0.12);
  transform: translateY(-1px);
}

.beta-home-activity-icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.beta-home-main {
  min-width: 0;
  display: grid;
  align-items: start;
  padding: clamp(44px, 9vh, 104px) clamp(16px, 4vw, 48px) clamp(36px, 7vh, 72px);
}

.beta-home-hero {
  width: min(960px, 100%);
  min-width: 0;
  margin: 0 auto;
  text-align: center;
}

.beta-home-headline {
  max-width: 870px;
  margin: 0 auto clamp(28px, 5vw, 46px);
  color: var(--home-ink);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

[data-beta-omnibox-mount] {
  position: relative;
  z-index: 10;
  width: min(820px, 100%);
  min-width: 0;
  margin: 0 auto;
}

[data-beta-omnibox-mount][data-home-mounted="true"]::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 21px;
  left: 19px;
  width: 22px;
  height: 22px;
  pointer-events: none;
  background: currentColor;
  color: var(--home-navy);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 15.5 5 5' fill='none' stroke='black' stroke-width='2' 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 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='m15.5 15.5 5 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

[data-beta-omnibox-mount] > label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-beta-omnibox-mount] > input[role="combobox"] {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: block;
  padding: 14px 48px 14px 54px;
  border: 1px solid var(--home-line-strong);
  border-radius: 16px;
  background: var(--home-paper);
  color: var(--home-ink);
  box-shadow: var(--home-shadow);
  font: inherit;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 500;
  line-height: 1.35;
  text-overflow: ellipsis;
  appearance: none;
}

[data-beta-omnibox-mount] > input[role="combobox"]::placeholder {
  color: var(--home-muted-strong);
  opacity: 1;
}

[data-beta-omnibox-mount] > input[role="combobox"]::-webkit-search-cancel-button {
  width: 18px;
  height: 18px;
  margin-left: 8px;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 45% 55%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 45% 55%, transparent 56%);
  color: var(--home-muted-strong);
  opacity: 0.8;
  cursor: pointer;
  -webkit-appearance: none;
}

[data-beta-omnibox-mount] > p[role="status"] {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[data-beta-omnibox-mount] > [role="listbox"] {
  position: absolute;
  z-index: 100;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  width: auto;
  max-height: min(260px, calc(100dvh - 150px));
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--home-line-strong);
  border-radius: 12px;
  background: var(--home-paper);
  box-shadow: 0 18px 48px rgba(18, 24, 32, 0.18);
  text-align: left;
}

[data-beta-omnibox-mount] > [role="listbox"] > [role="group"] + [role="group"] {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--home-line);
}

[data-beta-omnibox-mount] [role="group"] > div:first-child:not([role="option"]) {
  padding: 4px 8px 2px;
  color: var(--home-muted-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

[data-beta-omnibox-mount] [role="option"] {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--home-ink);
  cursor: pointer;
}

[data-beta-omnibox-mount] [role="option"] + [role="option"] {
  margin-top: 1px;
}

[data-beta-omnibox-mount] [role="option"] > span:first-child {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

[data-beta-omnibox-mount] [role="option"] > span:last-child {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--home-muted-strong);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

[data-beta-omnibox-mount] [role="option"]:hover,
[data-beta-omnibox-mount] [role="option"]:focus-visible,
[data-beta-omnibox-mount] [role="option"][aria-selected="true"] {
  border-color: #d7b36f;
  background: var(--home-amber-soft);
  outline: none;
}

.beta-home-combobox {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 18px;
  border: 1px solid var(--home-line-strong);
  border-radius: 16px;
  background: var(--home-paper);
  color: var(--home-muted-strong);
  box-shadow: var(--home-shadow);
  text-align: left;
}

.beta-home-search-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  color: var(--home-navy);
}

.beta-home-search-prompt {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 500;
}

.beta-home-search-state {
  margin: 10px 0 0;
  color: var(--home-muted-strong);
  font-size: 12px;
  line-height: 1.45;
}

.beta-home-examples {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 8px;
  margin: 16px auto 0;
  color: var(--home-muted-strong);
  font-size: 13px;
}

.beta-home-example-link,
.beta-home-utility-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--home-navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.beta-home-separator {
  color: var(--home-line-strong);
  user-select: none;
}

.beta-home-pills {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: clamp(30px, 5vw, 46px) auto 0;
}

.beta-home-pill {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  background: var(--home-paper);
  color: var(--home-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.beta-home-pill:hover {
  border-color: var(--home-navy);
  background: #f5f7fb;
  transform: translateY(-1px);
}

.beta-home-pill-ai {
  gap: 7px;
}

.beta-home-provider-marks {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 7px;
  border-left: 1px solid var(--home-line);
}

.beta-home-provider-mark {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.52;
}

.beta-home-pill-preview {
  position: relative;
  border-style: dashed;
  border-color: #9da5ae;
  background: var(--home-preview);
  color: #414b59;
}

.beta-home-pill-preview:hover {
  border-color: #616b78;
  background: #e7eaec;
}

.beta-home-pill-preview::before,
.beta-home-pill-preview::after {
  position: absolute;
  left: 50%;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease-out, transform 140ms ease-out, visibility 140ms;
}

.beta-home-pill-preview::before {
  bottom: calc(100% + 5px);
  border: 6px solid transparent;
  border-top-color: var(--home-navy);
  content: "";
  transform: translate(-50%, 4px);
}

.beta-home-pill-preview::after {
  bottom: calc(100% + 17px);
  width: min(11rem, calc(100vw - 2rem));
  padding: 9px 11px;
  border: 1px solid rgba(250, 250, 247, 0.2);
  border-radius: 8px;
  background: var(--home-navy);
  color: var(--home-bone);
  content: attr(data-beta-preview-tooltip);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.35;
  text-align: center;
  transform: translate(-50%, 4px);
}

.beta-home-pill-preview:hover::before,
.beta-home-pill-preview:hover::after,
.beta-home-pill-preview:focus-visible::before,
.beta-home-pill-preview:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.beta-home-utilities {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3px 10px;
  margin: 28px auto 0;
  font-size: 12px;
}

.beta-home-invite-mount {
  min-width: 0;
}

.beta-home-coverage {
  margin: 12px auto 0;
  color: var(--home-muted-strong);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.beta-home-locked-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.beta-home-locked-card {
  width: min(620px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-paper);
  box-shadow: var(--home-shadow);
}

.beta-home-kicker,
.beta-module-label {
  margin: 0 0 12px;
  color: var(--home-navy);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.beta-home-locked-card h1,
.beta-intent-card h2 {
  margin: 0 0 12px;
  color: var(--home-ink);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.beta-home-locked-card h1 {
  font-size: clamp(28px, 5vw, 40px);
}

.beta-home-locked-card p,
.beta-module-text {
  margin: 0;
  color: var(--home-muted-strong);
}

/* Scoped to the message paragraph on purpose: beta-runtime.js stamps the same
   `beta-setup-error` class onto <html> as a state hook, and an unqualified
   selector painted this amber card border around the whole page. */
p.beta-setup-error {
  margin: 0 0 14px !important;
  padding: 12px 14px;
  border: 1px solid var(--home-amber);
  border-radius: 10px;
  background: var(--home-amber-soft);
  color: var(--home-ink) !important;
  font-size: 14px;
}

.beta-actions,
.beta-demand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}

.beta-button,
.beta-demand-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--home-navy);
  border-radius: 999px;
  background: var(--home-navy);
  color: var(--home-bone);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.beta-button:not(.beta-button-primary),
.beta-demand-button-secondary {
  background: var(--home-paper);
  color: var(--home-navy);
}

.beta-intent-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 32, 0.55);
}

.beta-intent-card {
  width: min(470px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  overflow-y: auto;
  padding: clamp(22px, 5vw, 32px);
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: var(--home-paper);
  box-shadow: 0 22px 72px rgba(18, 24, 32, 0.24);
}

.beta-intent-options {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.beta-intent-options label {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--home-line);
  border-radius: 10px;
  color: var(--home-ink);
  font-size: 14px;
  cursor: pointer;
}

.beta-intent-options input {
  width: auto;
  margin: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.beta-home-activity-trigger:focus-visible,
.beta-home-combobox:focus-visible,
[data-beta-omnibox-mount] > input[role="combobox"]:focus-visible,
.beta-home-example-link:focus-visible,
.beta-home-pill:focus-visible,
.beta-home-utility-link:focus-visible,
.beta-button:focus-visible,
.beta-demand-button:focus-visible,
.beta-intent-options input:focus-visible {
  outline: 3px solid var(--home-focus);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .beta-home-topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .beta-home-topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .beta-home-activity-trigger {
    flex: 1 1 auto;
  }

  .beta-home-main {
    align-items: start;
    padding-top: 48px;
  }

  .beta-home-headline {
    margin-bottom: 28px;
  }

  .beta-home-combobox {
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  [data-beta-omnibox-mount][data-home-mounted="true"]::before {
    top: 18px;
    left: 15px;
  }

  [data-beta-omnibox-mount] > input[role="combobox"] {
    min-height: 58px;
    padding: 12px 42px 12px 48px;
    border-radius: 14px;
  }

  [data-beta-omnibox-mount] > [role="listbox"] {
    max-height: min(240px, calc(100dvh - 130px));
  }

  .beta-home-pills {
    gap: 8px;
  }

  .beta-home-pill {
    flex: 1 1 calc(50% - 8px);
  }

  .beta-home-pill:last-child {
    flex-basis: 100%;
  }
}

@media (max-width: 360px) {
  .beta-home-activity-trigger {
    width: 100%;
  }

  .beta-home-pill {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .beta-home-activity-trigger,
  .beta-home-pill,
  [data-beta-omnibox-mount] [role="option"] {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
    transition-delay: 0ms;
  }
}

@media (forced-colors: active) {
  .beta-home-topbar,
  .beta-home-activity-trigger,
  .beta-home-combobox,
  [data-beta-omnibox-mount] > input[role="combobox"],
  [data-beta-omnibox-mount] > [role="listbox"],
  [data-beta-omnibox-mount] [role="option"],
  .beta-home-pill,
  .beta-home-locked-card,
  .beta-intent-card,
  .beta-intent-options label {
    border: 1px solid ButtonText;
    box-shadow: none;
    forced-color-adjust: auto;
  }

  .beta-home-activity-icon,
  .beta-home-search-icon {
    color: ButtonText;
  }
}
