.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  height: calc(48px + env(safe-area-inset-top));
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 25;
  transition: opacity 180ms ease;
  
}

.mobile-header__btn {
  width: 24px;
  height: 24px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.mobile-header__btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-header__center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: max-content;
}

.mobile-header__pill {
  height: 32px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid var(--nx-border-primary, #1B1B1B);
  background: #f8fafc00;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  color: var(--nx-text-primary, #1B1B1B);
}

.mobile-header--hidden {
  opacity: 0;
}

.mobile-assistant-sheet[hidden] {
  display: none;
}

.mobile-assistant-sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
}

.mobile-assistant-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 26, 29, 0.38);
}

.mobile-assistant-sheet__panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  padding: 16px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-assistant-sheet.is-open .mobile-assistant-sheet__panel {
  transform: translateY(0);
  opacity: 1;
}

.mobile-assistant-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-assistant-sheet__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1b1b1b;
}

.mobile-assistant-sheet__mode-note {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7280;
}

.mobile-assistant-sheet__close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.mobile-assistant-sheet__close img {
  width: 18px;
  height: 18px;
  display: block;
}

.mobile-assistant-sheet__voice {
  margin-top: 12px;
}

.mobile-assistant-sheet__helper {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
}

.mobile-assistant-sheet__mic {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  border: 1px solid #1b1b1b;
  background: #1b1b1b;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-assistant-sheet__mic.is-listening {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.mobile-assistant-sheet__text-toggle {
  margin-top: 10px;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #1b1b1b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-assistant-sheet__loading {
  margin-top: 12px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

.mobile-assistant-sheet__text-fallback {
  margin-top: 10px;
}

.mobile-assistant-sheet__form {
  display: flex;
  gap: 8px;
}

.mobile-assistant-sheet__input {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0 12px;
  font-size: 14px;
  color: #1b1b1b;
  background: #fff;
  outline: none;
}

.mobile-assistant-sheet__send {
  height: 44px;
  padding: 0 14px;
  border: none;
  border-radius: 12px;
  background: #1b1b1b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.mobile-assistant-sheet__transcript {
  margin-top: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
}

.mobile-assistant-sheet__preview {
  margin-top: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  padding: 10px;
}

.mobile-assistant-sheet__preview-label {
  font-size: 12px;
  color: #6b7280;
}

.mobile-assistant-sheet__preview-text {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: #1b1b1b;
}

.mobile-assistant-sheet__actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-assistant-sheet__confirm,
.mobile-assistant-sheet__cancel {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-assistant-sheet__confirm {
  background: #1b1b1b;
  border-color: #1b1b1b;
  color: #fff;
}

.mobile-assistant-sheet__cancel {
  background: #fff;
  color: #1b1b1b;
}

.mobile-assistant-sheet__error {
  margin-top: 12px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  padding: 10px;
}

.mobile-assistant-sheet__error-text {
  margin: 0;
  font-size: 13px;
  color: #b42318;
}

.mobile-assistant-sheet__error-suggestions {
  margin-top: 8px;
}

.mobile-assistant-sheet__error-suggestions-title {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.mobile-assistant-sheet__error-suggestions-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.mobile-assistant-sheet__error-suggestion {
  margin: 4px 0;
  font-size: 13px;
  color: #1b1b1b;
}

.mobile-assistant-sheet__retry {
  margin-top: 8px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #1b1b1b;
  background: #1b1b1b;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-assistant-sheet button:disabled,
.mobile-assistant-sheet input:disabled {
  opacity: 0.6;
  cursor: default;
}

.mobile-assistant-sheet button {
  -webkit-tap-highlight-color: transparent;
}

.mobile-assistant-sheet button:focus,
.mobile-assistant-sheet button:focus-visible {
  outline: none;
  box-shadow: none;
}

/* @media (min-width: 1023px) {
  .mobile-header {
    display: none;
  }
} */ 
