:root {
  color-scheme: light;
  --ink: #162027;
  --muted: #5b6670;
  --line: #dce3e8;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --accent: #176b87;
  --accent-strong: #0f4f66;
  --warm: #f6b84b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, #edf4f6 0%, #f9faf9 52%, #eef2ed 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
}

button:hover {
  background: var(--accent-strong);
}

.shell {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 22px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: 0;
}

h2 {
  font-size: 1rem;
}

.icon-button {
  width: 48px;
  min-width: 48px;
  padding: 0;
  background: #26343b;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.status-grid article {
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.status-grid span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.status-grid p {
  margin: 2px 0 0;
  color: var(--muted);
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.actions button {
  background: #26343b;
}

.conversation {
  min-height: 520px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.message {
  width: min(84%, 680px);
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--soft);
  line-height: 1.45;
}

.message.owner {
  align-self: flex-end;
  color: #fff;
  background: var(--accent);
}

.message small {
  display: block;
  margin-bottom: 4px;
  color: inherit;
  opacity: 0.72;
}

.composer {
  display: grid;
  grid-template-columns: 48px 1fr 80px;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #f8fafb;
}

.composer textarea {
  width: 100%;
  min-height: 48px;
  max-height: 160px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.work {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.list {
  display: grid;
  gap: 10px;
}

.item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.item strong {
  display: block;
  margin-bottom: 6px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .shell {
    padding: 14px;
  }

  .status-grid,
  .actions,
  .work {
    grid-template-columns: 1fr;
  }

  .conversation {
    min-height: 56vh;
  }

  .message {
    width: 94%;
  }
}
