html:has(body.android-view) {
  background: #efeee7;
}

body.android-view {
  --android-width: 460px;
  --android-inset: 18px;
  --android-paper: #fafaf6;
  --android-line: #dfdfd4;
  --android-gold: #f6bd32;
  width: 100%;
  max-width: var(--android-width);
  margin: 0 auto;
  min-height: 100dvh;
  color: #22231e;
  background: var(--android-paper);
  border-inline: 1px solid var(--android-line);
}

.android-view .android-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: max(7px, env(safe-area-inset-top)) var(--android-inset) 7px;
}

.android-view .android-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 34px;
  font-weight: 800;
  font-variation-settings: "opsz" 40;
  line-height: 1;
  letter-spacing: -.065em;
  user-select: none;
}

.android-view .android-wordmark img {
  width: 29px;
  height: 29px;
}

.android-view #mobile-profile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 5px;
  background: none;
  border: 0;
  border-radius: 50%;
}

.android-view #mobile-profile img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.android-view .android-home {
  padding: 0 var(--android-inset) calc(96px + env(safe-area-inset-bottom));
}

.android-view .android-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 134px;
  padding: 20px;
  border-radius: 16px;
  background-color: #20211c;
  color: #fffdf6;
}

.android-view .android-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: radial-gradient(#d6d0b833 .65px, transparent .8px);
  background-size: 5px 5px;
  mask-image: linear-gradient(95deg, transparent 20%, #000 80%);
}

.android-view .android-record {
  position: absolute;
  z-index: -1;
  right: -12%;
  bottom: 0;
  width: 72%;
  height: 104%;
  object-fit: cover;
  object-position: left bottom;
  pointer-events: none;
}

.android-view .android-hero-copy {
  min-width: 0;
  max-width: 68%;
}

.android-view .android-server-type {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #f7cc66;
  font-size: 10px;
  font-weight: 720;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.android-view .android-server-type svg {
  width: 13px;
  height: 13px;
}

.android-view .android-hero h1 {
  margin: 7px 0 12px;
  font-size: clamp(33px, 9.8vw, 42px);
  font-weight: 780;
  font-variation-settings: "opsz" 48;
  line-height: 1;
  letter-spacing: -.055em;
}

.android-view .android-online {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eeeee3;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.3;
}

.android-view .android-online i,
.android-view .android-online:not(:has(i, svg))::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #f4bf40;
  box-shadow: 0 0 0 3px #f4bf401a;
}

.android-view .android-directory {
  padding-top: 19px;
}

.android-view .android-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 41px;
}

.android-view .android-section-head h2 {
  font-size: 29px;
  font-weight: 760;
  line-height: 1.1;
  letter-spacing: -.047em;
}

.android-view #mobile-room-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  color: #55574d;
  background: #eaeae1;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 740;
  font-variant-numeric: tabular-nums;
}

.android-view #mobile-add-room {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  border: 1px solid #d5d6c9;
  border-radius: 11px;
  background: white;
  color: #30312a;
}

.android-view #mobile-add-room::after {
  position: absolute;
  inset: -4px;
  content: "";
}

.android-view #mobile-add-room svg {
  width: 18px;
  height: 18px;
}

.android-view #mobile-rooms {
  display: grid;
  gap: 8px;
}

.android-view #mobile-rooms .room-item {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--android-line);
  border-radius: 13px;
}

.android-view #mobile-rooms .room-item.is-connected {
  background: #fff8e2;
  border-color: #e3bc57;
}

.android-view #mobile-rooms .room-item.is-expanded:not(.is-connected) {
  border-color: #bdbfb2;
}

.android-view #mobile-rooms .room-button {
  display: flex;
  align-items: center;
  min-height: 55px;
  padding: 8px 13px 8px 10px;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  user-select: none;
  -webkit-touch-callout: none;
}

.android-view #mobile-rooms .room-icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  background: #f0f0e9;
  color: #46483d;
}

.android-view #mobile-rooms .room-icon svg {
  width: 21px;
  height: 21px;
}

.android-view #mobile-rooms .is-connected .room-icon {
  color: #312914;
  background: var(--android-gold);
}

.android-view #mobile-rooms .is-expanded:not(.is-connected) .room-icon {
  color: #f8cc64;
  background: #2d2f27;
}

.android-view #mobile-rooms .room-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 25px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: #f1f1eb;
  color: #5b5d52;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0;
}

.android-view #mobile-rooms .room-number svg {
  width: 12px;
  height: 12px;
}

.android-view #mobile-rooms .is-connected .room-number {
  color: #6c5311;
  background: #fae8ae;
}

.android-view #mobile-rooms .room-chevron {
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  color: #67695e;
  transition: transform .16s ease;
}

.android-view #mobile-rooms .room-chevron svg {
  width: 15px;
  height: 15px;
}

.android-view #mobile-rooms .room-button[aria-expanded="true"] .room-chevron {
  transform: rotate(180deg);
}

.android-view #mobile-rooms .room-panel {
  padding: 0 10px 11px;
}

.android-view #mobile-rooms .room-panel[hidden] {
  display: none;
}

.android-view .roster-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 1px 0 0;
}

.android-view .roster-member {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 48px;
  padding: 6px 7px;
  border-radius: 9px;
  background: #f5f5ef;
}

.android-view .roster-avatar {
  flex: none;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.android-view .roster-person {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.android-view .roster-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.android-view .roster-name small {
  color: #68695f;
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0;
}

.android-view .roster-empty {
  margin: 0;
  padding: 8px;
  color: #626459;
  font-size: 13px;
  line-height: 1.4;
}

.android-view .roster-state {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #626459;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.2;
}

.android-view .roster-state svg,
.android-view .roster-state .live-bars {
  width: 11px;
  height: 11px;
}

.android-view .roster-state .live-bars {
  gap: 1px;
  color: #926700;
}

.android-view .roster-member.speaking .roster-state {
  color: #76560c;
}

.android-view #mobile-rooms :is(.room-join,.room-enter) {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  width: 100%;
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--android-gold);
  color: #2a2414;
  font-size: 13px;
  font-weight: 740;
}

.android-view #mobile-rooms :is(.room-join,.room-enter) svg {
  width: 15px;
  height: 15px;
}

.android-view #mobile-rooms .room-enter {
  background: #2d2e26;
  color: #fff9e6;
}

@media (hover: hover) {
  .android-view #mobile-rooms .room-button:hover {
    background: #21221906;
  }

  .android-view #mobile-rooms .room-join:hover {
    background: #ffca50;
  }

  .android-view #mobile-rooms .room-enter:hover {
    background: #414438;
  }
}

@media (max-width: 820px) {
  body.android-view {
    --android-width: 530px;
  }
}

@media (max-width: 530px) {
  body.android-view {
    border-inline: 0;
  }
}

@media (max-width: 350px) {
  body.android-view {
    --android-inset: 12px;
  }

  .android-view .android-hero {
    min-height: 120px;
    padding: 17px;
  }

  .android-view .roster-member {
    gap: 5px;
    padding-inline: 5px;
  }

  .android-view .roster-avatar {
    width: 29px;
    height: 29px;
  }
}
