:root {
  color-scheme: dark;
  --bg: #000;
  --text: #f7f7f7;
  --muted: #8d8d92;
  --line: rgba(255, 255, 255, 0.14);
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: #171719;
  --accent: #5fcac0;
  --button: #f5f5f5;
  --button-text: #090909;
  --remote-viewport-height: 100dvh;
  --remote-viewport-top: 0px;
  --composer-pill-fill: rgba(28, 28, 28, 0.28);
  --composer-pill-border: rgba(255, 255, 255, 0.14);
  --composer-pill-filter: blur(4px) saturate(1.05);
  --genie-orb: #fff;
  --genie-orb-rgb: 255, 255, 255;
}

:root[data-theme='light'] {
  color-scheme: light;
  --bg: #fff;
  --text: #111;
  --muted: #6f6f74;
  --line: rgba(0, 0, 0, 0.13);
  --surface: rgba(0, 0, 0, 0.045);
  --surface-strong: #f3f3f4;
  --button: #111;
  --button-text: #fff;
  --composer-pill-fill: rgba(255, 255, 255, 0.28);
  --composer-pill-border: rgba(20, 20, 20, 0.12);
  /* Orb pigment stays silver via WebGL; dark rgb is for drop-shadow only. */
  --genie-orb: #fff;
  --genie-orb-rgb: 20, 20, 20;
}

* { box-sizing: border-box; }

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

html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
  -webkit-font-smoothing: antialiased;
}

body.workspace-open,
body.remote-conversation-open {
  overflow: hidden;
}

body.remote-conversation-open {
  width: 100%;
  height: 100%;
  overscroll-behavior: none;
}

button, input, textarea { font: inherit; }

.remote-app {
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 22px max(20px, env(safe-area-inset-bottom));
}

body.remote-conversation-open .remote-app {
  position: absolute;
  top: var(--remote-viewport-top);
  left: 50%;
  height: var(--remote-viewport-height);
  width: min(760px, 100%);
  min-height: 0;
  margin: 0;
  display: block;
  overflow: hidden;
  transform: translateX(-50%);
}

body.remote-conversation-open .remote-header {
  position: absolute;
  z-index: 18;
  top: max(18px, env(safe-area-inset-top));
  right: 22px;
  left: 22px;
  min-height: 68px;
  padding: 7px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 34px;
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .18);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.remote-header {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  min-height: 74px;
}

.remote-header > div {
  grid-column: 2;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.remote-header > [data-back-to-chat] {
  display: none !important;
}

.remote-header strong { font-size: 18px; }

.remote-mode-picker {
  position: relative;
  display: block;
  width: 120px;
}

.remote-mode-picker select {
  width: 100%;
  min-width: 0;
  padding: 0 24px;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-align-last: center;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
}

.remote-mode-picker svg {
  position: absolute;
  top: 50%;
  right: 8px;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(-50%);
}

.remote-header-spacer,
.remote-wake-toggle {
  width: 52px;
  height: 52px;
}

.remote-wake-toggle {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--composer-pill-border);
  border-radius: 50%;
  background: var(--composer-pill-fill);
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
  cursor: pointer;
}

.remote-wake-toggle[hidden] { display: none; }
.remote-wake-toggle:disabled { cursor: default; opacity: .42; }

.wake-state-icon { display: none; }
.remote-wake-toggle[data-wake-state='off'] .wake-state-off-icon,
.remote-wake-toggle[data-wake-state='listening'] .wake-state-listening-icon,
.remote-wake-toggle[data-wake-state='hearing'] .wake-state-hearing-icon,
.remote-wake-toggle[data-wake-state='connecting'] .wake-state-connecting-icon,
.remote-wake-toggle[data-wake-state='awaiting'] .wake-state-awaiting-icon,
.remote-wake-toggle[data-wake-state='thinking'] .wake-state-thinking-icon,
.remote-wake-toggle[data-wake-state='doing'] .wake-state-doing-icon,
.remote-wake-toggle[data-wake-state='speaking'] .wake-state-speaking-icon { display: block; }

