:root {
  --ink: #1f3038;
  --muted: #8b969b;
  --green: #0b8b75;
  --green-dark: #067361;
  --green-light: #e9f5f1;
  --line: #e8edeb;
  --surface: #fff;
  --bg: #f5f7f8;
  --shadow: 0 4px 24px #1b443705;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
summary,
label.upload-zone {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
textarea,
input,
select {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #55aa95;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #b5dcd0;
  border-color: var(--green) !important;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 234px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 31px 19px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: 2px;
  padding: 0 10px 36px;
}
.brand-mark {
  background: var(--green);
  color: white;
  border-radius: 13px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  box-shadow: 0 5px 12px #0b8b7522;
}
.brand-mark svg {
  width: 28px;
  height: 28px;
}
.brand-en {
  display: block;
  font-size: 9px;
  letter-spacing: 2.1px;
  color: #7c9690;
  margin-top: -3px;
}
.workspace-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #98a39f;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 0 12px 14px;
}
.tag {
  font-size: 9px;
  letter-spacing: 1px;
  background: #f0f6f3;
  color: #7c9b90;
  border: 1px solid #e5eeea;
  border-radius: 4px;
  padding: 2px 7px;
  font-weight: 650;
}
.tag.tiny {
  font-size: 8px;
  letter-spacing: 0.8px;
}
.nav-active {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--green-light);
  color: #11765f;
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
}
.nav-active svg {
  width: 19px;
}
.nav-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #21a082;
  margin-left: auto;
}
.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 31px 9px 12px;
  color: #8b9691;
  font-size: 11px;
}
.account-heading b {
  background: #f2f4f3;
  border-radius: 4px;
  padding: 0 5px;
  color: #809087;
  margin-left: 4px;
  font-size: 10px;
}
.icon-button {
  border: 0;
  background: none;
  padding: 5px;
  color: #8a9992;
  display: grid;
  place-items: center;
  border-radius: 5px;
}
.icon-button:hover {
  background: #f1f5f3;
  color: var(--green);
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.account-list {
  max-height: calc(100vh - 430px);
  overflow: auto;
  margin: 0 -2px;
}
.account-item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 9px;
  padding: 11px 10px;
  text-align: left;
  margin: 3px 0;
  color: var(--ink);
}
.account-item:hover {
  background: #f7f9f8;
}
.account-item.selected {
  background: #f2f8f5;
  border-color: #e0eee7;
}
.account-item .avatar {
  width: 33px;
  height: 33px;
  font-size: 13px;
  border-radius: 10px;
}
.account-item .account-text {
  min-width: 0;
  flex: 1;
}
.account-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-item small {
  font-size: 10px;
  color: var(--muted);
}
.account-item .status-dot {
  width: 5px;
  height: 5px;
}
.avatar {
  background: #e9f3ef;
  color: #508c78;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
}
.avatar.neutral {
  background: #f0f5f3;
  color: #8ba497;
}
.avatar svg {
  width: 20px;
}
.add-account-wide {
  border: 1px dashed #d7e2dc;
  color: #779788;
  background: transparent;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  align-items: center;
  margin: 16px 5px;
  padding: 9px;
  font-size: 11px;
}
.add-account-wide svg {
  width: 14px;
  height: 14px;
}
.add-account-wide:hover {
  border-color: var(--green);
  color: var(--green);
  background: #f8fbf9;
}
.empty-accounts {
  padding: 20px 12px 5px;
  color: #b0bbb5;
  text-align: center;
  font-size: 11px;
}
.sidebar-bottom {
  margin-top: auto;
}
.isolation-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: linear-gradient(120deg, #f1f7f3, #f7f9f7);
  padding: 13px 11px;
  border: 1px solid #eaf0eb;
  border-radius: 9px;
  margin: 20px 0 18px;
}
.isolation-icon {
  width: 19px;
  height: 21px;
  border: 1px solid #a5c7b7;
  border-radius: 5px 5px 9px 9px;
  display: grid;
  place-items: center;
  color: #6f9f88;
  font-size: 12px;
  line-height: 1.5;
}
.isolation-card strong {
  font-size: 10px;
  font-weight: 600;
  color: #62816e;
}
.isolation-card p {
  font-size: 9px;
  color: #9aad9f;
  margin: 3px 0 0;
}
.sidebar-setting {
  background: none;
  border: 0;
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 6px 8px;
  color: #819087;
  font-size: 11px;
  width: 100%;
}
.sidebar-setting svg {
  width: 16px;
}
.sidebar-setting .small {
  width: 12px;
  margin-left: auto;
}
.local-status {
  margin: 19px -19px 0;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9da7a1;
  display: flex;
  gap: 7px;
  align-items: center;
}
.local-status > span:last-child {
  margin-left: auto;
  font-size: 9px;
  color: #b4bdb7;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42ad87;
  flex-shrink: 0;
}
.status-dot.muted {
  background: #c1c9c5;
}
.main-shell {
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  background: #ffffffb8;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 11px;
  color: #a0a9a7;
}
.breadcrumb span {
  margin: 0 11px;
  color: #cbd2cf;
}
.breadcrumb strong {
  font-weight: 500;
  color: #687c73;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.deployment {
  font-size: 10px;
  color: #8a9a92;
  display: flex;
  align-items: center;
  gap: 6px;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 550;
  font-size: 12px;
  line-height: 1.5;
  white-space: nowrap;
  transition: background 0.15s;
}
.button svg {
  width: 16px;
  height: 16px;
}
.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 3px #086c5910;
}
.button.primary:hover {
  background: var(--green-dark);
}
.button.secondary {
  background: #fff;
  border-color: #dfe7e3;
  color: #62786c;
}
.button.secondary:hover {
  background: #f6faf7;
}
.button.danger {
  color: #fff;
  background: #be5c55;
}
.small-button {
  padding: 8px 12px;
  font-size: 11px;
}
.text-button {
  border: 0;
  background: none;
  color: #6b8c7c;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}
.text-button:hover {
  color: var(--green);
}
.text-button svg {
  width: 13px;
  height: 13px;
}
main {
  padding: 30px 32px 0;
  max-width: 1900px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: #8aa397;
  font-weight: 650;
}
.page-heading h1 {
  font-weight: 650;
  font-size: 25px;
  letter-spacing: 0.6px;
  margin: 6px 0 5px;
  line-height: 1.5;
}
.page-heading p {
  font-size: 11px;
  color: #93a098;
  margin: 0;
}
.ai-status {
  display: flex;
  gap: 7px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  font-size: 10px;
  color: #8c9d92;
}
.ai-status svg {
  width: 14px;
  height: 14px;
}
.ai-status.ready {
  color: var(--green);
  background: #edf7f2;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 20px;
  align-items: start;
}
.conversation-panel,
.translation-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.panel-header {
  height: 79px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.account-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
.account-identity > div {
  min-width: 0;
}
.account-identity h2 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.subtle {
  font-size: 10px;
  color: #a0aca5;
}
.session-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.menu-trigger {
  list-style: none;
  color: #90a197;
  font-size: 21px;
  line-height: 1;
  padding: 2px 5px;
  cursor: pointer;
}
.menu-trigger::-webkit-details-marker {
  display: none;
}
details {
  position: relative;
}
.dropdown {
  position: absolute;
  right: 0;
  top: 28px;
  z-index: 3;
  min-width: 130px;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 5px 20px #23452f12;
}
.dropdown button {
  border: 0;
  background: transparent;
  display: block;
  padding: 8px 12px;
  text-align: left;
  width: 100%;
  font-size: 11px;
  color: #698071;
}
.dropdown button:hover {
  background: #f5f8f6;
}
.danger-text {
  color: #b66b64 !important;
}
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 615px;
  padding: 32px 24px 29px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 30%, #f6fbf8, white 65%);
}
.welcome-art {
  height: 190px;
  width: 300px;
  position: relative;
  margin: 4px 0 18px;
}
.orbit {
  position: absolute;
  border: 1px solid #deede6;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.orbit-one {
  width: 185px;
  height: 185px;
}
.orbit-two {
  width: 245px;
  height: 142px;
  transform: translate(-50%, -50%) rotate(-24deg);
  border-style: dashed;
  border-color: #e3eee8;
}
.art-globe {
  position: absolute;
  left: 98px;
  top: 43px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dff0e7, #edf7ef);
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 8px #ffffff77,
    0 12px 30px #5b9c7820;
}
.art-globe svg {
  width: 61px;
  height: 61px;
  stroke: #6fa98c;
  stroke-width: 0.8;
}
.art-bubble {
  position: absolute;
  background: white;
  border: 1px solid #e4eee7;
  border-radius: 12px 12px 12px 3px;
  box-shadow: 0 8px 22px #5b937d12;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 550;
  color: #5a9278;
  line-height: 1.5;
  transform: rotate(-7deg);
}
.art-bubble span {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #acbfb2;
  letter-spacing: 0.3px;
}
.bubble-left {
  left: 18px;
  top: 33px;
}
.bubble-right {
  right: 14px;
  bottom: 21px;
  transform: rotate(7deg);
  border-radius: 12px 12px 3px 12px;
  padding: 8px 19px;
  color: #62928b;
}
.art-spark {
  position: absolute;
  right: 32px;
  top: 9px;
  font-size: 31px;
  color: #a6c8b5;
}
.art-dot {
  position: absolute;
  bottom: 18px;
  left: 65px;
  width: 7px;
  height: 7px;
  background: #d1dfb1;
  border-radius: 50%;
  box-shadow: 177px -111px 0 -1px #c2dcca;
}
.welcome-kicker {
  color: #a7b9ad;
  letter-spacing: 1.5px;
  font-size: 8px;
}
.welcome h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: 0.5px;
  margin: 10px 0 11px;
  color: #345544;
}
.welcome > p {
  font-size: 11px;
  color: #99a99c;
  line-height: 2;
  margin: 0 0 25px;
}
.welcome > .button {
  padding: 11px 21px;
  font-size: 11px;
  gap: 18px;
}
.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 530px;
  border-top: 1px solid #edf2ee;
  padding-top: 24px;
  margin-top: 42px;
}
.onboarding-steps > div + div {
  border-left: 1px solid #edf2ee;
}
.onboarding-steps span {
  display: block;
  font-size: 9px;
  color: #adc9b8;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.onboarding-steps strong {
  font-size: 10px;
  font-weight: 550;
  color: #688470;
}
.onboarding-steps p {
  font-size: 9px;
  color: #a4b3a7;
  margin: 4px 0 0;
}
.panel-bottom {
  height: 43px;
  display: flex;
  justify-content: center;
  gap: 26px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #fcfdfc;
  color: #a0b0a4;
  font-size: 9px;
}
.panel-bottom span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.panel-bottom svg {
  width: 12px;
  height: 12px;
  color: #a3bdac;
}
.viewer-area {
  background: #f8faf9;
}
.viewer-placeholder {
  min-height: 515px;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.placeholder-icon {
  width: 68px;
  height: 68px;
  background: #eaf3ed;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #8db19b;
}
.placeholder-icon svg {
  width: 33px;
  height: 33px;
}
.viewer-placeholder h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 24px 0 6px;
  color: #557360;
}
.viewer-placeholder p {
  font-size: 11px;
  color: #91a294;
  max-width: 400px;
}
.viewer-placeholder.loading .placeholder-icon {
  animation: breathe 1.5s infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
#remoteScreen {
  display: block;
  width: 100%;
  height: auto;
  cursor: default;
  background: #fff;
  outline-offset: -3px;
}
.connection-hint {
  padding: 9px 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  background: #fff;
  font-size: 9px;
  color: #9cab9f;
  border-bottom: 1px solid var(--line);
}
.connection-hint .text-button {
  margin-left: auto;
  font-size: 9px;
}
.keyboard-bar {
  padding: 9px 12px;
  display: flex;
  gap: 8px;
  background: white;
}
.keyboard-bar textarea {
  resize: vertical;
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 10px;
  min-height: 34px;
  max-height: 120px;
}
.viewer-footnote {
  font-size: 9px;
  color: #a1aea5;
  padding: 2px 16px 12px;
  margin: 0;
  line-height: 1.8;
}
.viewer-area:fullscreen {
  overflow: auto;
  background: white;
  padding: 20px;
}
.viewer-area:fullscreen #remoteScreen {
  max-height: 85vh;
  width: auto;
  margin: auto;
  max-width: 100%;
}
.translation-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 21px 20px 18px;
}
.translation-heading h2 {
  font-size: 12px;
  margin: 0;
  font-weight: 650;
}
.translation-heading p {
  font-size: 9px;
  margin: 2px 0 0;
  color: #9daa9f;
}
.translation-heading > .tag {
  margin-left: auto;
  font-size: 7px;
}
.translation-icon {
  width: 33px;
  height: 33px;
  background: #eaf5ef;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #5d9b7b;
}
.translation-icon svg {
  width: 18px;
  height: 18px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 19px;
  gap: 22px;
}
.tab {
  border: 0;
  background: none;
  color: #9ca99e;
  padding: 0 1px 12px;
  font-size: 11px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tab svg {
  width: 13px;
  height: 13px;
}
.tab.active {
  color: var(--green);
  font-weight: 600;
}
.tab.active:after {
  content: "";
  position: absolute;
  height: 2px;
  bottom: -1px;
  left: 0;
  right: 0;
  background: var(--green);
}
.language-settings {
  padding: 18px 20px 15px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.language-settings label {
  font-size: 9px;
  color: #a0ada3;
  flex: 1;
  min-width: 0;
}
.language-settings select {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 10px;
  color: #647b6b;
  border: 1px solid #e3eae5;
  border-radius: 6px;
  padding: 7px 6px;
  background: #fafcfb;
}
.language-arrow {
  color: #b7c7ba;
  margin-top: 19px;
  font-size: 14px;
}
.auto-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 20px 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #f0f3f0;
}
.auto-row strong {
  font-size: 10px;
  font-weight: 550;
  color: #68806e;
  display: block;
}
.auto-row div > span {
  font-size: 9px;
  color: #a4b1a7;
  display: block;
  margin-top: 3px;
}
.switch {
  position: relative;
  display: block;
  width: 30px;
  height: 17px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  z-index: 1;
  cursor: pointer;
}
.switch > span {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #e0e7e2;
}
.switch > span:before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: white;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  box-shadow: 0 1px 3px #0001;
  transition: transform 0.15s;
}
.switch input:checked + span {
  background: var(--green);
}
.switch input:checked + span:before {
  transform: translateX(13px);
}
.switch input:focus-visible + span {
  outline: 2px solid #69ae92;
  outline-offset: 2px;
}
.feed-heading {
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  color: #99aa9e;
  font-size: 9px;
}
.feed-heading > span:first-child {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.feed-heading > span:last-child {
  color: #bdc8bf;
  font-size: 8px;
}
.translation-feed {
  height: 230px;
  overflow: auto;
  padding: 12px 18px;
}
.feed-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #c6d5cb;
}
.feed-empty > svg {
  width: 31px;
  height: 31px;
  stroke-width: 1.1;
  margin-bottom: 14px;
  color: #c2d5c8;
}
.feed-empty strong {
  font-size: 11px;
  color: #9db4a3;
  font-weight: 500;
}
.feed-empty p {
  font-size: 9px;
  line-height: 1.9;
  color: #b4c3b9;
  margin-top: 7px;
}
.message-card {
  border: 1px solid #e9efea;
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 9px;
  background: #fdfefd;
}
.message-card.out {
  border-color: #e4efea;
  background: #f6faf7;
}
.message-card .original {
  font-size: 10px;
  color: #9cac9f;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 6px 0;
}
.message-card .translated {
  font-size: 11px;
  line-height: 1.9;
  color: #4e715c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 7px 0 0;
}
.translation-meta {
  font-size: 8px;
  color: #91ae9b;
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
}
.message-card .error {
  font-size: 10px;
  color: #b17867;
}
.manual-translator {
  border-top: 1px solid var(--line);
  padding: 15px 19px 19px;
  background: #fdfefd;
}
.manual-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.manual-heading label {
  font-size: 10px;
  color: #849b89;
}
.manual-heading select {
  font-size: 9px;
  border: 0;
  color: #7d9b87;
  background: none;
  max-width: 120px;
}
.manual-translator textarea {
  width: 100%;
  padding: 10px 11px;
  font-size: 10px;
  color: #5a7162;
  border: 1px solid #e2eae4;
  border-radius: 7px;
  resize: vertical;
  min-height: 83px;
  max-height: 250px;
  background: white;
  line-height: 1.8;
}
.manual-translator textarea::placeholder {
  color: #b1bfb5;
}
.manual-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}
.manual-footer > span {
  font-size: 8px;
  color: #b1bfb3;
}
.manual-footer .button {
  font-size: 10px;
  padding: 7px 10px;
}
.manual-footer .button svg {
  width: 12px;
  height: 12px;
}
.manual-result {
  border-top: 1px dashed #dce8df;
  margin-top: 16px;
  padding-top: 13px;
}
.manual-result > p:not(.mini-hint) {
  font-size: 12px;
  line-height: 1.9;
  color: #50735c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.result-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.result-actions .text-button:last-child {
  margin-left: auto;
}
.mini-hint {
  font-size: 9px;
  color: #a1afa3;
  margin: 10px 0 0;
}
.assistant-footer {
  padding: 12px 19px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  color: #a2b2a6;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fcfefc;
}
.assistant-footer .status-dot {
  width: 4px;
  height: 4px;
}
.voice-panel {
  padding: 0 19px 17px;
}
.voice-intro {
  text-align: center;
  padding: 24px 0 16px;
}
.wave-bars {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wave-bars i {
  width: 3px;
  height: 12px;
  border-radius: 5px;
  background: #9bc7af;
}
.wave-bars i:nth-child(2n) {
  height: 25px;
}
.wave-bars i:nth-child(3n) {
  height: 35px;
  background: #6dab89;
}
.voice-intro h3 {
  font-size: 15px;
  font-weight: 500;
  color: #648871;
  margin: 12px 0 7px;
}
.voice-intro p {
  font-size: 10px;
  color: #acbbae;
  margin: 0;
  line-height: 1.9;
}
.voice-intro strong {
  font-weight: 500;
  color: #7a9e85;
}
.upload-zone {
  border: 1px dashed #ccdcd0;
  background: #f9fcfa;
  padding: 19px 8px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.upload-zone:hover {
  background: #edf7f0;
  border-color: #91b99f;
}
.upload-zone svg {
  color: #94b6a0;
  width: 21px;
  height: 21px;
  margin-bottom: 7px;
}
.upload-zone strong {
  font-size: 10px;
  font-weight: 500;
  color: #75967e;
}
.upload-zone span {
  font-size: 8px;
  color: #b2c0b5;
  margin-top: 4px;
}
.voice-buttons {
  display: flex;
  gap: 8px;
  margin-top: 11px;
}
.voice-buttons .button {
  flex: 1;
  font-size: 9px;
  gap: 5px;
  padding: 9px 5px;
}
.voice-buttons svg {
  width: 13px;
  height: 13px;
}
.voice-note {
  font-size: 9px;
  color: #a4b2a6;
  line-height: 1.9;
  margin: 14px 0 23px;
}
.voice-panel .feed-heading {
  padding: 0;
}
.voice-feed {
  max-height: 320px;
  overflow: auto;
  margin-top: 11px;
}
.empty-note {
  font-size: 10px;
  color: #b1c0b4;
  text-align: center;
  padding: 30px 0;
}
.record-state {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff6f3;
  border: 1px solid #f3ddd3;
  border-radius: 7px;
  padding: 10px;
  margin-top: 12px;
  color: #bb8977;
  font-size: 10px;
}
.record-state .text-button {
  margin-left: auto;
  color: #b07561;
}
.record-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d87e6b;
  animation: breathe 1s infinite;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px 0 21px;
  color: #b0bdb3;
  font-size: 8px;
}
.footer-sep {
  margin: 0 9px;
  color: #cbd5ce;
}
dialog {
  border: 1px solid #e0e9e2;
  border-radius: 14px;
  padding: 29px;
  width: 460px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 30px 100px #193d2d33;
  color: var(--ink);
}
dialog::backdrop {
  background: #18372c45;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dialog-heading h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 4px 0 0;
}
.dialog-description {
  font-size: 11px;
  line-height: 1.9;
  color: #94a397;
  margin: 15px 0 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #758f7c;
  margin-bottom: 16px;
}
.field input {
  border: 1px solid #dce7df;
  border-radius: 7px;
  padding: 10px 11px;
  min-width: 0;
  width: 100%;
  color: #53705e;
  background: #fdfefd;
  font-size: 12px;
}
.field input::placeholder {
  color: #b1bfb4;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
}
.dialog-actions .mini-hint {
  margin: 0 auto 0 0;
}
.settings-dialog {
  width: 610px;
}
.settings-section-title {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #71997e;
  border-top: 1px solid #eaf0eb;
  padding-top: 17px;
  margin: 19px 0 15px;
}
.settings-section-title svg {
  width: 15px;
  height: 15px;
}
.settings-section-title span {
  font-size: 9px;
  color: #b2bfb4;
  margin-left: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.checkbox-field {
  font-size: 9px;
  color: #a6b3a9;
  display: flex;
  gap: 5px;
  align-items: center;
  margin-top: -5px;
}
.checkbox-field input {
  accent-color: var(--green);
}
.form-error {
  font-size: 11px;
  color: #bb7669;
  white-space: pre-wrap;
}
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #294d3e;
  color: #f5fff7;
  padding: 12px 23px;
  border-radius: 9px;
  box-shadow: 0 5px 25px #284b3825;
  font-size: 12px;
  z-index: 20;
  max-width: calc(100vw - 40px);
}
.toast.error-toast {
  background: #956a59;
}
.busy {
  opacity: 0.6;
  pointer-events: none;
}
.app-loading main {
  opacity: 0.5;
}
.error-banner {
  padding: 12px;
  background: #fff3ef;
  color: #aa6e5e;
  font-size: 11px;
}
@media (min-width: 1700px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 370px;
  }
  .welcome {
    min-height: 660px;
  }
  .translation-feed {
    height: 276px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 195px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .brand {
    padding-left: 4px;
  }
  .local-status {
    margin-left: -13px;
    margin-right: -13px;
    padding-left: 15px;
    padding-right: 15px;
  }
  main {
    padding: 24px 21px 0;
  }
  .topbar {
    padding: 0 21px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
  }
  .welcome {
    min-height: 615px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .welcome h2 {
    font-size: 18px;
  }
  .welcome-art {
    transform: scale(0.88);
  }
  .panel-header {
    padding: 0 14px;
  }
  .session-actions {
    gap: 3px;
  }
  .session-actions .button {
    font-size: 9px;
    padding: 7px;
  }
  .onboarding-steps p {
    font-size: 8px;
  }
  .panel-bottom {
    gap: 15px;
    font-size: 8px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 175px;
  }
  .brand {
    font-size: 22px;
    gap: 8px;
  }
  .brand-mark {
    width: 35px;
    height: 35px;
  }
  .nav-active {
    padding: 10px 8px;
    font-size: 11px;
    gap: 7px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .translation-panel {
    min-width: 0;
  }
  .translation-feed {
    height: 200px;
  }
  .welcome {
    min-height: 540px;
  }
  .translation-heading {
    padding-top: 18px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .isolation-card {
    padding: 11px 7px;
  }
  .isolation-card strong {
    font-size: 9px;
  }
  .isolation-card p {
    font-size: 8px;
  }
  .page-footer {
    gap: 15px;
    flex-wrap: wrap;
  }
  .ai-status {
    font-size: 9px;
    padding: 6px 8px;
  }
  .top-actions {
    gap: 10px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    width: 71px;
    padding: 20px 8px 0;
  }
  .brand {
    padding: 0 0 27px;
    justify-content: center;
  }
  .brand > span:last-child,
  .workspace-label,
  .nav-active,
  .account-heading > span,
  .add-account-wide,
  .isolation-card,
  .sidebar-setting,
  .local-status {
    display: none;
  }
  .account-heading {
    margin: 0 0 12px;
    justify-content: center;
  }
  .account-item {
    padding: 8px 0;
    justify-content: center;
  }
  .account-item .account-text,
  .account-item > .status-dot {
    display: none;
  }
  .account-list {
    max-height: 70vh;
  }
  .brand-mark {
    width: 37px;
    height: 37px;
  }
  .sidebar-bottom {
    margin-top: auto;
  }
  .topbar {
    height: 60px;
    padding: 0 14px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb > span {
    margin: 0 4px;
  }
  .deployment {
    display: none;
  }
  .top-actions {
    gap: 3px;
  }
  .top-actions .button {
    font-size: 9px;
    padding: 6px 8px;
  }
  .top-actions .button svg {
    width: 12px;
  }
  main {
    padding: 23px 12px 0;
  }
  .page-heading {
    margin-bottom: 20px;
    gap: 6px;
  }
  .page-heading h1 {
    font-size: 18px;
    margin-top: 6px;
  }
  .page-heading p {
    font-size: 9px;
    max-width: 240px;
  }
  .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .ai-status {
    font-size: 8px;
    padding: 5px 7px;
    white-space: nowrap;
  }
  .ai-status svg {
    display: none;
  }
  .welcome-art {
    transform: scale(0.8);
    margin: -10px 0 0;
  }
  .welcome {
    padding: 22px 8px;
    min-height: 530px;
  }
  .welcome h2 {
    font-size: 16px;
  }
  .welcome-kicker {
    font-size: 6px;
  }
  .welcome > p {
    font-size: 10px;
  }
  .onboarding-steps {
    margin-top: 32px;
    padding-top: 20px;
  }
  .onboarding-steps strong {
    font-size: 9px;
  }
  .onboarding-steps p {
    font-size: 7px;
  }
  .panel-bottom {
    font-size: 7px;
    gap: 12px;
  }
  .panel-bottom svg {
    width: 10px;
  }
  .panel-header {
    padding: 0 12px;
    height: 69px;
    flex-wrap: wrap;
    height: auto;
    min-height: 69px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .account-identity h2 {
    font-size: 11px;
  }
  .session-actions {
    margin-left: auto;
  }
  .avatar {
    width: 31px;
    height: 31px;
  }
  .subtle {
    font-size: 8px;
  }
  .account-identity {
    gap: 7px;
  }
  .page-footer {
    font-size: 7px;
    padding: 18px 0;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .viewer-placeholder {
    min-height: 390px;
    padding: 40px 15px;
  }
  .viewer-placeholder h3 {
    font-size: 15px;
  }
  .viewer-placeholder p {
    font-size: 10px;
  }
  .connection-hint {
    font-size: 7px;
    padding: 8px;
  }
  .keyboard-bar {
    padding: 7px;
  }
  .keyboard-bar textarea {
    font-size: 9px;
  }
  .viewer-footnote {
    font-size: 8px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .settings-section-title span {
    font-size: 8px;
  }
  dialog {
    padding: 22px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .mini-hint {
    width: 100%;
  }
}

/* Comfortable text sizes for conversation and translation. */
.account-item strong {
  font-size: 13px;
}
.account-item small {
  font-size: 11px;
}
.tab {
  font-size: 12px;
}
.language-settings label,
.auto-row div > span {
  font-size: 10px;
}
.language-settings select {
  font-size: 12px;
}
.auto-row strong,
.manual-heading label {
  font-size: 11px;
}
.manual-translator textarea {
  font-size: 12px;
}
.message-card .original {
  font-size: 12px;
}
.message-card .translated {
  font-size: 13px;
}
.manual-result > p:not(.mini-hint) {
  font-size: 13px;
}
.voice-note {
  font-size: 10px;
}
.viewer-footnote {
  font-size: 10px;
}
.feed-heading {
  font-size: 10px;
}
.manual-footer > .button {
  font-size: 11px;
}
.result-actions .text-button {
  font-size: 11px;
}
.viewer-placeholder p {
  font-size: 12px;
}

/* Native WhatsApp workspace */
.native-workspace {
  height: 100vh;
  overflow: hidden;
  background: #eae6df;
}
.native-workspace .app-shell,
.native-workspace .main-shell {
  height: 100vh;
  min-height: 0;
  display: block;
}
.native-workspace .sidebar,
.native-workspace .page-heading,
.native-workspace .page-footer {
  display: none;
}
.native-workspace .topbar {
  height: 60px;
  padding: 0 14px;
  gap: 12px;
  background: #f8faf9;
  justify-content: flex-start;
}
.native-workspace .brand {
  padding: 0;
  font-size: 18px;
  gap: 8px;
  letter-spacing: 0;
  flex-shrink: 0;
}
.native-workspace .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.native-workspace .brand-en {
  display: none;
}
.native-workspace .account-heading {
  margin: 0;
  font-size: 12px;
  gap: 6px;
  flex-shrink: 0;
}
.native-workspace .account-heading > span {
  display: none;
}
.native-workspace .account-list {
  display: flex;
  gap: 5px;
  max-height: none;
  overflow-x: auto;
  margin: 0;
  min-width: 0;
  flex: 1;
  scrollbar-width: thin;
}
.native-workspace .account-item {
  width: auto;
  flex-shrink: 0;
  padding: 5px 10px;
  gap: 7px;
  margin: 0;
  border-radius: 8px;
}
.native-workspace .account-item .avatar {
  width: 27px;
  height: 27px;
  font-size: 12px;
  border-radius: 50%;
}
.native-workspace .account-item strong {
  font-size: 13px;
  max-width: 130px;
}
.native-workspace .account-item small {
  display: none;
}
.native-workspace .account-item.selected {
  background: #d9f1e6;
  border-color: #b5d8c8;
}
.native-workspace .top-actions {
  gap: 8px;
  flex-shrink: 0;
}
.native-workspace .deployment {
  display: none;
}
.native-workspace main {
  padding: 0;
  max-width: none;
  height: calc(100vh - 60px);
}
.native-workspace .workspace-grid {
  display: block;
  height: 100%;
}
.native-workspace .conversation-panel {
  height: 100%;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  background: #eae6df;
}
.native-workspace .panel-header {
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  flex-shrink: 0;
}
.native-workspace .account-identity {
  gap: 8px;
}
.native-workspace .account-identity .avatar {
  display: none;
}
.native-workspace .account-identity h2 {
  display: inline;
  font-size: 13px;
  margin-right: 10px;
}
.native-workspace .account-identity > div {
  display: flex;
  align-items: center;
}
.native-workspace .subtle {
  font-size: 12px;
}
.native-workspace .button {
  font-size: 13px;
}
.native-workspace .small-button {
  padding: 6px 10px;
}
.native-workspace #viewerArea {
  flex: 1;
  min-height: 0;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
  background: #dce2de;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.native-workspace #remoteScreen {
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
  display: block;
  border: 0;
  border-radius: 0;
  background: #dce2de;
  outline-offset: -3px;
}
.native-workspace #viewerPlaceholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 0;
}
.native-workspace #connectionHint {
  display: none !important;
}
.native-workspace #keyboardBar {
  position: static;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f5f7f6;
  padding: 6px 12px;
  border-top: 1px solid #d6ded9;
  margin: 0;
  border-radius: 0;
  grid-row: 2;
}
.native-workspace #remoteText {
  min-height: 34px;
  max-height: 70px;
  padding: 5px 10px;
  background: white;
  flex: 1;
  border-radius: 6px;
}
.native-workspace #keyboardBar button {
  flex-shrink: 0;
}
.native-workspace .viewer-footnote,
.native-workspace .viewer-footer {
  display: none;
}
.native-workspace .welcome {
  flex: 1;
  min-height: 0;
  padding: 28px;
  overflow: auto;
}
.native-workspace .welcome-art {
  height: 160px;
  margin-bottom: 0;
}
.native-workspace .translation-panel {
  position: fixed;
  right: 14px;
  top: 68px;
  bottom: 12px;
  width: 380px;
  max-width: calc(100vw - 28px);
  z-index: 20;
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 12px 60px #173b3b40;
  border: 1px solid #d1e0d8;
}
.native-workspace .drawer-close {
  float: right;
  margin: 10px;
}
.native-workspace .translation-panel > .panel-header {
  clear: both;
  height: 60px;
  min-height: 60px;
}
.native-workspace #toast {
  z-index: 100;
}
@media (max-width: 800px) {
  .native-workspace .topbar {
    gap: 6px;
    padding: 0 8px;
  }
  .native-workspace .brand > span:last-child {
    display: none;
  }
  .native-workspace .top-actions {
    gap: 4px;
  }
  .native-workspace .top-actions .button {
    padding: 6px;
    font-size: 12px;
  }
  .native-workspace .account-item .avatar {
    display: none;
  }
  .native-workspace .account-item {
    padding: 5px 7px;
  }
  .native-workspace .panel-header {
    padding: 0 10px;
  }
  .native-workspace .activeStatus {
    max-width: 140px;
  }
  .native-workspace #keyboardBar {
    padding: 5px;
    gap: 5px;
  }
  .native-workspace #fullScreen {
    display: none;
  }
}
