:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #26291f;
  background: #f4f3ed;
  font-synthesis: none;
  --ink: #26291f;
  --muted: #777c6f;
  --line: #dedfd4;
  --accent: #d3e79b;
  --red: #a53e34;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[role="slider"]:focus-visible {
  outline: 3px solid #728e35;
  outline-offset: 4px;
}
button:active {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
.shell {
  max-width: 1440px;
  min-height: 100dvh;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 540px;
  gap: 7vw;
  padding: 38px 6vw;
}
.rail {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 76px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  letter-spacing: -1.2px;
  font-weight: 600;
}
.brand-icon {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: var(--accent);
  border-radius: 10px;
  width: 35px;
  height: 35px;
  font-family: Georgia;
  font-style: italic;
}
.version {
  font: 11px monospace;
  color: var(--muted);
  margin-left: 7px;
  letter-spacing: 0;
}
.rail-story {
  margin: auto 0;
}
.eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.7px;
  color: var(--muted);
}
h1 {
  font-weight: 450;
  letter-spacing: -3.5px;
  line-height: 1.06;
  font-size: clamp(48px, 5.2vw, 78px);
  margin: 26px 0;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
.rail-story p {
  font-size: 17px;
  line-height: 1.7;
}
.rail-foot {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.25px;
  color: var(--muted);
}
.tiny-orbit {
  border: 1px solid var(--muted);
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: inline-block;
}
.device {
  background: #fbfcf7;
  border: 1px solid #e1e3d9;
  border-radius: 26px;
  box-shadow: 0 18px 80px #272e1510;
  overflow: hidden;
  align-self: start;
  min-height: 850px;
  position: relative;
  padding-bottom: 90px;
}
header {
  height: 76px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.mobile-brand {
  display: none;
  font-weight: 650;
  letter-spacing: -0.7px;
  font-size: 21px;
}
.mobile-brand span {
  font: 10px monospace;
  color: var(--muted);
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 9px 12px;
}
.connection i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9c9f95;
}
.connection i.online {
  background: #6f8c38;
  box-shadow: 0 0 0 3px #d8e5bb60;
}
.chevron {
  margin-left: 8px;
}
.view {
  padding: 0 30px 22px;
}
.intro {
  text-align: center;
  padding-top: 18px;
}
h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -1.15px;
  line-height: 1.18;
  margin: 12px 0;
}
.intro p {
  font-size: 12px;
  margin-top: 11px;
}
.agent-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 29px;
}
.agent-switch button {
  padding: 10px 14px;
  font-size: 16px;
  border: 1px solid transparent;
  border-radius: 24px;
  color: #8a8e82;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
}
.agent-switch button span {
  font-size: 12px;
}
.agent-switch button.selected {
  border-color: #d8dfc5;
  color: #32392a;
  background: #eef3e2;
}
.dial-area {
  width: 280px;
  height: 280px;
  position: relative;
  margin: 28px auto 12px;
  display: grid;
  place-items: center;
}
.dial-ticks {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -1deg,
    #aeb3a2 0deg 1deg,
    transparent 1deg 6deg
  );
  touch-action: none;
  cursor: grab;
}
.dial-ticks:before {
  content: "";
  position: absolute;
  inset: 12px;
  background: #fbfcf7;
  border-radius: 50%;
  pointer-events: none;
}
.dial-marker {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 0.3s;
}
.dial-marker:after {
  content: "";
  position: absolute;
  top: 0;
  left: calc(50% - 3px);
  width: 6px;
  height: 18px;
  background: #70843e;
  border: 2px solid #fbfcf7;
  border-radius: 3px;
}
.dial-button {
  position: relative;
  border-radius: 50%;
  width: 224px;
  height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f0f4e5;
  background: radial-gradient(circle at 35% 25%, #434a37, #272d21 68%);
  box-shadow:
    inset 0 2px 2px #ffffff20,
    inset 0 -4px 8px #0005,
    0 7px 14px #262e2425,
    0 0 0 7px #e8ebdf,
    0 0 0 8px #d7ddca;
  gap: 13px;
}
.dial-spark {
  font-size: 19px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 2px;
}
.dial-button > span:not(.dial-sub):not(.dial-spark) {
  font-size: 14px;
  letter-spacing: 0.1px;
}
.dial-sub {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #b1bea0;
}
.dial-button.recording {
  background: radial-gradient(circle at 30% 20%, #805c47, #3e2925);
}
.dial-hint {
  text-align: center;
  font-size: 10px;
  color: #969c8b;
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}
.dial-hint span {
  font-size: 17px;
}
.agent-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  line-height: 1.5;
  margin: 25px auto 12px;
  min-height: 34px;
  max-width: 310px;
}
.text-option {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin: 0 auto 32px;
  padding: 9px 16px;
}
.text-option span:last-child {
  color: var(--muted);
  margin-left: 8px;
}
.activity-peek {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.3px;
  margin-bottom: 12px;
}
.section-label button {
  font-size: 11px;
  letter-spacing: 0;
  padding: 7px 0;
}
.task-card {
  display: flex;
  text-align: left;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #e9ebe2;
}
.task-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f5ed;
  font-size: 21px;
}
.task-card-content {
  flex: 1;
  min-width: 0;
}
.task-card strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a4aa98;
  margin-right: 5px;
}
.status-dot.working,
.status-dot.starting {
  background: #7a9647;
}
.status-dot.needs_input {
  background: #c28e2d;
}
.task-arrow {
  font-size: 16px;
  color: #989e8e;
}
.empty {
  border: 1px dashed var(--line);
  border-radius: 13px;
  padding: 20px 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.empty strong {
  display: block;
  color: #505746;
  font-weight: 500;
  margin-bottom: 5px;
}
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 16px 20px 21px;
  border-top: 1px solid var(--line);
  background: #fbfcf7;
}
footer button {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  color: #8b9180;
}
footer button > span {
  font-size: 17px;
}
footer button.active {
  color: var(--ink);
}
footer b {
  font-weight: 400;
  border-radius: 5px;
  padding: 2px 5px;
  background: #e9ede0;
  font-size: 9px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0;
}
.round-button {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 24px;
}
.back {
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0;
}
.conversation-title {
  padding: 16px 0 22px;
  border-bottom: 1px solid var(--line);
}
.conversation-title h2 {
  font-size: 25px;
  overflow-wrap: anywhere;
}
.task-state {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
#messages {
  padding: 12px 0;
}
.message {
  margin: 18px 0;
}
.message-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  margin-bottom: 9px;
}
.message-body {
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.user .message-body {
  background: #edf1e5;
  padding: 15px;
  border-radius: 14px 14px 3px 14px;
}
.message.system .message-body {
  color: #8d6130;
  background: #f7f0df;
  padding: 12px;
  border-radius: 8px;
}
.conversation-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.primary {
  display: block;
  width: 100%;
  padding: 16px 20px;
  background: var(--ink);
  color: #f6f8ed;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.3;
}
.secondary {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12px;
}
.danger {
  color: var(--red);
  font-size: 11px;
  white-space: nowrap;
  padding: 12px 4px;
}
.subtle {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  width: calc(100% - 28px);
  max-width: 460px;
  color: var(--ink);
  background: #fbfcf7;
  box-shadow: 0 20px 100px #18200940;
  max-height: 90dvh;
  overflow-y: auto;
}
#install-dialog .secondary {
  width: 100%;
  margin-top: 12px;
}
dialog::backdrop {
  background: #1b211655;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 30px;
  margin: 18px 0 12px;
}
dialog p {
  font-size: 13px;
}
dialog label {
  display: block;
  font-size: 12px;
  margin: 22px 0 9px;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.close {
  font-size: 27px;
  width: 38px;
  height: 38px;
  color: var(--muted);
}
input,
textarea {
  width: 100%;
  border: 1px solid #d5dacb;
  border-radius: 12px;
  background: #fffef9;
  padding: 14px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
textarea {
  resize: vertical;
  min-height: 150px;
}
textarea::placeholder {
  color: #a5ac99;
}
.compose-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 12px 0;
}
.attach-label {
  cursor: pointer;
  margin: 0 !important;
  font-size: 12px !important;
  padding: 10px;
}
.form-error {
  color: var(--red);
  min-height: 0;
  font-size: 12px;
}
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.file-chip {
  border: 1px solid var(--line);
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
  background: #f5f6ef;
}
.approval {
  padding: 18px;
  background: #f7f0dc;
  border: 1px solid #e7d8af;
  border-radius: 12px;
  margin: 15px 0;
}
.approval h3 {
  font-size: 14px;
  margin-top: 0;
}
.approval pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  max-height: 240px;
  overflow: auto;
}
.approval .actions {
  display: flex;
  gap: 12px;
}
.approval label {
  display: block;
  margin: 10px 0;
  font-size: 12px;
}
.approval input {
  margin-top: 7px;
}
.toast {
  position: fixed;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  background: #303629;
  color: #fff;
  padding: 14px 20px;
  box-shadow: 0 3px 20px #0002;
  border-radius: 12px;
  font-size: 12px;
  max-width: 90%;
  z-index: 10;
}
.setup-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  font-size: 12px;
}
.setup-row span:last-child {
  text-align: right;
  color: var(--muted);
  overflow-wrap: anywhere;
  max-width: 65%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 900px) {
  .shell {
    display: block;
    padding: 0;
    max-width: 520px;
  }
  .rail {
    display: none;
  }
  .device {
    border: 0;
    border-radius: 0;
    min-height: 100dvh;
    box-shadow: none;
    padding-bottom: 100px;
  }
  header {
    height: 80px;
    justify-content: space-between;
    padding: calc(20px + env(safe-area-inset-top)) 23px 20px;
  }
  .mobile-brand {
    display: block;
  }
  .view {
    padding-left: 24px;
    padding-right: 24px;
  }
  .intro {
    padding-top: 17px;
  }
  h2 {
    font-size: 27px;
  }
  .dial-area {
    margin-top: 26px;
    width: 266px;
    height: 266px;
  }
  .dial-button {
    width: 213px;
    height: 213px;
  }
  .agent-switch {
    margin-top: 25px;
  }
  .agent-switch {
    gap: 4px;
  }
  .agent-switch button {
    padding: 9px 10px;
    gap: 5px;
  }
  .text-option {
    margin-bottom: 27px;
  }
  footer {
    padding-bottom: calc(15px + env(safe-area-inset-bottom));
  }
  body {
    background: #fbfcf7;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 350px) {
  .view {
    padding-left: 16px;
    padding-right: 16px;
  }
  .connection {
    font-size: 9px;
  }
  .dial-area {
    width: 244px;
    height: 244px;
  }
  .dial-button {
    width: 192px;
    height: 192px;
  }
}
