/* The dashboard. Everything else comes from deerkins/style.css. */

.dim {
  opacity: 0.7;
  font-weight: normal;
}

.places,
.drops {
  list-style: none;
  padding: 0;
}

.places li {
  margin: 0.4em 0;
}

.drops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.drops li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85em;
}

/* Uploads are any shape; a fixed box keeps the row from jumping about. */
.drops img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 3px;
}

/* ---- the landing page ---- */

.lede {
  font-size: 1.15em;
  max-width: 34rem;
}

/* A strip of real holdings, sized the way the map sizes them. Decorative, so
   it is hidden from assistive technology: the numbers beneath say it better. */
.glimpse {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 1rem 0 0.6rem;
}

.patch {
  --tile: 11px;
  display: grid;
  grid-template-columns: repeat(var(--wide), var(--tile));
  gap: 2px;
}

.patch.unnamed {
  opacity: 0.5;
}

.patch span {
  aspect-ratio: 1;
  border-radius: 2px;
  background: color-mix(in oklab, currentColor 9%, transparent);
}

.patch span.built {
  background: linear-gradient(
    155deg,
    oklch(76% 0.13 var(--hue)),
    oklch(58% 0.15 var(--hue))
  );
}

#glimpsecap a {
  margin-left: 0.35rem;
}

/* ---- the webchat, behind a click ---- */

.chat {
  margin: 0.9rem 0;
  border: 1px solid color-mix(in oklab, currentColor 18%, transparent);
  border-radius: 10px;
  overflow: hidden;
  background: color-mix(in oklab, currentColor 4%, transparent);
}

.chatoffer {
  padding: 1rem 1.1rem 1.1rem;
}

.chatoffer p {
  margin: 0 0 0.7rem;
  max-width: 34rem;
}

.chatoffer p:last-child {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

button.primary {
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: #0d0f12;
  background: oklch(78% 0.15 155);
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

button.primary:hover {
  background: oklch(84% 0.15 155);
}

/* Once loaded it fills the panel. A fixed 400px is too short on a laptop and
   too tall on a phone, so it scales and then stops. */
.chat iframe {
  display: block;
  width: 100%;
  height: min(70vh, 34rem);
  min-height: 22rem;
  border: 0;
}
