:root {
  color-scheme: light;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: #f6f3ed;
  color: #171717;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

.auth {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(246, 243, 237, 0.94);
  backdrop-filter: blur(10px);
}

.auth[hidden] {
  display: none;
}

.auth-card {
  width: min(420px, 100%);
  padding: 28px;
  border: 1px solid #d8d1c5;
  border-radius: 18px;
  background: #fbfaf6;
  box-shadow: 0 24px 80px rgba(23, 23, 23, 0.16);
}

.auth-card p {
  color: #655f55;
  line-height: 1.45;
}

.auth-card button,
.auth-card input {
  margin-top: 12px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error {
  min-height: 20px;
  color: #9b1c1c;
}

.shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

aside {
  border-right: 1px solid #d8d1c5;
  padding: 20px;
  background: #fbfaf6;
}

h1,
h2 {
  margin: 0 0 16px;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 14px;
  text-transform: uppercase;
}

button,
input {
  border: 1px solid #c9c1b4;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
}

button {
  cursor: pointer;
  background: #171717;
  color: white;
}

input {
  width: 100%;
  background: white;
}

section {
  margin-top: 28px;
}

#task-form,
#job-form,
#inbox-form,
#chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#tasks,
#approvals,
#jobs,
#triggers,
#inbox,
#profile,
#notes,
#connectors {
  list-style: none;
  padding: 0;
}

#tasks li,
#approvals li,
#jobs li,
#triggers li,
#inbox li,
#profile li,
#notes li,
#connectors li {
  padding: 8px 0;
  border-bottom: 1px solid #eee5d8;
}

.chat {
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 20px;
  min-width: 0;
}

#messages {
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 20px;
}

.message {
  max-width: 760px;
  padding: 12px 14px;
  border-radius: 8px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.user {
  align-self: flex-end;
  background: #183a37;
  color: white;
}

.assistant,
.system {
  align-self: flex-start;
  background: white;
  border: 1px solid #ded6ca;
}

.inspector {
  margin: 0 0 12px;
  border-top: 1px solid #d8d1c5;
  padding-top: 12px;
}

.inspector pre {
  max-height: 180px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid #ded6ca;
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
}

@media (max-width: 760px) {
  .shell {
    grid-template-columns: 1fr;
  }

  aside {
    border-right: 0;
    border-bottom: 1px solid #d8d1c5;
  }
}