.remote-wake-toggle.is-active,
.remote-wake-toggle[data-wake-state='listening'],
.remote-wake-toggle[data-wake-state='hearing'],
.remote-wake-toggle[data-wake-state='connecting'],
.remote-wake-toggle[data-wake-state='awaiting'],
.remote-wake-toggle[data-wake-state='thinking'],
.remote-wake-toggle[data-wake-state='doing'],
.remote-wake-toggle[data-wake-state='speaking'] {
  color: #fff;
  border-color: rgba(255, 255, 255, .18);
  background: #000;
  box-shadow: none;
  animation: none;
}

.remote-wake-toggle[data-wake-state='hearing'] .wake-state-hearing-icon,
.remote-wake-toggle[data-wake-state='awaiting'] .wake-state-awaiting-icon,
.remote-wake-toggle[data-wake-state='speaking'] .wake-state-speaking-icon {
  animation: wake-state-breathe .72s ease-in-out infinite alternate;
}

.remote-wake-toggle[data-wake-state='connecting'] .wake-state-connecting-icon,
.remote-wake-toggle[data-wake-state='doing'] .wake-state-doing-icon {
  animation: spin .9s linear infinite;
}

.remote-wake-toggle[data-wake-state='thinking'] .wake-state-thinking-icon {
  animation: wake-state-thinking .9s ease-in-out infinite alternate;
}

.remote-wake-banner {
  position: fixed;
  z-index: 18;
  right: auto;
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px);
  left: 50%;
  width: min(calc(100% - 32px), 520px);
  min-height: 48px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 54%, transparent);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
  backdrop-filter: blur(22px) saturate(1.14);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
  transform: translateX(-50%);
}

.remote-wake-banner[hidden] { display: none; }
.remote-wake-banner > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.remote-wake-banner small { color: var(--muted); font-size: 11px; white-space: nowrap; }

.remote-wake-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text);
  box-shadow: none;
  animation: none;
}

.remote-wake-banner.is-processing .remote-wake-pulse { animation-duration: .7s; }

.remote-genie[hidden] { display: none; }

.remote-genie {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: var(--remote-viewport-height);
  background: var(--bg);
}

.remote-genie-stage {
  position: absolute;
  inset: 0;
  min-height: var(--remote-viewport-height);
  padding: max(112px, calc(env(safe-area-inset-top) + 92px)) 20px max(20px, env(safe-area-inset-bottom));
  text-align: center;
}

.remote-genie-intro {
  position: absolute;
  z-index: 1;
  top: clamp(132px, 18vh, 176px);
  right: 24px;
  left: 24px;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.remote-genie-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1;
  letter-spacing: -.045em;
}

.remote-genie-intro p {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, 3.8vw, 17px);
  line-height: 1.45;
}

.remote-genie-orb,
.remote-header-spacer.remote-genie-orb {
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(132px, 38vw, 176px);
  height: clamp(132px, 38vw, 176px);
  color: var(--bg);
  border: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  transform: translate(-50%, -50%);
  isolation: isolate;
  overflow: visible;
}

.remote-genie-orb:disabled {
  opacity: 1;
  cursor: default;
}

.remote-genie-orb[data-wake-state] {
  color: var(--bg);
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  animation: none;
}

.remote-genie-orb[data-wake-state].is-active {
  border-color: transparent;
  box-shadow: none;
  animation: none;
}

.remote-genie-orb[data-wake-state='off']:not(.is-active),
.remote-genie-orb[data-wake-state='listening'].is-active {
  animation: none;
}

.benaiah-orb-surface {
  position: absolute;
  z-index: 0;
  inset: -11%;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  filter: drop-shadow(0 0 20px rgba(var(--genie-orb-rgb), .13));
  transform: scale(.985);
  transform-origin: center;
  animation: benaiah-orb-breathe 4.8s ease-in-out infinite;
  transition: filter 280ms ease, transform 280ms ease;
}

.remote-genie-orb.is-active .benaiah-orb-surface {
  filter: drop-shadow(0 0 30px rgba(var(--genie-orb-rgb), .2));
}

