@font-face {
  font-family: DM Sans;
  src: url(/dist/dm-sans-latin-400-normal.woff2);
}
@font-face {
  font-family: DM Sans;
  src: url(/dist/dm-sans-latin-600-normal.woff2);
  font-weight: 600 800;
}
:root {
  color-scheme: dark;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--canvas);
  accent-color: var(--green);
  --vh: 100dvh;
  --canvas: #000000;
  --surface: #111312;
  --sidebar: #0b0d0c;
  --rail: #0e100f;
  --raised: #191c1a;
  --text: #d9dfda;
  --secondary-text: #bdc7bf;
  --muted: #9da9a0;
  --line: #2a302c;
  --control-border: #49544c;
  --green: #a1cdb0;
  --on-green: #102419;
  --tint: #19251d;
  --selected: #223329;
  --on-tint: #b2d5b9;
  --amber-bg: #30251b;
  --amber-text: #e0bc92;
  --focus: #b1d98f;
  --error: #f3ae93;
  --toast-bg: #2d3c31;
  --art: #0d1712;
}
:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #fcfcf9;
  --surface: #ffffff;
  --sidebar: #f0f2eb;
  --rail: #fafbf6;
  --raised: #f4f6f1;
  --text: #202f2a;
  --secondary-text: #415448;
  --muted: #65746c;
  --line: #dfe4db;
  --control-border: #c9d4c5;
  --green: #204d40;
  --on-green: #fff;
  --tint: #eaf1e4;
  --selected: #dde7d8;
  --on-tint: #365d3e;
  --amber-bg: #f4e7d3;
  --amber-text: #896438;
  --focus: #668225;
  --error: #9c482d;
  --toast-bg: #243d31;
  --art: #1b3e34;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.94);
}
a {
  color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(26px, 3vw, 37px);
  letter-spacing: -0.055em;
  line-height: 1.1;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.04em;
}
h3 {
  font-size: 16px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.brand {
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.06em;
  display: flex;
  align-items: center;
  gap: 11px;
}
.logo {
  display: inline-block;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: #244f42;
  position: relative;
  flex-shrink: 0;
}
.logo:before,
.logo:after {
  content: "";
  position: absolute;
  background: #dcf4ae;
  width: 5px;
  height: 17px;
  transform: skew(-22deg);
  left: 8px;
  top: 6px;
}
.logo:after {
  left: 17px;
  height: 10px;
  top: 13px;
}
.section-label,
.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
#workspace {
  display: flex;
  height: var(--vh);
  overflow: hidden;
}
.sidebar {
  width: 232px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 26px 14px 14px;
  flex-shrink: 0;
  z-index: 5;
}
.sidebar .brand {
  padding: 0 12px 28px;
}
.owner small {
  display: block;
  margin-top: 2px;
}
.owner > b {
  width: 32px;
  height: 32px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.section-label {
  padding: 0 11px 10px;
}
.nav,
.person {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--secondary-text);
  margin: 1px 0;
}
.nav.active,
.person.selected {
  background: var(--selected);
  color: var(--on-tint);
  font-weight: 600;
}
.ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}
.team-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.team-label button {
  font-size: 20px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--tint);
  color: var(--on-tint);
  border: 1px solid var(--line);
  font-weight: 600;
}
.avatar.engineer {
  background: var(--amber-bg);
  color: var(--amber-text);
  border-color: var(--line);
}
.person .avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
}
.owner {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 17px 7px 0;
}
.owner > b {
  border-radius: 50%;
  background: var(--raised);
  color: var(--secondary-text);
}
.owner button {
  margin-left: auto;
}
.shell {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.top {
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  min-height: 58px;
  color: var(--muted);
  font-size: 13px;
  background: var(--surface);
}
.top strong {
  color: var(--text);
}
.slash {
  color: var(--muted);
}
.online {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.theme-switch {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--secondary-text);
  font-size: 12px;
  white-space: nowrap;
}
.online i,
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #689268;
}
.online.offline i {
  background: #bd8653;
}
#menu {
  display: none;
}
.content {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.chat-layout {
  display: flex;
  height: 100%;
}
.conversation {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chat-head {
  padding: 23px clamp(18px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.identity,
.actions,
.tabs,
.field-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.identity .avatar {
  width: 44px;
  height: 44px;
  font-size: 21px;
  border-radius: 13px;
}
.identity h1 {
  margin: 0;
  font-size: 24px;
}
.identity small {
  display: block;
  margin-top: 3px;
}
.identity .more {
  margin-left: auto;
}
.tabs {
  gap: 22px;
  margin-top: 20px;
}
.tabs button,
.tabs a {
  display: flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
  padding: 0 0 11px;
  border-bottom: 2px solid transparent;
}
.tabs .chosen {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 20px clamp(18px, 3.5vw, 46px);
  scrollbar-gutter: stable;
}
.empty {
  max-width: 510px;
  margin: clamp(40px, 10vh, 110px) auto 36px;
}
.empty .avatar {
  width: 64px;
  height: 64px;
  border-radius: 19px;
  font-size: 26px;
  margin-bottom: 22px;
}
.empty h2 {
  font-size: 30px;
  margin-bottom: 10px;
}
.empty p,
.intro {
  color: var(--muted);
  line-height: 1.65;
}
.pill,
.secondary,
.primary,
.soft,
.more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  padding: 8px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.primary {
  background: var(--green);
  color: var(--on-green);
}
.secondary,
.more {
  border: 1px solid var(--control-border);
  background: var(--surface);
}
.soft,
.pill {
  background: var(--tint);
  color: var(--on-tint);
}
.compose-wrap {
  padding: 12px clamp(18px, 3.5vw, 46px) 20px;
}
.composer {
  border: 1px solid var(--control-border);
  background: var(--surface);
  border-radius: 13px;
  padding: 12px;
  box-shadow: 0 3px 12px #2a463907;
}
.composer:focus-within {
  border-color: var(--focus);
}
.composer textarea {
  width: 100%;
  min-height: 46px;
  max-height: 150px;
  resize: vertical;
  border: 0;
  outline: 0;
  padding: 2px 3px;
  color: var(--text);
}
.compose-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.compose-tools .call-button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--on-tint);
}
.send-actions {
  position: relative;
  display: flex;
  margin: 0;
  padding: 0;
  border: 0;
}
.send-actions > .primary {
  min-height: 44px;
  border-radius: 7px 0 0 7px;
}
.send-actions > .send-toggle {
  width: 44px;
  border-left: 1px solid var(--on-green);
  border-radius: 0 7px 7px 0;
}
.send-toggle[aria-expanded="false"] + #send-options {
  display: none;
}
#send-options {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(100% + 6px);
  padding: 4px;
  border: 1px solid var(--control-border);
  border-radius: 8px;
  background: var(--raised);
}
#send-options button {
  min-height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  border-radius: 5px;
}
#send-options button:is(:hover, :focus-visible) {
  background: var(--tint);
}
.compose-status {
  display: block;
  min-height: 18px;
  font-size: 12px;
  color: var(--muted);
  padding: 5px;
}
.rail {
  width: 250px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  padding: 26px 20px;
  background: var(--rail);
  overflow: auto;
}
.rail h3 {
  margin: 0 0 16px;
}
.rail p {
  color: var(--secondary-text);
  font-size: 13px;
  line-height: 1.6;
}
.rail section + section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.facts {
  margin: 0;
}
.facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 7px 0;
}
.facts dt {
  color: var(--muted);
  font-size: 12px;
}
.facts dd {
  margin: 0;
  font-size: 12px;
  text-align: right;
}
.rail button {
  display: flex;
  text-align: left;
  margin: 8px 0;
}
.entry {
  margin: 0 0 19px;
  max-width: 900px;
  overflow-wrap: anywhere;
}
.entry header {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
}
.entry time {
  font-weight: 400;
  color: var(--muted);
}
.entry .body {
  font-size: 14px;
  line-height: 1.65;
}
.entry p {
  margin: 4px 0 8px;
}
.entry pre {
  white-space: pre-wrap;
  background: var(--raised);
  border-radius: 6px;
  padding: 12px;
}
.entry.user {
  background: var(--tint);
  border-radius: 10px;
  padding: 11px 16px;
  margin-left: 12%;
}
.entry.progress,
.entry.system,
.entry.notice {
  border-left: 2px solid var(--control-border);
  padding-left: 13px;
  color: var(--secondary-text);
}
.page {
  max-width: 1030px;
  padding: clamp(20px, 4vw, 50px);
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
}
.page-head h1 {
  margin: 0;
}
.cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  margin: 20px 0 32px;
}
.card,
.row-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 18px;
}
.card h2 {
  margin: 12px 0 6px;
}
.card p,
.row-card p {
  color: var(--muted);
  line-height: 1.55;
}
.row-card {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.row-card > div:first-child {
  flex: 1;
}
.row-card strong {
  display: block;
}
.row-card small {
  display: block;
  margin-top: 4px;
}
.group-title {
  margin: 28px 0 10px;
}
.stack {
  display: grid;
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
input,
select,
textarea {
  padding: 9px 10px;
  border: 1px solid var(--control-border);
  border-radius: 6px;
  background: var(--surface);
  width: 100%;
  color: inherit;
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
input[type="checkbox"] {
  width: auto;
}
.field-row > * {
  flex: 1;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  margin-bottom: 18px;
}
.modal-head button {
  font-size: 23px;
}
dialog {
  background: var(--surface);
  width: min(460px, calc(100% - 24px));
  max-height: 85dvh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 22px;
  color: inherit;
}
dialog::backdrop {
  background: #102a1d66;
}
output {
  color: var(--error);
  font-size: 13px;
}
#toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--toast-bg);
  color: #eef4ef;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 10;
  max-width: 95vw;
}
#login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-art {
  background: var(--art);
  color: #eaf3de;
  padding: 8%;
  position: relative;
  overflow: hidden;
}
.login-art .logo {
  background: #41644f;
}
.orbit {
  position: absolute;
  border: 1px solid #77937d;
  border-radius: 50%;
  width: 80%;
  aspect-ratio: 1;
  left: 25%;
  top: 28%;
  box-shadow:
    0 0 0 45px #305141,
    0 0 0 46px #66806c,
    0 0 0 100px #294a3c,
    0 0 0 101px #54745e,
    0 0 0 160px #234537;
}
.login-form {
  align-self: center;
  width: min(350px, 85%);
  margin: auto;
  display: grid;
  gap: 18px;
}
.login-form h1,
.login-form p {
  margin: 0;
}
.login-form p {
  color: var(--muted);
}
.login-form .primary {
  justify-content: space-between;
}
@media (max-width: 1100px) {
  .rail {
    width: 215px;
  }
  .sidebar {
    width: 196px;
  }
  .chat-head {
    padding-top: 18px;
  }
}
@media (max-width: 900px) {
  .rail {
    display: none;
  }
}
@media (max-width: 680px) {
  .sidebar {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 238px;
    box-shadow: 10px 0 60px #15261b40;
  }
  .show-nav .sidebar {
    display: flex;
  }
  #menu {
    display: inline-block;
    font-size: 20px;
  }
  .top {
    min-height: 45px;
    padding: 0 14px;
    gap: 9px;
  }
  .chat-head {
    padding: 14px 16px 0;
  }
  .tabs {
    margin-top: 13px;
  }
  .scroll {
    padding: 14px;
  }
  .empty {
    margin: 38px 10px;
  }
  .empty h2 {
    font-size: 26px;
  }
  .compose-wrap {
    padding: 7px 10px max(6px, env(safe-area-inset-bottom));
  }
  .identity .avatar {
    width: 36px;
    height: 36px;
  }
  .identity h1 {
    font-size: 21px;
  }
  .owner {
    margin-top: auto;
  }
  .page {
    padding: 22px 15px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .row-card {
    flex-wrap: wrap;
  }
  #login {
    grid-template-columns: 1fr;
    grid-template-rows: 24vh 1fr;
  }
  .login-art {
    padding: 22px;
  }
  .login-form {
    align-self: start;
    margin-top: 45px;
  }
  .online span {
    display: none;
  }
}

#voice-panel {
  width: min(92vw, 390px);
  padding: 32px 24px 24px;
  text-align: center;
  border-radius: 24px;
}
#voice-panel::backdrop { background: rgb(0 0 0 / 68%); }
.voice-avatar {
  display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 14px;
  border-radius: 50%; background: #164536; color: #bcf2d2; font-size: 30px;
}
#voice-panel h2 { margin: 4px 0; }
#voice-panel [data-voice="caption"] { max-height: 8em; overflow: auto; }
#voice-panel [data-voice="receipt"] { font-size: .85em; overflow-wrap: anywhere; }
.voice-actions { display: flex; justify-content: center; gap: 12px; margin-top: 24px; }
.voice-actions button, #voice-panel [data-voice="play"] { border-radius: 24px; padding: 12px 20px; }
.voice-actions [data-voice="end"] { background: #a82836; color: white; border: 0; }
