:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f0e9;
  color: #201d1a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(198, 104, 73, 0.13), transparent 28rem),
    #f4f0e9;
}

.shell {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0;
}

.intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #af5135;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.demo-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.demo-flow article {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid rgba(32, 29, 26, 0.11);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.62);
}

.demo-flow article > span {
  color: #af5135;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.demo-flow article > strong {
  margin-top: 28px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
}

.demo-flow article p {
  color: #69625b;
  font-size: 0.86rem;
  line-height: 1.55;
}

.prompt-chip {
  min-height: 34px;
  margin-top: auto;
  padding: 0 12px;
  border-color: #c8bfb5;
  color: #83432f;
  font-size: 0.74rem;
}

.intro > p:last-child {
  color: #5b5650;
  font-size: 1.05rem;
  line-height: 1.65;
}

.panel {
  padding: clamp(22px, 5vw, 40px);
  border: 1px solid rgba(32, 29, 26, 0.12);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.82);
  box-shadow: 0 24px 80px rgba(70, 49, 34, 0.08);
  backdrop-filter: blur(12px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #5b5650;
  font-size: 0.82rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d7d0c6;
  border-radius: 10px;
  background: #fffdfa;
  color: #201d1a;
  font: inherit;
  font-weight: 500;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(175, 81, 53, 0.23);
  outline-offset: 2px;
}

.session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0 20px;
  padding: 18px;
  border-radius: 14px;
  background: #24201d;
  color: #fffaf4;
}

.session-card p {
  margin: 0;
  color: #c9c0b6;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 999px;
  background: #9f978e;
}

.status-dot.active {
  background: #7bd09c;
  box-shadow: 0 0 0 5px rgba(123, 208, 156, 0.13);
}

.status-dot.error {
  background: #f08e72;
}

.status-dot.safety {
  background: #f2ba62;
  box-shadow: 0 0 0 5px rgba(242, 186, 98, 0.14);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-test {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e1dacf;
}

.text-test > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #d7d0c6;
  border-radius: 999px;
  background: #fffdfa;
  color: #201d1a;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}

button.primary {
  border-color: #af5135;
  background: #af5135;
  color: white;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.event-box {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e1dacf;
}

.event-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

h2 {
  margin: 0;
  font-size: 1rem;
}

.link-button {
  min-height: auto;
  padding: 5px;
  border: 0;
  background: transparent;
  color: #af5135;
}

.event-note,
aside {
  color: #6c655e;
  font-size: 0.82rem;
  line-height: 1.5;
}

#events {
  max-height: 220px;
  overflow-y: auto;
  padding-left: 28px;
  color: #5b5650;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

#events li {
  padding: 3px 0;
}

aside {
  margin: 20px 5px 0;
}

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

  .field-grid,
  .demo-flow {
    grid-template-columns: 1fr;
  }

  .demo-flow article {
    min-height: 190px;
  }

  .session-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
[hidden] {
  display: none !important;
}