.remote-genie-orb[data-wake-state='connecting'] .benaiah-orb-surface,
.remote-genie-orb[data-wake-state='thinking'] .benaiah-orb-surface,
.remote-genie-orb[data-wake-state='doing'] .benaiah-orb-surface {
  animation-duration: 3.2s;
}

.remote-genie-orb[data-wake-state='speaking'] .benaiah-orb-surface {
  animation-duration: 2.35s;
}

.benaiah-orb-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.benaiah-orb-surface.is-fallback {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .38) 24%, transparent 54%),
    radial-gradient(circle at 66% 74%, rgba(255, 255, 255, .66), rgba(255, 255, 255, .12) 44%, transparent 68%),
    radial-gradient(circle, rgba(255, 255, 255, .48), rgba(255, 255, 255, .08));
}

.remote-genie-orb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 14px;
}

.remote-genie-orb .wake-state-icon {
  position: relative;
  z-index: 2;
  width: clamp(68px, 20vw, 82px);
  height: clamp(68px, 20vw, 82px);
  color: var(--bg);
  filter: drop-shadow(0 1px 3px rgba(var(--genie-orb-rgb), .2));
}

.remote-genie-privacy-tip {
  position: absolute;
  z-index: 1;
  top: calc(48% + clamp(118px, 30vw, 142px));
  right: 24px;
  left: 24px;
  max-width: 390px;
  margin-inline: auto;
  color: var(--muted);
  text-align: center;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.remote-genie-privacy-tip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.remote-genie-privacy-tip p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.remote-genie-suggestions {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 18px;
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
}

.remote-genie-suggestions > p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.remote-genie-suggestions > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.remote-genie-suggestions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--composer-pill-fill);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

.remote-genie-suggestions button:active { transform: scale(.97); }

body.remote-wake-active .remote-genie-intro,
body.remote-wake-active .remote-genie-privacy-tip,
body.remote-wake-active .remote-genie-suggestions {
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
}

.remote-genie-guide[hidden] { display: none; }

.remote-genie-guide {
  position: fixed;
  z-index: 30;
  inset: 0;
  overflow: auto;
  color: #f7f7f7;
  background: #000;
  overscroll-behavior: contain;
}

.remote-genie-guide-surface {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: max(76px, calc(env(safe-area-inset-top) + 52px)) 24px max(52px, calc(env(safe-area-inset-bottom) + 30px));
}

.remote-genie-guide-close {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: 20px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  cursor: pointer;
}

.remote-genie-guide-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.remote-genie-guide h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(42px, 11vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
}

.remote-genie-guide-status {
  margin: 22px 0 0;
  max-width: 500px;
  color: #a7a7ad;
  font-size: 17px;
  line-height: 1.55;
}

.remote-genie-guide-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.remote-genie-guide-primary,
.remote-genie-guide-secondary {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #050505;
  font: inherit;
  font-weight: 720;
  text-decoration: none;
  border: 0;
  border-radius: 25px;
  background: #f7f7f7;
  cursor: pointer;
}

.remote-genie-guide-secondary {
  color: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
}

