.companion-app-home,
.greg-mode-app {
  min-height: 100vh;
  margin: 0;
  background: #05080f;
  color: #f6f8fb;
}

.greg-mode-app--intro-active {
  overflow: hidden;
  background: #000000;
}

.greg-mode-app--intro-active .greg-mode,
.greg-mode-app--intro-active .app-home {
  visibility: hidden;
}

.greg-mode-intro {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #000000;
  opacity: 1;
  overflow: hidden;
  transition: opacity 360ms ease;
  overscroll-behavior: none;
}

.greg-mode-intro[hidden] {
  display: none;
}

.greg-mode-intro--leaving {
  opacity: 0;
  pointer-events: none;
}

.greg-mode-intro video {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: #000000;
  filter: contrast(1.04) brightness(0.995);
  transform: translateZ(0) scale(1.001);
  backface-visibility: hidden;
}

.app-home {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(7, 16, 31, 0.92) 0%, rgba(7, 16, 31, 0.7) 45%, rgba(7, 16, 31, 0.82) 100%),
    url("/assets/images/hero.png") center / cover no-repeat;
}

.app-home__menu {
  position: absolute;
  top: max(0.85rem, env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
}

.app-home__menu summary {
  min-width: 4.25rem;
  min-height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 0 0.8rem;
  background: rgba(5, 8, 15, 0.78);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
  list-style: none;
  backdrop-filter: blur(16px);
}

.app-home__menu summary::-webkit-details-marker {
  display: none;
}

.app-home__menu-panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: min(17.5rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.25rem;
  padding: 0.7rem;
  border: 1px solid rgba(143, 212, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.96);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
}

.app-home__menu-panel p,
.app-home__menu-panel span {
  margin: 0;
  color: rgba(246, 248, 251, 0.62);
  font-size: 0.76rem;
  font-weight: 800;
}

.app-home__menu-panel p {
  color: #8fd4ff;
  text-transform: uppercase;
}

.app-home__menu-panel a {
  min-height: 2.35rem;
  display: flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 0.7rem;
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
}

.app-home__menu-panel a:hover,
.app-home__menu-panel a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.app-home__hero {
  width: min(100%, 44rem);
  align-self: end;
  padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
}

.app-home__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.app-home__brand img {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
}

.app-home__brand p,
.greg-mode__topbar p {
  margin: 0 0 0.25rem;
  color: #8fd4ff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.78rem;
}

.app-home__brand h1,
.greg-mode__topbar h1 {
  margin: 0;
  color: #ffffff;
  font-size: 2rem;
  line-height: 1.05;
}

.app-home__actions {
  display: grid;
  gap: 0.8rem;
}

.app-home__content {
  display: grid;
  gap: 0.72rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid rgba(143, 212, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.62);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.app-home__content h2,
.app-home__content p {
  margin: 0;
}

.app-home__content h2 {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.app-home__content p {
  color: rgba(246, 248, 251, 0.84);
  font-size: 0.92rem;
  line-height: 1.58;
}

.app-home__content a {
  color: #8fd4ff;
  font-weight: 850;
}

.app-home__content--grid {
  grid-template-columns: 1fr;
}

.app-home__content--grid article {
  display: grid;
  gap: 0.45rem;
}

.app-home__beta {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(143, 212, 255, 0.28);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.app-home__eyebrow {
  margin: 0;
  color: #8fd4ff;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-home__beta h2,
.app-home__beta p {
  margin: 0;
}

.app-home__beta h2 {
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.25;
}

.app-home__beta p:not(.app-home__eyebrow) {
  color: rgba(246, 248, 251, 0.82);
  font-size: 0.9rem;
  line-height: 1.5;
}

.app-home__beta-details {
  display: grid;
  gap: 0.75rem;
}

.app-home__beta-details summary {
  width: max-content;
  max-width: 100%;
  color: #8fd4ff;
  cursor: pointer;
  font-weight: 800;
}

.app-home__beta-details-content {
  display: grid;
  gap: 0.7rem;
}

.app-home__member-link {
  width: max-content;
  max-width: 100%;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 212, 255, 0.5);
  border-radius: 8px;
  padding: 0.3rem 0.85rem;
  background: rgba(29, 125, 174, 0.32);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.app-home__member-link:hover,
.app-home__member-link:focus-visible {
  background: rgba(54, 153, 204, 0.5);
}

.app-mode {
  display: grid;
  gap: 0.35rem;
  padding: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.78);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(16px);
}

.app-mode--greg {
  background: linear-gradient(135deg, rgba(12, 115, 160, 0.88), rgba(16, 29, 46, 0.9));
  border-color: rgba(143, 212, 255, 0.48);
}

.app-mode span {
  font-size: 1.2rem;
  font-weight: 900;
}

.app-mode small {
  color: rgba(246, 248, 251, 0.78);
  line-height: 1.45;
}

.greg-mode {
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  box-sizing: border-box;
  background:
    linear-gradient(180deg, rgba(12, 27, 45, 0.92), rgba(5, 8, 15, 0.98)),
    url("/assets/images/black hole image.png") center / cover no-repeat;
}

.greg-mode__topbar {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: max(0.6rem, env(safe-area-inset-top)) 1rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 15, 0.72);
  backdrop-filter: blur(18px);
}

.greg-mode__toggles {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.greg-mode__toggles button {
  min-height: 2.2rem;
  border: 1px solid rgba(143, 212, 255, 0.24);
  border-radius: 8px;
  padding: 0 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 248, 251, 0.7);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
}

.greg-mode__toggles button[aria-pressed="true"] {
  border-color: rgba(143, 212, 255, 0.62);
  background: rgba(29, 125, 174, 0.42);
  color: #ffffff;
}

.greg-mode__toggles button:focus-visible {
  outline: 2px solid rgba(143, 212, 255, 0.85);
  outline-offset: 2px;
}

.greg-mode__menu {
  position: relative;
  z-index: 8;
}

.greg-mode__menu summary {
  min-height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143, 212, 255, 0.36);
  border-radius: 8px;
  padding: 0 0.72rem;
  background: rgba(5, 8, 15, 0.72);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  list-style: none;
}

.greg-mode__menu summary::-webkit-details-marker {
  display: none;
}

.greg-mode__menu-panel {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  width: min(13rem, calc(100vw - 2rem));
  display: grid;
  gap: 0.2rem;
  padding: 0.45rem;
  border: 1px solid rgba(143, 212, 255, 0.28);
  border-radius: 8px;
  background: rgba(5, 8, 15, 0.98);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.greg-mode__menu-panel a {
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 0.65rem;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.greg-mode__menu-panel a:hover,
.greg-mode__menu-panel a:focus-visible {
  background: rgba(143, 212, 255, 0.16);
}

.greg-mode-app--standalone .greg-mode__topbar {
  grid-template-columns: 1fr auto;
}

.greg-mode-app--standalone .greg-mode__back {
  display: none;
}

.greg-mode__topbar p {
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
}

.greg-mode__topbar h1 {
  font-size: 1.65rem;
  line-height: 1;
}

.greg-mode__back,
.greg-mode__browse,
.greg-mode__open-full {
  min-height: 2.5rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  font-weight: 900;
}

.greg-mode__back {
  width: 2.2rem;
  min-height: 2.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #55bcff;
  font-size: 1.9rem;
  line-height: 1;
  text-shadow:
    0 0 0.3rem rgba(107, 201, 255, 0.95),
    0 0 0.85rem rgba(43, 167, 255, 0.72);
  transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.greg-mode__back:hover,
.greg-mode__back:focus-visible {
  border: 0;
  background: transparent;
  color: #d6f2ff;
  outline: 1px solid rgba(143, 212, 255, 0.72);
  outline-offset: 0.18rem;
  text-shadow:
    0 0 0.4rem rgba(150, 222, 255, 1),
    0 0 1rem rgba(43, 167, 255, 0.9);
  transform: translateX(-0.12rem);
}

.greg-mode__browse,
.greg-mode__open-full {
  padding: 0 0.8rem;
  font-size: 0.85rem;
}

.greg-mode__viewer {
  min-height: 0;
  background: #05080f;
}

.greg-mode__viewer[hidden] {
  display: none;
}

.greg-mode__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.greg-mode__media-viewer {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #05080f;
}

.greg-mode__media-viewer[hidden] {
  display: none;
}

.greg-mode__media-toolbar {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  overflow-x: auto;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 15, 0.86);
}

.greg-mode__media-toolbar button,
.greg-mode__media-toolbar a {
  min-height: 2.45rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(143, 212, 255, 0.25);
  border-radius: 8px;
  padding: 0 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
}

.greg-mode__media-toolbar button:hover,
.greg-mode__media-toolbar button:focus-visible,
.greg-mode__media-toolbar a:hover,
.greg-mode__media-toolbar a:focus-visible {
  background: rgba(143, 212, 255, 0.16);
}

.greg-mode__media-frame {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
  margin: 0;
}

.greg-mode__media-frame img,
.greg-mode__media-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  object-fit: contain;
  background: #05080f;
}

.greg-mode__media-frame iframe {
  background: #ffffff;
}

.greg-mode__media-frame figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 1rem max(0.8rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 15, 0.92);
  color: rgba(246, 248, 251, 0.72);
  font-size: 0.85rem;
}

.greg-mode__media-frame figcaption strong {
  color: #ffffff;
  font-size: 1rem;
}

.greg-mode__media-frame figcaption a {
  width: max-content;
  max-width: 100%;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: #8fd4ff;
  font-weight: 850;
  text-decoration: none;
}

.greg-mode__dashboard {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.greg-mode--viewing {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.greg-mode--viewing .greg-mode__dashboard {
  border-top: 1px solid rgba(143, 212, 255, 0.22);
  background: rgba(5, 8, 15, 0.94);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.32);
  grid-template-rows: auto;
}

.greg-mode--viewing .greg-mode__thread,
.greg-mode--viewing .greg-mode__prompts,
.greg-mode--viewing .greg-mode__guide,
.greg-mode--viewing .greg-mode__browse {
  display: none;
}

.greg-mode--viewing .greg-mode__open-full {
  display: inline-grid;
}

.greg-mode--media-viewing .greg-mode__dashboard,
.greg-mode--media-viewing .greg-mode__viewer {
  display: none;
}

.greg-mode__guide {
  position: absolute;
  right: 1rem;
  /* Reserve the prompt rail and composer so Greg sits just above the quick questions. */
  bottom: calc(max(0.8rem, env(safe-area-inset-bottom)) + 7.2rem);
  z-index: 2;
  width: clamp(4.75rem, 16.666vw, 9rem);
  max-height: 36vh;
  object-fit: contain;
  pointer-events: none;
}

.greg-mode__thread {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding: 1rem;
}

.greg-message {
  width: fit-content;
  max-width: min(88%, 42rem);
  padding: 0.85rem 0.95rem;
  border-radius: 8px;
  line-height: 1.48;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  animation: greg-message-slide-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  will-change: transform, opacity;
}

.greg-message p {
  margin: 0;
}

.greg-message--greg {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  --greg-message-enter-x: -1.1rem;
}

.greg-message--user {
  align-self: flex-end;
  background: rgba(143, 212, 255, 0.8);
  color: #08111f;
  --greg-message-enter-x: 1.1rem;
}

.greg-message--static {
  animation: none;
  will-change: auto;
}

@keyframes greg-message-slide-in {
  0% {
    opacity: 0;
    transform: translate3d(var(--greg-message-enter-x, 0), 0.55rem, 0) scale(0.985);
  }

  62% {
    opacity: 1;
    transform: translate3d(0, -0.08rem, 0) scale(1.002);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.greg-message__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border-radius: 8px;
  background: #0b1a2c;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

.greg-message__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.greg-message--greg .greg-message__actions {
  justify-content: flex-end;
}

.greg-message--greg .greg-message__actions--media {
  justify-content: flex-start;
  margin: 0.55rem 0 0;
}

.greg-message__link--external {
  background: #14313d;
}

.greg-message__link--download {
  background: #26321d;
}

.greg-message__link--media {
  background: #243046;
}

.greg-message__link--media-icon,
.greg-message__link--file-icon {
  width: 3.625rem;
  min-width: 3.625rem;
  min-height: 3.625rem;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
}

.greg-message__link--media-icon::before,
.greg-message__link--file-icon::before {
  content: "";
  width: 3.5rem;
  height: 3.5rem;
  display: block;
  background-image: url("/assets/images/icons.png");
  background-repeat: no-repeat;
  background-size: 300% 300%;
  filter: drop-shadow(0 0 0.24rem rgba(105, 200, 255, 0.28));
  transition: filter 160ms ease, transform 160ms ease;
}

.greg-message__link--image-icon::before {
  background-position: 0 0;
}

.greg-message__link--file-icon::before {
  background-position: 50% 0;
}

.greg-message__link--media-icon:hover::before,
.greg-message__link--media-icon:focus-visible::before,
.greg-message__link--file-icon:hover::before,
.greg-message__link--file-icon:focus-visible::before {
  filter: drop-shadow(0 0 0.42rem rgba(143, 212, 255, 0.62));
  transform: scale(1.04);
}

.greg-message__link--media-icon:focus-visible,
.greg-message__link--file-icon:focus-visible {
  outline: 1px solid rgba(143, 212, 255, 0.82);
  outline-offset: 0.14rem;
}

.greg-message__link--choice {
  border: 1px solid rgba(12, 49, 70, 0.22);
  background: rgba(232, 246, 255, 0.8);
  color: #0b1a2c;
}

.greg-message__link--choice:hover,
.greg-message__link--choice:focus-visible {
  background: #d6efff;
}

.greg-message__feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 0.1rem;
  row-gap: 0.45rem;
  margin: 0.55rem -0.22rem 0 auto;
  color: rgba(17, 24, 39, 0.72);
  font-size: 0.82rem;
}

.greg-message__feedback-label {
  font-weight: 700;
}

.greg-message__feedback button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  min-height: 2rem;
  border: 1px solid transparent;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: #0b1a2c;
  font: inherit;
  font-weight: 800;
  line-height: 0;
  overflow: hidden;
}

.greg-message__feedback button:hover,
.greg-message__feedback button:focus-visible {
  background: transparent;
  border-color: rgba(12, 49, 70, 0.18);
}

.greg-message__feedback button[aria-pressed='true'] {
  border-color: rgba(12, 49, 70, 0.36);
  background: transparent;
}

.greg-message__feedback button:disabled {
  cursor: default;
  opacity: 0.82;
}

.greg-message__feedback-icon {
  display: block;
  flex: 0 0 auto;
  width: 1.72rem;
  height: 1.72rem;
  margin: 0;
  border-radius: 50%;
  background-image: url('/assets/images/gestures.png');
  background-size: 300% 200%;
  background-position: 50% 0%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0.08rem 0.12rem rgba(5, 8, 15, 0.2));
  transform-origin: 50% 50%;
}

.greg-message__feedback-button--up .greg-message__feedback-icon {
  transform: rotate(180deg);
}

.greg-message__feedback-status {
  color: rgba(17, 24, 39, 0.62);
}

.greg-mode__prompts {
  position: relative;
  width: 100%;
  max-width: 54rem;
  box-sizing: border-box;
  justify-self: center;
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.65rem 1rem 0.65rem;
  border-top: 1px solid rgba(143, 212, 255, 0.14);
  background: rgba(5, 8, 15, 0.68);
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.greg-mode__prompts::-webkit-scrollbar {
  height: 0;
}

.greg-mode__prompts button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  scroll-snap-align: start;
  border: 1px solid rgba(143, 212, 255, 0.34);
  border-radius: 999px;
  padding: 0 0.85rem;
  background: rgba(5, 8, 15, 0.72);
  color: #f6f8fb;
  font: inherit;
  font-weight: 800;
}

.greg-mode__prompts button[data-greg-discovery="fact"] {
  border-color: rgba(105, 200, 255, 0.62);
  background-color: rgba(8, 34, 62, 0.86);
  background-image:
    linear-gradient(112deg, transparent 38%, rgba(154, 223, 255, 0.22) 48%, transparent 58%),
    linear-gradient(135deg, rgba(13, 55, 92, 0.96), rgba(5, 17, 34, 0.82));
  background-position: 145% 0, 0 0;
  background-repeat: no-repeat;
  background-size: 235% 100%, 100% 100%;
  box-shadow: 0 0 12px rgba(43, 167, 255, 0.2), inset 0 0 12px rgba(105, 200, 255, 0.06);
  animation: greg-random-fact-wipe 7s ease-in-out infinite;
}

@keyframes greg-random-fact-wipe {
  0%, 45% {
    background-position: 145% 0, 0 0;
  }

  70%, 100% {
    background-position: -50% 0, 0 0;
  }
}

.greg-mode__composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.7rem;
  padding: 0.8rem 1rem max(0.8rem, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 15, 0.86);
  backdrop-filter: blur(18px);
}

.greg-mode__composer textarea {
  min-height: 2.8rem;
  max-height: 8rem;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.72rem 0.85rem;
  background: rgba(255, 255, 255, 0.8);
  color: #111827;
  font: inherit;
  line-height: 1.35;
}

.greg-mode__composer textarea::placeholder {
  color: #000000;
  opacity: 1;
}

.greg-mode__composer button.greg-mode__submit {
  min-width: 6.4rem;
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid rgba(143, 212, 255, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.16), transparent 18%),
    radial-gradient(circle at 80% 72%, rgba(143, 212, 255, 0.12), transparent 24%),
    linear-gradient(135deg, #1b1f24 0%, #05070a 48%, #111820 100%);
  color: #d9dee7;
  font: inherit;
  font-weight: 900;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -10px 18px rgba(0, 0, 0, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.24);
}

.greg-mode__composer button.greg-mode__submit img {
  width: 2.9rem;
  height: 2.9rem;
  object-fit: contain;
}

.greg-mode__composer button.greg-mode__submit:focus-visible {
  outline: 1px solid rgba(143, 212, 255, 0.82);
  outline-offset: 0.14rem;
}

.greg-mode__composer button:disabled {
  opacity: 0.62;
  cursor: wait;
}

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

@media (min-width: 760px) {
  .app-home__hero {
    padding-left: 3rem;
    padding-bottom: 3rem;
  }

  .greg-mode--viewing {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .greg-mode__media-toolbar,
  .greg-mode__media-frame figcaption {
    padding-left: max(1rem, calc((100vw - 64rem) / 2));
    padding-right: max(1rem, calc((100vw - 64rem) / 2));
  }

  .greg-mode__guide {
    right: max(1rem, calc((100vw - 54rem) / 2));
  }

  .greg-mode__prompts {
    width: min(100%, 56rem);
    max-width: 56rem;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: max(1rem, calc((100vw - 54rem) / 2));
    padding-right: max(1rem, calc((100vw - 54rem) / 2));
  }

  .greg-mode__thread,
  .greg-mode__composer {
    padding-left: max(1rem, calc((100vw - 54rem) / 2));
    padding-right: max(1rem, calc((100vw - 54rem) / 2));
  }
}

@media (prefers-reduced-motion: reduce) {
  .greg-message {
    animation: none;
    will-change: auto;
  }

  .greg-mode__prompts button[data-greg-discovery="fact"] {
    animation: none;
  }

}
