:root {
  color-scheme: dark;
}
.desktop-client .fm-studio-sidebar,
.desktop-client .fm-product-head,
.desktop-client .fm-studio-mobile {
  display: none !important;
}
.desktop-client.fm-studio-page > main {
  width: auto !important;
  max-width: 1240px !important;
  min-height: 100vh !important;
  margin: 0 auto !important;
  padding: 26px 28px 40px !important;
}
.desktop-client .fm-studio-credit {
  top: 18px !important;
  right: 70px !important;
}
.desktop-client .fm-account {
  top: 21px !important;
  right: 18px !important;
}
.desktop-client .pro-shell {
  padding-top: 22px;
}
.desktop-client .pro-head {
  padding-right: 210px;
}
.desktop-client .pro-head h1 {
  font-size: 34px;
}
.desktop-client .pro-grid {
  grid-template-columns: minmax(350px, 410px) minmax(420px, 1fr);
}
@media (max-width: 850px) {
  .desktop-client .pro-head { padding-right: 0; padding-top: 58px; }
  .desktop-client .pro-grid { grid-template-columns: 1fr; }
}
body {
  background: #0b0d11;
}
.pro-desktop-download{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding:10px 14px;border:1px solid #3c5fca;border-radius:8px;background:#183aa4;color:#fff;font:700 9px "JetBrains Mono",monospace;letter-spacing:.06em;text-decoration:none}
.desktop-client .pro-desktop-download{display:none}
.pro-shell {
  max-width: 1400px;
  margin: auto;
  padding: 40px;
}
.pro-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
}
.pro-head h1 {
  margin: 6px 0;
  font-size: 44px;
}
.pro-head p,
.pro-controls p {
  color: #8d96a5;
}
.pro-balance {
  padding: 16px 22px;
  border: 1px solid #303641;
  border-radius: 15px;
  background: #15191f;
}
.pro-balance small,
.pro-balance span,
.state span {
  display: block;
  color: #8490a2;
}
.pro-balance b {
  font-size: 25px;
}
.pro-balance em {
  color: #8996aa;
  font: 600 10px/1.3 Manrope, sans-serif;
  font-style: normal;
}
.pro-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 18px;
}
.pro-controls,
.pro-live {
  padding: 25px;
  border: 1px solid #292f39;
  border-radius: 22px;
  background: #15181e;
}
.pro-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pro-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid #343b47;
  border-radius: 11px;
  background: #0c0f14;
}
.pro-mode button {
  min-height: 36px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #8d96a5;
  font: 10px "JetBrains Mono", monospace;
}
.pro-mode button.selected {
  background: #294c91;
  color: #fff;
}
.mode-panel[hidden] {
  display: none;
}
.mode-panel {
  display: grid;
  gap: 15px;
}
.mode-panel textarea {
  min-height: 140px;
  resize: vertical;
  padding: 13px;
  border: 1px solid #343b47;
  border-radius: 10px;
  background: #0c0f14;
  color: #fff;
  font: inherit;
}
.text-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.speed-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
}
.speed-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: #6d91ff;
}
.speed-control output {
  color: #f2b84b;
  font: 12px "JetBrains Mono", monospace;
}
.text-actions button {
  min-height: 44px;
}
.phrase-toggle {
  min-height: 40px;
}
.saved-phrases {
  display: grid;
  gap: 8px;
  padding-top: 13px;
  border-top: 1px solid #292f39;
}
.saved-phrases[hidden] {
  display: none !important;
}
.saved-phrases > small {
  color: #8490a2;
  font-size: 9px;
}
#savedPhrases {
  display: grid;
  gap: 6px;
  max-height: 300px;
  overflow: auto;
}
#savedPhrases > span {
  color: #8490a2;
  font-size: 12px;
}
.saved-phrase {
  padding: 9px 10px;
  border: 1px solid #394252;
  border-radius: 8px;
  background: #11151c;
  color: #d9e0ec;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.saved-phrase:hover {
  border-color: #6d91ff;
}
.pro-controls label {
  display: grid;
  gap: 7px;
}
.pro-controls select {
  width: 100%;
  padding: 13px;
  border: 1px solid #343b47;
  border-radius: 10px;
  background: #0c0f14;
  color: #fff;
}
.pro-controls button {
  min-height: 46px;
  border-radius: 10px;
  cursor: pointer;
}
.pro-more-wrap { position: relative; display: grid; gap: 10px; }
.pro-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px !important;
  border-color: #2b313a;
  border-radius: 0 !important;
  background: #11151c;
  color: #9ca8ba;
  font: 800 9px "JetBrains Mono", monospace;
  letter-spacing: .12em;
}
.pro-more-button i { font-size: 19px; }
.pro-more-button[aria-expanded="true"] { border-color: #535d6b; background: #161b22; color: #fff; }
.pro-more-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 9px);
  z-index: 30;
  width: min(100%, 390px);
  padding: 12px;
  border: 1px solid #303640;
  border-radius: 0;
  background: #11151c;
  box-shadow: 0 8px 18px rgba(0,0,0,.3);
}
.pro-more-menu[hidden],.recording-indicator[hidden] { display: none !important; }
.pro-more-heading { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 10px; }
.pro-more-heading span { color: #7f8ca0; font: 800 9px "JetBrains Mono",monospace; letter-spacing: .13em; }
.pro-more-heading button { display: grid; place-items: center; min-height: 30px; width: 30px; border: 0; border-radius: 0; background: transparent; color: #818da0; }
.pro-menu-action {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 6px;
  padding: 12px;
  border: 1px solid #292f38;
  border-radius: 0;
  background: #11151c;
  color: #e5eaf1;
  text-align: left;
}
.pro-menu-action > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; background: #191e26; color: #aab4c2; font-size: 18px; }
.pro-menu-action > span { display: grid; gap: 4px; }
.pro-menu-action b { font-size: 12px; }
.pro-menu-action small { color: #7e8a9d; font-size: 10px; }
.pro-menu-action:hover:not(:disabled) { border-color: #596473; background: #171c23; }
.pro-menu-action.recording { border-color: #8a4651; background: #181417; }
.pro-menu-action.recording > i { background: #26191d; color: #e88b9a; }
.pro-menu-action:disabled { opacity: .42; cursor: not-allowed; }
.pro-menu-action.needs-session { animation: record-attention .35s ease 2; border-color: #a66b36; }
.recording-feedback {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 9px 10px;
  border-left: 2px solid #4f5967;
  background: #11151c;
  color: #8490a1;
  font-size: 10px;
  line-height: 1.45;
}
.recording-feedback i { margin-top: 1px; }
.recording-feedback.active { border-color: #d75067; color: #efb0ba; }
.recording-feedback.ready { border-color: #3a9a70; color: #9ed8bd; }
.recording-feedback.warning { border-color: #aa743c; color: #d8b78e; }
@keyframes record-attention { 50% { transform: translateX(4px); } }
.pro-more-menu > p { margin: 11px 5px 2px; color: #687487; font-size: 9px; line-height: 1.5; }
.recording-indicator { display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #633a42; border-radius: 0; background: #151215; color: #e9a3ae; font: 800 9px "JetBrains Mono",monospace; letter-spacing: .08em; }
.recording-indicator i { width: 9px; height: 9px; border-radius: 50%; background: #ff536f; box-shadow: 0 0 0 5px rgba(255,83,111,.12); animation: recording-pulse 1.2s infinite; }
.recording-indicator time { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
@keyframes recording-pulse { 50% { opacity: .45; } }
.pause-listening {
  width: 100%;
  min-height: 72px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid #28795b !important;
  background: linear-gradient(135deg, #173a30, #11251f) !important;
  color: #eafff7 !important;
  box-shadow: 0 12px 30px #0004;
}
.pause-listening i {
  font-size: 28px;
}
.pause-listening span {
  display: grid;
  gap: 3px;
  text-align: left;
}
.pause-listening b {
  font-size: 13px;
  letter-spacing: 0.04em;
}
.pause-listening small {
  color: #8dddbf;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.pause-listening.paused {
  border-color: #9d4051 !important;
  background: linear-gradient(135deg, #481e27, #281319) !important;
  color: #fff1f3 !important;
}
.pause-listening.paused small {
  color: #f4a4b2;
}
.pause-listening:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.pause-listening:active {
  transform: translateY(0);
}
@media (max-width: 600px) {
  .pause-listening {
    min-height: 82px !important;
  }
  .pause-listening i {
    font-size: 32px;
  }
}
.secondary {
  border: 1px solid #394252;
  background: #11151c;
  color: #d9e0ec;
}
.state {
  display: flex;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #292f39;
}
.state > i {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: #8791a0;
}
.state > i.live {
  background: #55e39f;
  box-shadow: 0 0 15px #55e39f;
}
.pro-live {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #16254c, #101319 55%);
}
.orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 180px;
  height: 180px;
  border: 1px solid #4667b2;
  border-radius: 50%;
  background: #0b1020;
  box-shadow: 0 0 80px #164bff33;
}
.orb i {
  font-size: 55px;
  color: #6d91ff;
}
.orb.active {
  animation: pulse 1.3s infinite;
}
.meter {
  width: min(500px, 80%);
  height: 7px;
  margin: 25px;
  border-radius: 8px;
  background: #262d39;
  overflow: hidden;
}
.meter i {
  display: block;
  width: 0;
  height: 100%;
  background: #4d79ff;
}
.network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: #8490a2;
  font: 10px "JetBrains Mono", monospace;
}
.live-translation {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #33405a;
  border-radius: 12px;
  background: linear-gradient(135deg, #101827, #0b111c);
}
.translation-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 11px;
}
.translation-heading > span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #405170; border-radius: 10px; color: #7d9cff; background: #111c2d; }
.translation-heading > div { display: grid; gap: 3px; }
.translation-heading > div > b { color: #e7ecf5; font-size: 11px; letter-spacing: .06em; }
.translation-heading small { color: #8794a8; font-size: 9px; line-height: 1.4; }
.translation-switch { display: flex !important; flex-direction: row !important; align-items: center; gap: 7px !important; cursor: pointer; }
.translation-switch input { position: absolute; opacity: 0; }
.translation-switch span { position: relative; width: 40px; height: 22px; border: 1px solid #465267; border-radius: 20px; background: #252e3b; transition: .2s; }
.translation-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #9aa5b5; transition: .2s; }
.translation-switch input:checked + span { border-color: #557cff; background: #315fff; }
.translation-switch input:checked + span::after { left: 21px; background: #fff; }
.translation-switch > b { min-width: 24px; color: #93a0b3; font-size: 9px; }
.translation-switch input:checked ~ b { color: #7d9cff; }
.live-translation > p { margin: -2px 0 0; color: #8390a2; font-size: 10px; line-height: 1.5; }
.network-status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8791a0;
}
.network-status b {
  color: #d9e0ec;
  font-weight: 500;
}
.network-status.good i {
  background: #55e39f;
  box-shadow: 0 0 10px #55e39f;
}
.network-status.fair i {
  background: #f0bf62;
}
.network-status.poor i {
  background: #ed7183;
}
.call-assist-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.call-assist-controls button {
  min-height: 40px;
}
.listen-call {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  padding: 10px 14px;
  border-color: #3d4d68;
  background: #111a27;
}
.listen-call > i { font-size: 20px; color: #7c9cff; }
.listen-call > span { display: grid; gap: 2px; text-align: left; }
.listen-call b { font-size: 11px; }
.listen-call small { color: #7f8b9d; font-size: 8px; letter-spacing: .1em; }
.listen-call.listening { border-color: #d75968; background: #351920; color: #fff; }
.listen-call.listening > i { color: #ff8290; }
.auto-reply {
  display: inline-flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 7px !important;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid #3c4656;
  border-radius: 10px;
  background: #11161e;
  color: #f2b84b;
  font-size: 10px;
}
.auto-reply > span { display: grid; gap: 2px; }
.auto-reply b { font-size: 10px; }
.auto-reply small { color: #808b9a; font-size: 8px; }
.auto-reply input {
  accent-color: #f2b84b;
}
.assist-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid #283345; }
.assist-head span { display: flex; align-items: center; gap: 7px; color: #e4e9f2; font-size: 10px; font-weight: 800; }
.assist-head span i { width: 7px; height: 7px; border-radius: 50%; background: #55e39f; box-shadow: 0 0 10px #55e39f; }
.assist-head small { color: #55e39f; font-size: 8px; letter-spacing: .12em; }
.call-assist-panel {
  display: grid;
  gap: 8px;
  width: min(700px, 95%);
  margin-top: 15px;
  padding: 13px;
  border: 1px solid #34405a;
  border-radius: 12px;
  background: #0b0e14;
  text-align: left;
}
.call-assist-panel[hidden] {
  display: none !important;
}
.call-assist-panel > small {
  color: #8490a2;
  font: 9px "JetBrains Mono", monospace;
}
#callerTranscript {
  min-height: 42px;
  color: #d9e0ec;
  font-size: 13px;
}

.auto-reply[hidden] {
  display: none !important;
}

.personality-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #36445f;
  border-radius: 14px;
  background: linear-gradient(145deg, #182131, #111720 72%);
  box-shadow: 0 14px 32px #0003;
}

.personality-panel::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #f2b84b, transparent);
  content: "";
}

.personality-panel[hidden] {
  display: none !important;
}

.personality-heading,
.personality-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.personality-heading small {
  color: #f2b84b;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.personality-heading h2 {
  margin: 3px 0 0;
  color: #f5f7fb;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.personality-heading button {
  min-height: 34px !important;
  padding: 0 11px;
  font-size: 10px;
}

.personality-summary {
  margin: 0;
  color: #9ca8b8;
  font-size: 12px;
  line-height: 1.45;
}

.personality-form {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #34405a;
}

.personality-form label {
  color: #aeb9c9;
  font: 9px "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
}

.personality-form input,
.personality-form textarea {
  box-sizing: border-box;
  margin-top: 7px;
  padding: 11px 12px;
  border: 1px solid #354157;
  border-radius: 9px;
  background: #0c1119;
  color: #f4f7fb;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0;
}

.personality-form textarea {
  min-height: 78px;
  resize: vertical;
}

.personality-form[hidden] {
  display: none !important;
}

.personality-form textarea,
.personality-form input,
.personality-panel select {
  width: 100%;
}
#replySuggestions {
  display: grid;
  gap: 6px;
}
#replySuggestions > span {
  color: #8490a2;
  font-size: 12px;
}
.suggestion-loading { display: flex; align-items: center; gap: 8px; }
.suggestion-loading i { width: 12px; height: 12px; border: 2px solid #41506a; border-top-color: #7b9cff; border-radius: 50%; animation: suggestionSpin .7s linear infinite; }
@keyframes suggestionSpin { to { transform: rotate(360deg); } }
.reply-suggestion {
  padding: 9px 10px;
  border: 1px solid #394252;
  border-radius: 8px;
  background: #11151c;
  color: #d9e0ec;
  text-align: left;
  cursor: pointer;
}
.reply-suggestion:hover {
  border-color: #6d91ff;
}
.transcript {
  width: min(700px, 90%);
  max-height: 190px;
  overflow: auto;
  padding: 18px;
  border: 1px solid #2d3541;
  border-radius: 14px;
  background: #0b0e14;
}
.transcript b {
  display: block;
  margin: 8px 0;
}
.transcript .final {
  color: #8eb0ff;
}
@keyframes pulse {
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 110px #2760ff66;
  }
}
@media (max-width: 850px) {
  .pro-shell {
    padding: 20px;
  }
  .pro-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .pro-grid {
    grid-template-columns: 1fr;
  }
  .pro-live {
    min-height: 420px;
  }
  .pro-controls {
    order: 2;
  }
}
@media (max-width: 560px) {
  .call-assist-controls { display: grid; grid-template-columns: 1fr; width: 100%; }
  .listen-call,.auto-reply,.call-assist-panel { width: 100%; max-width: none; }
  .listen-call { justify-content: center; }
}
body.ai-activity-breathing::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  border: 3px solid #5276ff;
  box-shadow: inset 0 0 18px rgba(82, 118, 255, 0.42), 0 0 22px rgba(82, 118, 255, 0.48);
  animation: fullmask-activity-breathe 1.8s ease-in-out infinite;
}

@keyframes fullmask-activity-breathe {
  0%, 100% { border-color: #5276ff; box-shadow: inset 0 0 12px rgba(82, 118, 255, .3), 0 0 14px rgba(82, 118, 255, .38); opacity: .58; }
  34% { border-color: #a65cff; box-shadow: inset 0 0 28px rgba(166, 92, 255, .5), 0 0 32px rgba(166, 92, 255, .58); opacity: 1; }
  67% { border-color: #2fd7b1; box-shadow: inset 0 0 21px rgba(47, 215, 177, .42), 0 0 26px rgba(47, 215, 177, .5); opacity: .82; }
}

@media (prefers-reduced-motion: reduce) {
  body.ai-activity-breathing::after { animation: none; border-color: #6f8cff; }
}