.remote-genie-guide-section {
  margin-top: 54px;
  padding-top: 24px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.remote-genie-guide-number {
  padding-top: 3px;
  color: #6f6f76;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
}

.remote-genie-guide-section h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.remote-genie-guide-section p {
  margin: 10px 0 0;
  color: #a7a7ad;
  line-height: 1.55;
}

.remote-genie-prompts {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}

.remote-genie-prompts span,
.remote-genie-apps span {
  padding: 12px 14px;
  color: #ececf0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .045);
}

.remote-genie-apps {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.remote-genie-apps span {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
}

.remote-genie-connections-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f7f7f7;
  font-weight: 700;
  text-decoration: none;
}

.remote-genie-guide-footnote {
  margin: 46px 0 0;
  color: #74747b;
  font-size: 13px;
  line-height: 1.55;
}

:root[data-remote-mode='genie'] body {
  overflow: hidden;
  background: var(--bg);
}

:root[data-remote-mode='genie'] .remote-app {
  width: 100%;
  max-width: none;
  min-height: var(--remote-viewport-height);
  padding: 0;
}

:root[data-remote-mode='genie'] .remote-header {
  position: fixed;
  z-index: 20;
  top: max(18px, env(safe-area-inset-top));
  left: 50%;
  width: min(760px, 100%);
  min-height: 74px;
  padding-inline: 22px;
  grid-template-columns: 52px 1fr 52px;
  color: var(--text);
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateX(-50%);
}

:root[data-remote-mode='genie'] .remote-header > div { grid-column: 2; }

:root[data-remote-mode='genie'] body.remote-genie-guide-open .remote-header { display: none; }

:root[data-remote-mode='genie'] .remote-mode-picker select { color: var(--text); }
:root[data-remote-mode='genie'] .remote-mode-picker svg { color: var(--muted); }

:root[data-remote-mode='genie'] .remote-header > [data-back-to-devices],
:root[data-remote-mode='genie'] .remote-header > .remote-wake-toggle,
:root[data-remote-mode='genie'] .remote-landing,
:root[data-remote-mode='genie'] .remote-session,
:root[data-remote-mode='genie'] .workspace-drawer,
:root[data-remote-mode='genie'] .remote-wake-banner,
:root[data-remote-mode='genie'] .remote-rename-dialog {
  display: none !important;
}

@keyframes remote-wake-pulse {
  70% { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes wake-state-breathe {
  from { transform: scale(.88); opacity: .74; }
  to { transform: scale(1.08); opacity: 1; }
}

@keyframes benaiah-orb-breathe {
  0%, 100% { transform: scale(.985); }
  50% { transform: scale(1.035); }
}

@keyframes wake-state-thinking {
  from { transform: scale(.94); opacity: .76; }
  to { transform: scale(1.04); opacity: 1; }
}

.icon-button {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--composer-pill-fill);
  border: 1px solid var(--composer-pill-border);
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

.remote-landing { padding-top: clamp(48px, 10vh, 92px); }

.remote-intro { max-width: 560px; }

h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 8vw, 62px);
  line-height: .98;
  letter-spacing: -.055em;
}

.remote-intro > p:last-child {
  margin: 0;
  max-width: 570px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.remote-state {
  margin-top: 70px;
  min-height: 210px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  border: 1px solid var(--composer-pill-border);
  border-radius: 30px;
  background: var(--composer-pill-fill);
  box-shadow: none;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

.remote-state strong { font-size: 20px; }
.remote-state span { max-width: 330px; color: var(--muted); line-height: 1.45; }

.remote-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.device-list {
  margin-top: 56px;
  display: grid;
  gap: 12px;
}

.device-card {
  width: 100%;
  min-height: 92px;
  padding: 18px;
  display: grid;
  grid-template-columns: 50px 1fr 28px;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  text-align: left;
  border: 1px solid var(--composer-pill-border);
  border-radius: 25px;
  background: var(--composer-pill-fill);
  box-shadow: none;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
  cursor: pointer;
}

.device-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--button);
  color: var(--button-text);
}

.device-card div { display: grid; gap: 4px; }
.device-card strong { font-size: 17px; }
.device-card small { color: var(--muted); font-size: 14px; }

.remote-session {
  min-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - max(20px, env(safe-area-inset-bottom)));
  display: grid;
  grid-template-rows: 1fr auto auto;
}

body.remote-conversation-open .remote-session {
  position: relative;
  height: 100%;
  min-height: 0;
  display: block;
  overflow: hidden;
}

.session-device {
  margin-top: 18px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 20px;
  background: var(--composer-pill-fill);
  box-shadow: none;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

.session-device-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  text-align: left;
}

