:root {
  --ink: #17202c;
  --muted: #5b6572;
  --line: #dbe3ea;
  --paper: #ffffff;
  --bg: #f5f7f4;
  --teal: #147f78;
  --blue: #2f5da8;
  --amber: #c98421;
  --red: #b94045;
  --green: #2d8a56;
  --shadow: 0 14px 34px rgba(28, 39, 56, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

.agent-shell {
  width: min(1360px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

button:hover {
  border-color: var(--teal);
}

button svg,
.section-title svg {
  width: 19px;
  height: 19px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 460px) minmax(0, 1fr);
  gap: 18px;
  padding-top: 18px;
}

.workspace > * {
  min-width: 0;
}

.intake,
.agent-output,
.summary-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intake,
.agent-output {
  padding: 18px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 18px;
}

.section-title svg {
  color: var(--blue);
}

form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 10px 11px;
}

textarea {
  resize: vertical;
}

.grid-two,
.grid-four {
  display: grid;
  gap: 12px;
}

.grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
}

.checkline input {
  width: 18px;
  height: 18px;
}

.agent-output {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.chat {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.chat > * {
  min-width: 0;
  max-width: 100%;
}

.bubble {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.bubble.user {
  background: #eef5f4;
}

.bubble.user p {
  margin: 0;
  color: #263646;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.bubble.agent {
  background: #ffffff;
}

.classification {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.classification span {
  font-size: 22px;
  font-weight: 840;
}

.classification strong {
  font-size: 64px;
  line-height: 0.9;
}

.bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6ecef;
}

.bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

h3 {
  margin: 16px 0 8px;
  font-size: 15px;
}

ul,
ol {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 0 0 8px;
  line-height: 1.45;
}

.summary-panel {
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

pre {
  max-width: 100%;
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 14px;
  border-radius: 6px;
  background: #111827;
  color: #e8f3ef;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace {
    grid-template-columns: 1fr;
  }
}

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

  .grid-two,
  .grid-four {
    grid-template-columns: 1fr;
  }
}
