/* The opening is a statement of availability. Keep its palette independent
   of the creature's room theme; call and collection palettes stay their own. */
html:has(#home:not([hidden])),
:root body:has(#home:not([hidden])) { background: #f4f3ee; background-image: none; color: #1a1d1c; }
#home { color: #1a1d1c; max-width: 520px; }
#home .home-companion { height: 128px; margin: 2px 0 12px; }
#home .companion-halo { display: none; }
#home .collection-hint { background: #fbfbf7; color: #5c6663; font-style: normal; transform: translateX(-50%); }
#home #home-heading { text-align: left; }
#home #home-heading h1 { color: #1a1d1c; font-family: inherit; font-size: 39px; font-weight: 650; font-style: normal; letter-spacing: -1.8px; transform: none; margin: 0; }
#home #home-heading h1::before { display: none; }
#home #home-heading p { margin: 10px 0 0; color: #5c6663; font-size: 15px; line-height: 1.5; }
#home .composer { margin-top: 25px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#home .composer:focus-within { box-shadow: none; }
#home .composer-options { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0 0 10px; }
#home .composer-options .duration-label { display: block; }
#home .composer-summary { font-size: 14px; line-height: 1.6; margin: 12px 0 18px; color: #5c6663; overflow-wrap: anywhere; }
#home .composer-summary strong { color: #1a1d1c; font-weight: 550; }
#home .duration-choices, #home .audience-strip { display: flex; gap: 5px; min-width: 0; }
#home .audience-strip { overflow-x: auto; padding: 3px; margin: -3px; overscroll-behavior-x: contain; scrollbar-width: thin; }
#home #hangout-audience-tags { display: contents; }
#home .duration-choices button, #home .audience-strip button {
  flex: 0 0 auto; min-height: 44px; min-width: 44px; margin: 0; padding: 10px 13px;
  background: transparent; border: 1px solid transparent; border-radius: 14px;
  color: #1a1d1c; font: inherit; font-size: 16px; line-height: 22px; white-space: nowrap;
  box-shadow: none; transform: none;
}
#home .audience-strip button { font-size: 14px; padding-inline: 11px; }
#home .audience-strip button::before, #home .audience-strip button::after { display: none; }
#home .duration-choices button[aria-pressed="true"], #home .audience-strip button[aria-pressed="true"] { background: #eef2ef; border-color: #e8e6e0; font-weight: 600; color: #1a1d1c; }
#home .duration-choices button:disabled, #home .audience-strip button:disabled { opacity: .5; }
#home #hangout-audience-people { font-size: 12px; color: #5c6663; margin: 8px 0 0; line-height: 1.5; overflow-wrap: anywhere; }
#home .composer-topic { margin-bottom: 0; }
#home #e2e0d9-note { background: none; border: 0; border-radius: 8px; padding: 8px 0; color: #1a1d1c; min-height: 44px; font-size: 15px; text-align: left; }
#home #note-field { display: flex; align-items: baseline; gap: 7px; padding: 4px 12px; border: 1px solid #e2e0d9; border-radius: 14px; background: #fbfbf7; }
#home #note-field label { color: #1a1d1c; font-size: 16px; flex: 0 0 auto; }
#home .composer textarea, #home .composer.settled textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 100px; padding: 10px 2px; color: #1a1d1c; font-size: 16px; line-height: 24px; background: transparent; border: 0; opacity: 1; }
#home .composer textarea::placeholder { color: #5c6663; font-size: 16px; }
#home .composer .start-button { width: 100%; min-height: 68px; padding: 19px 20px; border: 1px solid #e2e0d9; border-radius: 21px; color: #1a1d1c; background: linear-gradient(120deg,#efeee9,#e2e0d9); box-shadow: 0 3px 0 #e2e0d933; }
#home .start-copy > span { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -.5px; }
#home .start-copy > small { color: #1a1d1c; opacity: 1; overflow-wrap: anywhere; }
#home .composer.settled .start-button { min-height: 68px; }
#home .prejoin { margin-top: 15px; }
#home .privacy-note { color: #5c6663; }
#home.has-owned-hangout .composer .start-button { background: #f4f3ee; border-color: #e8e6e0; box-shadow: none; }
#home.has-owned-hangout :is(.composer-topic,.composer-options,.composer-summary) { display: none; }
#home.welcome #home-heading { text-align: center; }
#home.welcome .home-companion { height: 180px; }
@media (max-width:359px) { #home .duration-choices button { padding-inline: 11px; } #home #home-heading h1 { font-size: 36px; } }
@media (min-width:760px) and (max-height:540px) { #home { max-width: 1000px; } #home .home-companion { height: 96px; } }

#home #note-field:focus-within { border-color: #1a1d1c; box-shadow: 0 0 0 3px #1a1d1c18; }

/* One quiet surface groups your presence and entry choices; people stay outside. */
#home:not(.unregistered) .composer-section {
  margin-inline: -8px; padding: 18px 16px 20px;
  border: 1px solid #e8e6e0; border-radius: 28px;
  background: #fbfbf7; box-shadow: 0 6px 24px #1a1d1c06;
}

/* Settings stay one tap away, without presenting an open form on arrival. */
#home .composer-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
#home .composer-summary button { min-height: 44px; min-width: 44px; max-width: 100%; padding: 8px 10px; border: 1px solid #e8e6e0; border-radius: 13px; background: #ffffff; color: #1a1d1c; font: inherit; text-align: left; overflow-wrap: anywhere; box-shadow: none; }
#home .composer-summary button[aria-expanded="true"] { background: #eef2ef; border-color: #e2e0d9; }
#home .composer-summary button:focus-visible { outline: 2px solid #1a1d1c; outline-offset: 3px; }
#home .composer-options:has(> :not([hidden])) { margin-top: 12px; }
#home .composer-options:not(:has(> :not([hidden]))) { display: none; }
#home .composer-summary[hidden], #home #duration-options[hidden], #home #hangout-audience-panel[hidden], #home.has-owned-hangout .composer-summary { display: none; }

/* A quiet distinction between the original time and friends controls. */
#home .composer-summary #audience-toggle { background: #eef2ef; border-color: #e8e6e0; }
#home .composer-summary #audience-toggle[aria-expanded="true"] { background: #e8e6e0; border-color: #e2e0d9; }
#home #hangout-audience-panel .audience-strip button[aria-pressed="true"] { background: #e8e6e0; border-color: #e2e0d9; }

.guest-account { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); }
.guest-account p { margin: 6px 0 12px; max-width: 46ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.browser-entry-hint { padding: 0 0 12px; margin: 0 0 14px; border-bottom: 1px solid #e8e6e0; }
.browser-entry-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.browser-entry-actions .text-button { min-height: 44px; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; }
.browser-entry-actions .text-button { font-size: 14px; }
.browser-entry-actions .text-button:focus-visible { outline: 2px solid #5c6663; outline-offset: 3px; border-radius: 4px; }

/* An invitation is one entry flow: context, device choices, then the action. */
#home.has-invite { gap: 24px; }
#home.has-invite .invitation { text-align: left; padding-top: 4px; animation: none; }
.invitation-picture { display: none; width: 68px; height: 68px; margin: 0 0 16px; color: #5c6663; }
.invitation.available .invitation-picture { display: block; }
.invitation-picture svg { width: 100%; height: 100%; }
#home.has-invite .invitation h1 { margin-top: 10px; font-size: clamp(27px, 7vw, 34px); line-height: 1.14; letter-spacing: -1px; text-wrap: balance; }
#home.has-invite .invitation > p { margin-top: 12px; font-size: 15px; line-height: 1.5; }
.invitation-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
#home.has-invite .invitation-actions .primary { margin: 0; min-height: 56px; padding: 16px 20px; border-radius: 18px; box-shadow: none; font-size: 17px; }
#home.has-invite .invitation.available .primary { background: #e2e0d9; color: #1a1d1c; border: 1px solid #e2e0d9; }
#home.has-invite .invitation-actions :is(.soft-button,.text-button) { margin: 0; min-height: 44px; padding: 12px 16px; border-radius: 14px; }
#home.has-invite .invitation-actions .soft-button { background: transparent; border: 1px solid #e8e6e0; font-size: 14px; }
#home.has-invite .invitation-actions .browser-help-link { align-self: center; font-size: 13px; color: #5c6663; }
#home.invitation-ready:not(.unregistered) .composer-section:has(#composer[hidden]) { display: none; }
#home .invitation #prejoin-settings { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e8e6e0; }
#home .invitation .prejoin { justify-content: flex-start; margin: 0; }
#home .invitation .media-choices { width: 100%; gap: 10px; }
#home .invitation .small-control { flex: 1; justify-content: center; min-height: 48px; font-size: 14px; border-radius: 14px; }
#home .invitation .privacy-note { margin-top: 10px; text-align: left; font-size: 12px; }
#home.unregistered #prejoin-settings { display: none; }
#home .small-control { display: inline-flex; align-items: center; gap: 7px; }
.pre-media-icon { display: inline-flex; }
.pre-media-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#home .home-call-notice { font-size: 13px; line-height: 1.5; padding: 12px 14px; border-radius: 14px; background: #e2e0d9; }

/* The complete yellow surface starts the room. Optional edits stay below. */
#home #start-audience { margin-top: 7px; font-size: 14px; line-height: 1.45; }
#home #audience-names { display: block; margin-top: 3px; font-size: 12px; line-height: 1.5; }
#home #audience-names[hidden], #home.has-owned-hangout #start-audience { display: none; }

/* One-time individual invitations, using the same optional audience panel. */
#home .audience-strip { flex-wrap: wrap; overflow: visible; }
#home #audience-picker { margin-top: 12px; border: 1px solid #e8e6e0; border-radius: 18px; background: #fbfbf7; padding: 12px; }
#home #audience-picker[hidden] { display: none; }
#home .audience-picker-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
#home .audience-picker-heading span { font-size: 12px; color: #5c6663; }
#home #audience-picker-list { max-height: 256px; overflow-y: auto; overscroll-behavior: contain; }
#home .audience-person { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 4px 6px; border-radius: 12px; cursor: pointer; }
#home .audience-person:has(input:checked) { background: #f4f3ee; }
#home .audience-person:focus-within { outline: 2px solid #5c6663; outline-offset: -2px; }
#home .audience-person img { flex: 0 0 44px; object-fit: contain; }
#home .audience-person span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
#home .audience-person input { flex: 0 0 22px; width: 22px; height: 22px; margin: 0 4px; accent-color: #5c6663; }
#home #audience-picker-done { width: 100%; min-height: 44px; margin-top: 10px; border: 0; border-radius: 12px; background: #5c6663; color: white; font: inherit; }
#home #audience-picker-done:disabled { opacity: .5; }
#home #audience-count { display: inline-block; white-space: nowrap; }

.met-section { margin-top: 40px; }
.met-note { margin: 10px 0 0; max-width: 46ch; color: var(--muted); font-size: 13px; line-height: 1.5; }
.met-row .friend-copy { flex: 1; min-width: 0; }
.met-row .friend-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.met-row .soft-button { flex: 0 0 auto; min-width: 88px; }
.met-row .soft-button[aria-pressed="true"] { background: transparent; color: var(--muted); }