.session-device-name {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-device-name strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-device small { color: var(--muted); }
.session-device button { color: var(--muted); border: 0; background: none; cursor: pointer; }

.session-device .session-device-rename {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.session-device .session-device-rename:hover,
.session-device .session-device-rename:focus-visible {
  color: var(--text);
  background: var(--surface);
  outline: none;
}

.session-device-disconnect {
  padding: 8px 0 8px 8px;
}

.remote-rename-dialog {
  width: min(430px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  color: var(--text);
  border: 0;
  border-radius: 28px;
  background: transparent;
  overflow: visible;
}

.remote-rename-dialog::backdrop {
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.remote-rename-card {
  padding: 24px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 28px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
}

.remote-rename-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.remote-rename-card > header > div {
  display: grid;
  gap: 5px;
}

.remote-rename-card > header span,
.remote-rename-card label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.remote-rename-card h2 {
  margin: 0;
  font-size: 25px;
  letter-spacing: -.035em;
}

.remote-rename-card > header button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--composer-pill-border);
  border-radius: 50%;
  background: var(--composer-pill-fill);
  cursor: pointer;
}

.remote-rename-card > p {
  margin: -6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.remote-rename-card label {
  display: grid;
  gap: 9px;
}

.remote-rename-card input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  color: var(--text);
  font-size: 16px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 17px;
  outline: 0;
  background: var(--composer-pill-fill);
}

.remote-rename-card input:focus {
  border-color: color-mix(in srgb, var(--text) 42%, transparent);
}

.remote-rename-card .remote-rename-error {
  margin: -8px 0 0;
  color: #ff8989;
  font-size: 13px;
}

.remote-rename-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.remote-rename-actions button {
  min-height: 50px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 17px;
  cursor: pointer;
}

.remote-rename-actions [data-rename-cancel] {
  color: var(--text);
  background: var(--composer-pill-fill);
}

.remote-rename-actions [data-rename-save] {
  color: var(--button-text);
  background: var(--button);
}

.remote-rename-actions button:disabled {
  opacity: .55;
  cursor: wait;
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.online { background: var(--accent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent), transparent 25%); }

.remote-messages {
  min-height: 0;
  padding: 22px 2px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

body.remote-conversation-open .remote-messages {
  height: 100%;
  padding-top: 106px;
  padding-bottom: calc(132px + env(safe-area-inset-bottom));
  scroll-padding-top: 106px;
  scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom));
}

body.remote-conversation-open.remote-wake-active .remote-messages {
  padding-bottom: calc(198px + env(safe-area-inset-bottom));
  scroll-padding-bottom: calc(198px + env(safe-area-inset-bottom));
}

body.remote-conversation-open .remote-wake-banner {
  position: absolute;
  bottom: calc(max(0px, env(safe-area-inset-bottom)) + 78px);
}

.message { margin: 0 0 28px; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.message.user {
  width: fit-content;
  max-width: min(78%, 640px);
  margin-left: auto;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.message.user, .message.status { white-space: pre-wrap; }
.message.assistant {
  width: 100%;
  max-width: 96%;
  display: grid;
  gap: 10px;
}
.message.status { color: var(--muted); font-size: 14px; }

.message-content {
  min-width: 0;
  color: var(--text);
  letter-spacing: -0.008em;
  overflow-wrap: break-word;
  word-break: normal;
}

.message-content:empty { display: none; }
.message-content p { margin: 0 0 0.9em; }
.message-content p:last-child { margin-bottom: 0; }

.message-content h2,
.message-content h3,
.message-content h4 {
  margin: 1.35em 0 0.5em;
  color: inherit;
  font-size: 1.05em;
  font-weight: 680;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.message-content h2 { font-size: 1.17em; }
.message-content h3 { font-size: 1.09em; }
.message-content :is(h2, h3, h4):first-child { margin-top: 0; }
.message-content strong { font-weight: 650; }

.message-content ul,
.message-content ol {
  margin: 0 0 0.95em;
  padding-left: 1.45em;
}

.message-content li { margin: 0.32em 0; padding-left: 0.16em; }
.message-content li::marker { color: color-mix(in srgb, currentColor 72%, transparent); font-weight: 650; }
.message-content li > :is(ul, ol) { margin: 0.35em 0 0.15em; }

.message-content blockquote {
  margin: 1em 0;
  padding: 0.05em 0 0.05em 1em;
  color: var(--muted);
  border-left: 3px solid var(--line);
}

.message-content blockquote > :last-child { margin-bottom: 0; }
.message-content hr { height: 1px; margin: 1.35em 0; border: 0; background: var(--line); }
.message-content del { color: var(--muted); }

.message-task-item { position: relative; list-style: none; }
.message-task-box {
  display: inline-grid;
  width: 1.05em;
  height: 1.05em;
  margin: 0 0.5em 0 -1.45em;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.78em;
  line-height: 1;
}

.message-content a {
  color: inherit;
  font-weight: 620;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.message-content .message-image {
  display: block;
  width: min(100%, 520px);
  max-width: 100%;
  height: auto;
  margin: 12px 0 4px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.message-citation {
  display: inline-flex;
  margin: 0 2px;
  vertical-align: 0.22em;
}

.message-citation a {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
}

.message-content code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-strong);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.88em;
}

.message-content pre {
  margin: 1em 0;
  padding: 15px 16px;
  overflow-x: auto;
  color: #ededeb;
  background: #18181a;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.86em;
  line-height: 1.55;
  tab-size: 2;
}

.message-content pre code { padding: 0; color: inherit; background: transparent; }

.message-table-wrap {
  width: 100%;
  margin: 1em 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.message-content table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 0.9em;
  line-height: 1.45;
}

.message-content th,
.message-content td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  overflow-wrap: break-word;
  word-break: normal;
}

.message-content th:first-child,
.message-content td:first-child {
  width: 1%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.message-content th { background: var(--surface); font-weight: 680; white-space: nowrap; }
.message-content tbody tr:last-child td { border-bottom: 0; }

.work-disclosure {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.work-disclosure summary {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-weight: 560;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.work-disclosure summary::-webkit-details-marker { display: none; }
.work-caret { transition: transform 160ms ease; }
.work-disclosure[open] .work-caret { transform: rotate(90deg); }

.work-disclosure.pending .work-label {
  color: transparent;
  background: linear-gradient(90deg, var(--muted) 18%, var(--text) 48%, var(--muted) 78%);
  background-size: 220% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: work-shimmer 1.65s linear infinite;
}

@keyframes work-shimmer {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.work-reasoning {
  max-height: 178px;
  margin-top: 5px;
  padding-right: 4px;
  overflow: auto;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.48;
}

.work-reasoning.message-content p { margin-bottom: 0.65em; }

.work-tool {
  min-width: 0;
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.work-tool-icon {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
}

.work-tool-icon::before {
  content: "";
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .85s linear infinite;
}

.work-tool.complete .work-tool-icon::before {
  width: 6px;
  height: 10px;
  border: 0;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  border-radius: 0;
  animation: none;
  transform: rotate(42deg) translate(-1px, -1px);
}

.work-tool strong { min-width: 0; font-weight: 540; }

.remote-prompt {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-strong);
}

body.remote-conversation-open .remote-prompt {
  position: absolute;
  z-index: 7;
  right: 0;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 0;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.remote-prompt strong, .remote-prompt span { display: block; }
.remote-prompt span { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.remote-prompt div { display: flex; gap: 8px; margin-top: 14px; }
.remote-prompt button { min-height: 42px; padding: 0 17px; color: var(--text); border: 1px solid var(--line); border-radius: 999px; background: transparent; }
.remote-prompt button.primary { color: var(--button-text); background: var(--button); }

.remote-composer {
  position: relative;
  width: min(544px, 100%);
  min-height: 58px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--composer-pill-border);
  border-radius: 999px;
  background: var(--composer-pill-fill);
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

body.remote-conversation-open .remote-composer {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: max(0px, env(safe-area-inset-bottom));
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
}

.remote-composer textarea {
  display: block;
  grid-column: 2;
  width: 100%;
  min-height: 24px;
  max-height: 148px;
  padding: 0;
  resize: none;
  overflow-y: auto;
  color: var(--text);
  background: none;
  border: 0;
  outline: 0;
  font-size: 16px;
  line-height: 24px;
}

.remote-composer textarea::placeholder { color: var(--muted); }

.remote-composer-tool,
.remote-dictation-button,
.remote-send-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.remote-composer-tool,
.remote-dictation-button {
  color: var(--muted);
  background: transparent;
}

.remote-composer-tool:disabled,
.remote-dictation-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.remote-composer-actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  gap: 3px;
}

.remote-send-button {
  color: var(--button-text);
  background: var(--button);
}

.remote-send-icon,
.remote-stop-icon {
  display: none;
}

.remote-send-button:not(.is-voice-launcher):not(.is-streaming) .remote-voice-icon,
.remote-send-button.is-streaming .remote-voice-icon {
  display: none;
}

.remote-send-button:not(.is-voice-launcher):not(.is-streaming) .remote-send-icon,
.remote-send-button.is-streaming .remote-stop-icon {
  display: block;
}

.remote-dictation-stage[hidden] {
  display: none !important;
}

.remote-dictation-stage {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: 36px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 8px;
}

.remote-composer.is-dictating {
  min-height: 58px;
  grid-template-columns: minmax(0, 1fr);
  padding: 7px 8px;
}

.remote-composer.is-dictating > :not(.remote-dictation-stage) {
  display: none !important;
}

.remote-dictation-stop,
.remote-dictation-send {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.remote-dictation-stop {
  color: #f7f7f5;
  background: #252527;
}

.remote-dictation-send {
  color: #050505;
  background: #f7f7f5;
}

:root[data-theme='light'] .remote-dictation-stop {
  color: #fff;
  background: #29292b;
}

:root[data-theme='light'] .remote-dictation-send {
  color: #fff;
  background: #000;
}

.remote-dictation-stop:disabled,
.remote-dictation-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.remote-dictation-waveform {
  display: block;
  width: 100%;
  height: 34px;
  min-width: 0;
  color: #d0d0d2;
  pointer-events: none;
}

:root[data-theme='light'] .remote-dictation-waveform {
  color: #59595e;
}

.remote-dictation-timer {
  min-width: 34px;
  color: #a5a5aa;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: right;
}

:root[data-theme='light'] .remote-dictation-timer {
  color: #6d6d72;
}

.remote-composer [hidden], [hidden] { display: none !important; }

:root[data-remote-mode='genie'] .remote-header > [data-back-to-chat] {
  display: none !important;
}

.workspace-drawer {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: min(760px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(22px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.workspace-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 12px;
}

.workspace-header-spacer {
  width: 52px;
  height: 52px;
}

.workspace-header > div {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.workspace-actions {
  margin-top: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
}

.workspace-new,
.workspace-search {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  border: 1px solid var(--composer-pill-border);
  border-radius: 19px;
  background: var(--composer-pill-fill);
  box-shadow: none;
  backdrop-filter: var(--composer-pill-filter);
  -webkit-backdrop-filter: var(--composer-pill-filter);
}

.workspace-new {
  justify-content: flex-start;
  padding: 0 16px;
  cursor: pointer;
}

.workspace-new:disabled {
  opacity: .45;
  cursor: wait;
}

.workspace-search { padding: 0 16px; }

.workspace-search input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
}

.workspace-search input::placeholder { color: var(--muted); }

.workspace-nav {
  min-height: 0;
  padding: 22px 0 100px;
  overflow: auto;
  overscroll-behavior: contain;
}

.workspace-nav section + section { margin-top: 30px; }

.workspace-nav h2 {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.workspace-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.workspace-section-title span {
  color: var(--muted);
  font-size: 12px;
}

.workspace-list { display: grid; }

.workspace-session {
  width: 100%;
  min-height: 62px;
  padding: 10px 2px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.workspace-session > svg { color: var(--muted); }

.workspace-session > span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.workspace-session strong,
.workspace-session small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-session strong {
  font-size: 15px;
  font-weight: 590;
}

.workspace-session small {
  color: var(--muted);
  font-size: 12px;
}

.workspace-session em {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent), transparent 25%);
}

.workspace-session.current strong { font-weight: 760; }

.workspace-empty {
  margin: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.workspace-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.workspace-links button {
  min-height: 58px;
  padding: 0 2px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.workspace-links small { color: var(--muted); }

.workspace-panel {
  position: absolute;
  z-index: 2;
  inset: max(22px, env(safe-area-inset-top)) 24px max(22px, env(safe-area-inset-bottom));
  overflow: auto;
  background: var(--bg);
}

.workspace-panel > header {
  min-height: 62px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  text-align: center;
}

.workspace-panel > header button {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.workspace-panel [data-panel-content] {
  padding: 22px 0 80px;
}

.panel-empty {
  min-height: 48vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.panel-empty strong { color: var(--text); font-size: 20px; }

.panel-list { display: grid; }

.panel-item {
  min-height: 68px;
  padding: 12px 2px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.panel-item-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--button-text);
  background: var(--button);
}

.panel-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.panel-item strong,
.panel-item small {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-item small { color: var(--muted); }

@media (min-width: 760px) {
  .remote-app { padding-inline: 38px; }
  body:not(.remote-conversation-open) .remote-session { min-height: calc(100dvh - 40px); }
  .workspace-drawer { border-inline: 1px solid var(--line); }
}

@media (max-width: 520px) {
  .remote-app {
    padding-inline: 16px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .remote-header {
    min-height: 68px;
    grid-template-columns: 48px 1fr 48px;
    gap: 8px;
  }

  body.remote-conversation-open .remote-header {
    right: 16px;
    left: 16px;
  }

  .workspace-header {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .workspace-header-spacer { width: 48px; height: 48px; }

  .remote-header .icon-button,
  .remote-header-spacer,
  .remote-wake-toggle {
    width: 48px;
    height: 48px;
  }

  .remote-genie-orb {
    width: clamp(132px, 38vw, 176px);
    height: clamp(132px, 38vw, 176px);
  }

  :root[data-remote-mode='genie'] body.remote-conversation-open .remote-header,
  :root[data-remote-mode='genie'] .remote-header {
    right: auto;
    left: 50%;
    width: 100%;
    min-height: 68px;
    padding-inline: 16px;
    grid-template-columns: 48px 1fr 48px;
    transform: translateX(-50%);
  }

  .remote-messages {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body.remote-conversation-open .remote-messages {
    padding-top: 102px;
    padding-bottom: calc(124px + env(safe-area-inset-bottom));
    scroll-padding-top: 102px;
    scroll-padding-bottom: calc(124px + env(safe-area-inset-bottom));
  }

  body.remote-conversation-open.remote-wake-active .remote-messages {
    padding-bottom: calc(190px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(190px + env(safe-area-inset-bottom));
  }

  .remote-prompt {
    margin-bottom: 8px;
    padding: 13px;
  }

  .remote-composer {
    width: 100%;
    min-height: 56px;
    padding: 7px 8px;
  }

  .workspace-actions { grid-template-columns: 1fr; }
  .workspace-new { justify-content: flex-start; }
}

@media (max-height: 640px) {
  .remote-genie-intro {
    top: max(108px, calc(env(safe-area-inset-top) + 94px));
  }

  .remote-genie-suggestions { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .remote-genie-intro {
    top: max(94px, calc(env(safe-area-inset-top) + 76px));
    right: 52%;
    left: max(28px, calc(env(safe-area-inset-left) + 18px));
    text-align: left;
  }

  .remote-genie-intro h1 {
    font-size: clamp(32px, 6vw, 42px);
  }

  .remote-genie-intro p {
    max-width: 390px;
    margin: 0;
    font-size: clamp(13px, 2vw, 16px);
  }

  .remote-genie-orb,
  .remote-header-spacer.remote-genie-orb {
    top: 55%;
    left: 75%;
    width: clamp(108px, 34vh, 140px);
    height: clamp(108px, 34vh, 140px);
  }

  .remote-genie-privacy-tip {
    top: auto;
    right: 52%;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(28px, calc(env(safe-area-inset-left) + 18px));
    max-width: 390px;
    margin: 0;
    text-align: left;
  }

  .remote-genie-privacy-tip p {
    font-size: 12px;
  }

  body.remote-wake-active .remote-genie-orb {
    top: 52%;
    left: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .remote-spinner,
  .work-disclosure.pending .work-label,
  .work-tool-icon::before,
  .wake-state-icon,
  .remote-genie-orb,
  .benaiah-orb-surface { animation: none !important; }
}
