/* Lighty: warm neutrals, compact hierarchy, motion only for press feedback. */
:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #fff;
  --text: #242523;
  --muted: #72736d;
  --line: #e5e5e0;
  --accent: #c44826;
  --accent-soft: #f9eee8;
  --green: #47805f;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
.button,
summary {
  user-select: none;
  -webkit-user-select: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  padding: 9px 14px;
  border: 0;
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  box-shadow:
    0 0 0 1px #25251f1c,
    0 1px 2px #25251f0a;
  font-weight: 550;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 120ms var(--ease-out),
    background-color 120ms ease;
}
button:active:not(:disabled),
.button:active {
  transform: scale(0.97);
}
button:disabled {
  cursor: not-allowed;
  color: #898a84;
  background: #f2f2ef;
  box-shadow: 0 0 0 1px #25251f12;
}
.primary {
  background: var(--accent);
  color: white;
  box-shadow:
    0 0 0 1px #8b311333,
    0 2px 3px #86361612;
}
.primary:disabled {
  background: #ede9e5;
  color: #8d8780;
}
.button svg {
  width: 20px;
  height: 20px;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 550;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
p {
  line-height: 1.7;
}
h1 {
  font-size: 34px;
}
h2 {
  font-size: 21px;
}
h3 {
  font-size: 18px;
}
small,
.small {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.hint,
.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.eyebrow,
.step-number,
.nav-label {
  font:
    10px/1.5 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
}
.eyebrow .dot {
  margin-right: 6px;
}
.dot,
.connection-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--green);
  border-radius: 50%;
}
.muted-dot {
  background: #aaa;
}
.pill {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
  background: #eeeee9;
  color: #67685f;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
}
.row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 650;
}
.brand-mark {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -4px;
  padding-right: 4px;
  overflow: hidden;
}
.brand-mark > span {
  font-size: 21px;
}
.beta {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.07em;
  color: #898a83;
  margin-left: 2px;
}
.quiet-link {
  font-size: 12px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 12px;
  background: white;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
  font-size: 12px;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 10px 11px;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #93958c;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f6f6f3;
  color: #8d8e86;
}
label {
  font-size: 12px;
  color: #55574f;
}
details > summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  min-height: 38px;
  display: list-item;
  padding: 10px 0;
}
details[open] > summary {
  margin-bottom: 12px;
}
.notice {
  padding: 15px 18px;
  border-radius: 8px;
  background: #fff3e6;
  color: #835423;
  margin: 14px 0;
  font-size: 13px;
}
.danger,
.text-danger {
  color: #b53727;
}
.status {
  position: fixed;
  bottom: 52px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  z-index: 30;
  max-width: min(620px, calc(100vw - 32px));
  padding: 12px 18px;
  background: #282b25;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 24px #0002;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.status:empty {
  display: none;
}
.status.danger {
  background: #92342b;
}
.container {
  width: min(1160px, calc(100% - 96px));
  margin-inline: auto;
}
@media (hover: hover) and (pointer: fine) {
  button:hover:not(:disabled),
  .button:hover {
    background: #efefea;
  }
  .primary:hover:not(:disabled) {
    background: #a93b1e;
  }
  .quiet-link:hover {
    color: var(--text);
  }
  a:not(.button):hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .app-nav button:hover {
    background: #eeeee9;
  }
}
/* Public page: editorial type, a static product illustration, no fabricated metrics. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 27px;
  border-bottom: 1px solid var(--line);
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding-block: 90px 84px;
}
.hero h1 {
  font-size: clamp(58px, 6.2vw, 82px);
  line-height: 1.03;
  letter-spacing: -0.07em;
  margin: 25px 0;
}
.hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.07em;
  color: var(--accent);
}
.hero-copy > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 29px 0 16px;
}
.hero-actions .button {
  min-height: 43px;
  font-size: 13px;
}
.hero-copy .hero-note {
  font-size: 11px;
}
.hero-visual {
  min-width: 0;
  padding: 20px 0 0 8px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #868980;
  margin-bottom: 18px;
}
.product-preview {
  background: #fff;
  border-radius: 10px;
  box-shadow:
    0 0 0 1px #3b3b2815,
    0 16px 45px -15px #34352824;
  transform: rotate(-2deg);
  overflow: hidden;
}
.preview-top {
  padding: 16px 17px;
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 10px;
  color: #84877f;
  border-bottom: 1px solid #e9e9e5;
}
.window-dots {
  color: #cecec6;
  font-size: 10px;
  letter-spacing: 2px;
}
.preview-tag {
  margin-left: auto;
  padding: 3px 5px;
  border-radius: 4px;
  background: #f4f4ef;
  font-size: 9px;
}
.preview-body {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 304px;
}
.preview-sidebar {
  background: #f7f7f4;
  border-right: 1px solid #e9e9e3;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}
.preview-sidebar > span {
  padding: 8px 7px;
}
.preview-active {
  color: var(--accent);
  background: #f1e8df;
  border-radius: 4px;
}
.preview-sidebar-foot {
  margin-top: auto;
  padding: 30px 5px 0;
  line-height: 1.7;
}
.preview-sidebar-foot small {
  font-size: 8px;
}
.preview-work {
  padding: 24px 20px;
  min-width: 0;
}
.preview-section-label {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 16px;
}
.preview-machine {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
}
.preview-machine small {
  display: block;
  font-size: 8px;
}
.preview-machine .dot {
  margin-left: auto;
}
.laptop-icon {
  font-size: 26px;
  color: var(--muted);
}
.preview-agent {
  padding: 24px 0 0;
}
.preview-agent > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.agent-mark {
  color: var(--accent);
  font-size: 22px;
}
.preview-agent p {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 23px;
}
.preview-message {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 10px;
  color: #8a8c85;
  font-size: 9px;
}
.preview-message span {
  color: var(--accent);
}
.visual-caption {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  padding: 28px 26px 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.visual-caption strong {
  color: var(--text);
  font-weight: 500;
}
.connection-line {
  width: 70px;
  height: 28px;
  border-left: 1px dashed #babdb1;
  border-bottom: 1px dashed #babdb1;
  border-radius: 0 0 0 12px;
}
.principles {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block: 1px solid var(--line);
  padding-block: 25px;
  gap: 20px;
}
.principles p {
  font:
    9px/1.7 ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.principles > span {
  font-size: 12px;
  font-weight: 500;
  color: #606358;
}
.workflow {
  padding-block: 90px;
}
.section-intro {
  max-width: 480px;
}
.section-intro h2,
.connect-section h2 {
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 18px 0;
}
.section-intro p,
.connect-section p {
  font-size: 14px;
  color: var(--muted);
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 44px;
}
.workflow-grid article {
  padding: 25px 30px 12px 0;
  position: relative;
  border-top: 1px solid var(--line);
}
.workflow-grid article + article {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.feature-number {
  position: absolute;
  right: 25px;
  font:
    11px ui-monospace,
    monospace;
  color: #8c8e85;
}
.feature-icon {
  font-size: 30px;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 28px;
}
.workflow-grid h3 {
  margin-bottom: 12px;
}
.workflow-grid p {
  font-size: 13px;
  color: var(--muted);
}
.connect-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  align-items: center;
  padding: 50px 0 65px;
  border-top: 1px solid var(--line);
}
.connect-section .button {
  margin: 23px 0 18px;
}
.connect-section p.small {
  font-size: 11px;
}
.command-card {
  background: #272b26;
  border-radius: 9px;
  color: #e9ebdf;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 5px 14px #1e20140a;
}
.command-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid #ffffff12;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.06em;
  color: #aaafa1;
}
.command-card pre {
  padding: 22px;
  margin: 0;
  font-size: 11px;
  line-height: 1.95;
}
.code-comment {
  color: #949d8c;
}
.command-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #ffffff04;
  font-size: 10px;
  color: #adb6a3;
}
.command-foot .dot {
  background: #98ba83;
}
.copy-button {
  font:
    10px ui-monospace,
    monospace;
  background: #ffffff0b;
  color: #dce1d5;
  box-shadow: none;
  min-height: 28px;
  padding: 4px 8px;
}
.honest-note {
  display: flex;
  gap: 44px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}
.honest-note .eyebrow {
  flex-shrink: 0;
  padding-top: 5px;
}
.honest-note p {
  max-width: 770px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 25px 35px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-footer .brand {
  font-size: 20px;
}
.site-footer > span {
  font-size: 11px;
  color: var(--muted);
}
.site-footer > span:last-child {
  margin-left: auto;
}
/* Application shell: persistent navigation, one task per view. */
.dashboard {
  overscroll-behavior: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 30px 16px 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f2f2ef;
}
.sidebar > .brand {
  padding-left: 10px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 35px 2px 27px;
  padding: 12px 8px;
  border-block: 1px solid var(--line);
  font-size: 11px;
  font-weight: 550;
}
.workspace-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: white;
  border: 1px solid var(--line);
  font-family: Georgia, serif;
  font-size: 17px;
}
.workspace-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
}
.nav-label {
  font-size: 9px;
  padding-left: 11px;
  margin-bottom: 10px;
}
.app-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.app-nav button {
  justify-content: flex-start;
  padding: 11px 12px;
  box-shadow: none;
  background: transparent;
  font-size: 12px;
  color: #71746a;
  min-height: 42px;
}
.app-nav button > span:first-child {
  font-size: 17px;
  width: 20px;
  font-family: ui-monospace, monospace;
}
.app-nav button[aria-current="page"] {
  background: #e9e9e2;
  color: #292d22;
}
.nav-count {
  margin-left: auto;
  background: #f7f7f3;
  padding: 2px 6px;
  border-radius: 4px;
  font:
    10px ui-monospace,
    monospace;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-note {
  font-size: 10px;
  padding: 20px 10px;
}
.local-note > .dot {
  margin-right: 6px;
}
.local-note > .hint {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  padding-left: 12px;
}
.user-menu {
  display: flex;
  gap: 9px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 19px 4px 20px;
}
.avatar {
  border-radius: 50%;
  flex-shrink: 0;
}
.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 11px;
  flex: 1;
}
.user-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-details .hint {
  font-size: 10px;
}
.icon-button {
  box-shadow: none;
  background: transparent;
  min-width: 32px;
  padding: 7px;
}
.workspace {
  min-width: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.workspace-bar {
  padding: 0 38px;
  height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: #7a7d72;
}
.workspace-bar #breadcrumb {
  color: var(--text);
}
.slash {
  padding: 0 15px;
  color: #b9bcb2;
}
.workspace-content {
  padding: 42px 38px;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 38px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.page-heading h1 {
  margin-bottom: 10px;
}
.page-heading .hint {
  font-size: 12px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 14px;
}
.section-heading h2 {
  font-size: 14px;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 9px;
}
.section-heading button {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  padding: 5px;
  min-height: 32px;
  font-size: 11px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 238px;
  border: 1px dashed #d9dbd1;
  background: #f4f4f0;
  border-radius: 10px;
  padding: 30px 22px;
}
.empty-icon {
  color: #898f7e;
  font-size: 27px;
  line-height: 1;
}
.empty-state h3 {
  font-size: 17px;
  margin: 17px 0 9px;
  letter-spacing: -0.025em;
}
.empty-state p {
  max-width: 360px;
  font-size: 12px;
  color: var(--muted);
}
.connect-guide {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: center;
  padding: 31px 0;
  border-bottom: 1px solid var(--line);
  margin-top: 10px;
}
.connect-guide h2 {
  font-size: 22px;
  margin: 10px 0;
}
.connect-guide p {
  font-size: 12px;
  color: var(--muted);
  max-width: 355px;
}
.connect-guide .small {
  font-size: 10px;
  margin-top: 9px;
}
.connect-guide .command-card pre {
  font-size: 10px;
  padding: 20px 18px;
}
.workspace-footnote {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 21px;
  font-size: 10px;
  color: #878b7e;
}
.device-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  margin-bottom: 10px;
}
.device-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #f2f4ec;
  border-radius: 8px;
  color: #697458;
  font-size: 29px;
}
.device-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.device-title strong {
  overflow-wrap: anywhere;
}
.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #42714f;
  background: #f0f5eb;
  border-radius: 4px;
  padding: 4px 6px;
  font-size: 9px;
  white-space: nowrap;
}
.offline-pill {
  color: #827463;
  background: #f4f1e9;
}
.device-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}
.device-detail {
  margin-top: 8px;
}
.device-detail summary {
  min-height: 22px;
  padding: 0;
  font-size: 10px;
}
.device-detail p {
  font:
    10px/1.8 ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
.device-card .row {
  justify-content: flex-end;
}
.device-card .forget {
  box-shadow: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.device-card.selected {
  box-shadow: 0 0 0 1px #7e94724d;
}
.connection-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 10px 25px;
  font-size: 10px;
  min-height: 46px;
  background: #f9f9f6;
}
.connection-bar strong {
  font-weight: 500;
  text-transform: capitalize;
}
.connection-bar .hint,
.connection-bar .small {
  font-size: 10px;
}
.connection-spacer {
  flex: 1;
}
.connection-indicator {
  background: #aaada2;
}
.is-connected .connection-indicator {
  background: var(--green);
}
.connection-bar button {
  font-size: 10px;
  padding: 4px 8px;
  min-height: 26px;
  background: transparent;
  box-shadow: none;
}
.connection-required {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #eeeeea;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 12px;
}
.connection-required p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.connection-required button {
  margin-left: auto;
  flex-shrink: 0;
}
.is-connected .connection-required {
  display: none;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.agent-config {
  padding: 18px;
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.field {
  flex: 1;
  min-width: 140px;
}
.field-wide {
  flex: 1.5;
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
}
.field input,
.field select {
  font-size: 12px;
  min-height: 39px;
}
.agent-config .primary {
  min-height: 39px;
}
.conversation {
  margin-top: 20px;
  overflow: hidden;
}
.conversation-heading {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-size: 11px;
}
.conversation-heading > span {
  display: flex;
  gap: 8px;
  align-items: center;
}
.conversation-heading button {
  min-height: 29px;
  font-size: 10px;
  box-shadow: none;
  background: transparent;
  padding: 5px 8px;
}
.messages {
  min-height: 290px;
  max-height: 55dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px;
}
.conversation-empty {
  text-align: center;
  padding: 28px 10px;
  color: var(--muted);
}
.session-symbol {
  font-size: 46px;
  color: #c7c9be;
  display: block;
  margin-bottom: 20px;
}
.conversation-empty h2 {
  font-size: 19px;
  color: #737869;
  letter-spacing: -0.035em;
}
.conversation-empty p {
  font-size: 12px;
  margin-top: 10px;
}
.message {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  max-width: 94%;
  background: #f7f7f3;
}
.message.user {
  margin-left: auto;
  background: #f5ede6;
}
.message-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #747867;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.message-body {
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.event {
  background: transparent;
  border-left: 2px solid var(--line);
  padding: 7px 12px;
  color: var(--muted);
  font-size: 11px;
}
.composer {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}
.composer textarea {
  border: 0;
  resize: vertical;
  padding: 4px 0;
  min-height: 65px;
  font-size: 13px;
  box-shadow: none;
}
.composer textarea:disabled {
  background: white;
}
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.composer-footer > span {
  font-size: 10px;
  color: var(--muted);
}
.composer-footer button {
  font-size: 11px;
  min-height: 34px;
}
.advanced {
  margin-top: 15px;
}
.advanced .row > input {
  flex: 1;
  min-width: 180px;
}
.evt-log {
  max-height: 300px;
  overflow: auto;
  background: #eeeee8;
  padding: 16px;
  border-radius: 7px;
  font-size: 10px;
}
.item {
  padding: 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  margin-block: 10px;
  overflow-wrap: anywhere;
}
.item > .row {
  margin-top: 12px;
}
.item > textarea,
.item > input {
  margin-block: 10px;
  display: block;
}
.item > label {
  display: block;
  font-weight: 600;
}
.item > button {
  margin: 10px 8px 0 0;
}
.item > span {
  font-size: 12px;
}
.item > pre {
  font-size: 11px;
  max-height: 320px;
  overflow: auto;
}
#agent-pending .item {
  border-color: #e7c69d;
  background: #fffaf2;
}
#agent-pending .item > strong {
  display: block;
  margin-bottom: 10px;
}
#agent-threads:empty,
#agent-sessions:empty {
  display: none;
}
.thread-card {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}
.thread-card > span {
  overflow-wrap: anywhere;
}
.terminal-window {
  background: #242922;
  border: 1px solid #242922;
  border-radius: 9px;
  overflow: hidden;
  margin-top: 20px;
}
.terminal-title {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid #ffffff12;
  color: #b4bbaa;
  font:
    9px ui-monospace,
    monospace;
}
.terminal-title .window-dots {
  color: #70796a;
}
.term-out {
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #e1e9d7;
  min-height: 380px;
  padding: 22px;
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  resize: vertical;
}
.term-out::placeholder {
  color: #a1aa95;
}
.terminal-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #ffffff15;
  padding: 12px 16px;
  color: #a9bb95;
}
.terminal-composer textarea {
  border: 0;
  background: transparent !important;
  color: #e1e9d7;
  resize: vertical;
  font-family: ui-monospace, monospace;
}
.terminal-composer button {
  background: #ffffff0b;
  color: #cbd3bf;
  box-shadow: none;
  flex-shrink: 0;
}
.terminal-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin: 17px 0;
}
.terminal-controls input {
  max-width: 80px;
}
.terminal-controls details .row {
  max-width: 350px;
}
.login-screen {
  min-height: 100dvh;
  padding: 42px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.login-card {
  text-align: center;
  padding: 55px 35px;
  width: min(480px, 100%);
}
.login-card h1 {
  font-size: 49px;
  letter-spacing: -0.055em;
  margin: 23px 0;
}
.login-card > p {
  color: var(--muted);
  font-size: 14px;
}
.login-card .button {
  margin: 31px 0 20px;
  width: 100%;
  min-height: 46px;
  font-size: 13px;
}
.login-card p.small {
  font-size: 11px;
}
/* Mobile: native-sized controls, safe areas, no layout viewport assumptions. */
@media (max-width: 1100px) {
  .container {
    width: calc(100% - 64px);
  }
  .hero {
    gap: 30px;
  }
  .preview-body {
    grid-template-columns: 92px 1fr;
  }
  .preview-work {
    padding: 19px 14px;
  }
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .workspace-content {
    padding: 32px 26px;
  }
  .workspace-bar {
    padding-inline: 26px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading > .primary {
    font-size: 11px;
  }
  .connect-guide {
    gap: 20px;
  }
  .device-card {
    padding: 18px;
  }
  .status {
    left: calc(50% + 80px);
  }
}
@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 55px;
    gap: 35px;
  }
  .hero h1 {
    font-size: 72px;
  }
  .hero-visual {
    max-width: 550px;
    width: 100%;
    margin-inline: auto;
    padding: 0;
  }
  .hero-copy {
    max-width: 560px;
  }
  .principles {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px 28px;
  }
  .principles p {
    width: 100%;
  }
  .workflow {
    padding-block: 65px;
  }
  .workflow-grid article + article {
    padding-left: 20px;
  }
  .connect-section {
    gap: 30px;
  }
  .connect-section h2 {
    font-size: 32px;
  }
  .connect-guide {
    grid-template-columns: 1fr;
  }
  .page-heading {
    flex-wrap: wrap;
    margin-bottom: 28px;
  }
  .connection-required {
    flex-wrap: wrap;
  }
  .connection-required button {
    margin-left: 0;
  }
  .workspace-footnote {
    flex-direction: column;
    gap: 7px;
  }
  .agent-config {
    padding: 14px;
  }
  .thread-card {
    flex-wrap: wrap;
  }
  .device-card {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }
  .device-card > .row {
    grid-column: 2;
  }
  .device-icon {
    width: 38px;
    height: 38px;
  }
  .device-title {
    flex-wrap: wrap;
    gap: 5px;
  }
  .terminal-controls {
    flex-direction: column;
  }
  .honest-note {
    gap: 22px;
  }
}
@media (max-width: 600px) {
  .container {
    width: calc(100% - 40px);
  }
  .site-header {
    padding-block: 20px;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav > .quiet-link {
    display: none;
  }
  .hero h1 {
    font-size: 62px;
  }
  .hero {
    padding-block: 43px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero-actions {
    gap: 17px;
    flex-wrap: wrap;
  }
  .preview-top {
    gap: 15px;
    padding: 13px;
  }
  .preview-body {
    grid-template-columns: 84px 1fr;
    min-height: 278px;
  }
  .preview-sidebar {
    padding: 15px 7px;
    font-size: 9px;
  }
  .preview-work {
    padding: 20px 12px;
  }
  .preview-machine {
    padding: 9px;
    gap: 7px;
  }
  .preview-machine small {
    font-size: 7px;
  }
  .preview-agent > div:first-child {
    font-size: 11px;
  }
  .preview-agent p {
    font-size: 10px;
  }
  .preview-message {
    font-size: 8px;
    padding: 11px 8px;
  }
  .preview-label {
    font-size: 8px;
  }
  .visual-caption {
    padding-right: 8px;
  }
  .principles > span {
    font-size: 11px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .workflow-grid article,
  .workflow-grid article + article {
    padding: 23px 0 0;
    border-left: 0;
  }
  .feature-icon {
    margin-bottom: 18px;
  }
  .feature-number {
    right: 3px;
  }
  .section-intro h2 {
    font-size: 36px;
  }
  .connect-section {
    grid-template-columns: 1fr;
    padding-block: 37px;
  }
  .honest-note {
    flex-direction: column;
    gap: 12px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  .site-footer > span:nth-child(2) {
    display: none;
  }
  .desktop-break {
    display: none;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    padding: 18px 18px 0;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    padding: 0;
    font-size: 22px;
  }
  .workspace-label,
  .nav-label,
  .local-note {
    display: none;
  }
  .app-nav {
    flex-direction: row;
    gap: 3px;
    margin-top: 20px;
    overflow-x: auto;
    overscroll-behavior: contain;
  }
  .app-nav button {
    flex: 1;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    min-height: 45px;
    border-radius: 6px 6px 0 0;
    padding: 9px 8px;
  }
  .app-nav button > span:first-child {
    font-size: 14px;
    width: auto;
  }
  .nav-count {
    display: none;
  }
  .sidebar-bottom {
    position: absolute;
    right: 16px;
    top: calc(14px + env(safe-area-inset-top, 0px));
  }
  .user-menu {
    padding: 0;
    border: 0;
    gap: 6px;
  }
  .user-details {
    font-size: 10px;
    max-width: 100px;
  }
  .user-details .hint {
    display: none;
  }
  .avatar {
    width: 25px;
    height: 25px;
  }
  .user-menu button {
    min-width: 38px;
    min-height: 40px;
  }
  .workspace {
    min-height: calc(100dvh - 112px);
  }
  .workspace-bar {
    height: 46px;
    padding-inline: 20px;
    font-size: 10px;
  }
  .workspace-bar > .quiet-link {
    font-size: 10px;
  }
  .workspace-content {
    padding: 27px 20px 36px;
  }
  .page-heading .hint {
    font-size: 12px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading {
    gap: 19px;
    margin-bottom: 25px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .empty-state {
    min-height: 213px;
    padding: 23px;
  }
  .connect-guide {
    padding-block: 26px;
    gap: 20px;
  }
  .connect-guide h2 {
    font-size: 23px;
  }
  .connect-guide p {
    max-width: none;
  }
  .command-card pre {
    font-size: 10px;
  }
  .connect-guide .command-card pre {
    font-size: 9px;
  }
  .workspace-footnote {
    font-size: 9px;
  }
  .connection-bar {
    padding: 10px 17px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
    gap: 7px;
  }
  .connection-bar > .small {
    display: none;
  }
  .connection-bar #ws-device {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .status {
    left: 50%;
    bottom: 60px;
    width: max-content;
  }
  .field {
    min-width: 120px;
  }
  .field-wide {
    flex-basis: 100%;
  }
  .agent-config > .primary {
    width: 100%;
  }
  .conversation-heading {
    padding: 10px 12px;
  }
  .conversation-heading .row {
    gap: 0;
  }
  .conversation-heading > span {
    max-width: 50%;
    overflow-wrap: anywhere;
  }
  .messages {
    padding: 15px;
    min-height: 250px;
  }
  .conversation-empty {
    padding-inline: 0;
  }
  .conversation-empty h2 {
    font-size: 17px;
  }
  .conversation-empty p {
    font-size: 11px;
  }
  .composer {
    padding: 12px;
  }
  .composer-footer > span {
    max-width: 130px;
    font-size: 9px;
  }
  .composer-footer button {
    font-size: 10px;
    padding: 8px 10px;
  }
  .term-out {
    min-height: 330px;
    padding: 15px;
  }
  .terminal-title {
    padding: 13px 12px;
    gap: 8px;
    font-size: 8px;
  }
  .terminal-composer {
    padding: 8px 12px;
  }
  .terminal-composer button {
    font-size: 11px;
  }
  .login-screen {
    padding: 30px 20px;
  }
  .login-card {
    padding: 45px 0;
  }
  .login-card h1 {
    font-size: 43px;
  }
  .connection-required {
    padding: 16px;
  }
  .workspace-bar .slash {
    padding-inline: 8px;
  }
}
@media (pointer: coarse) {
  button,
  .button {
    min-height: 44px;
  }
  input,
  textarea,
  select,
  .field input,
  .field select,
  .composer textarea,
  .terminal-composer textarea {
    font-size: 16px;
  }
  summary {
    min-height: 44px;
  }
  .app-nav button {
    min-height: 46px;
  }
  .copy-button {
    min-height: 36px;
  }
  .composer-footer button {
    min-height: 42px;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  .button {
    transition: none;
  }
  button:active:not(:disabled),
  .button:active {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}
.question-field {
  border: 0;
  padding: 0;
  margin: 20px 0;
}
.question-field legend {
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 12px;
}
.question-choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 7px;
  cursor: pointer;
}
.question-choice input {
  width: 16px;
  height: 16px;
  margin: 3px 0;
  accent-color: var(--accent);
}
.question-choice strong,
.question-choice .small {
  display: block;
}
.question-field textarea {
  margin-top: 8px;
}
@media (prefers-contrast: more) {
  :root {
    --muted: #484c41;
    --line: #92998a;
  }
  button,
  .button {
    outline: 1px solid currentColor;
  }
}
