:root {
  color-scheme: light;
  --paper: #f5f3eb;
  --surface: #fffefa;
  --ink: #243c34;
  --muted: #68746a;
  --line: #dcded3;
  --green: #244e42;
  --soft: #e9eee4;
  --gold: #9b6c32;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
textarea,
select,
input {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 13px;
  font-weight: 600;
}
button:hover {
  background: var(--soft);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c99453;
  outline-offset: 3px;
}
.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.primary:hover {
  background: #173e33;
}
.primary span {
  margin-left: 15px;
}
.masthead {
  min-height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 16px max(5vw, 24px);
}
.brand {
  text-decoration: none;
  color: var(--ink);
  font:
    700 28px Georgia,
    serif;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font:
    28px Georgia,
    serif;
  margin-right: 5px;
}
.tagline {
  font-size: 13px;
  color: var(--muted);
  flex: 1;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.025em;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 6px 9px;
  border-radius: 20px;
  white-space: nowrap;
}
main {
  max-width: 1350px;
  margin: auto;
  padding: 0 max(5vw, 24px);
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 46px 0 36px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font:
    normal clamp(34px, 4vw, 49px) / 1.1 Georgia,
    serif;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}
h2 {
  font:
    normal 22px/1.2 Georgia,
    serif;
  letter-spacing: -0.02em;
  margin: 0;
}
.lede {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 410px;
  margin: 0;
}
.practice-start {
  max-width: 275px;
  padding: 24px;
  border-left: 1px solid var(--line);
}
.practice-start button {
  width: 100%;
}
.practice-start p,
.helper,
.section-note {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
.practice-start p {
  margin-bottom: 0;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-heading .eyebrow {
  margin-bottom: 8px;
}
.small-label {
  font-size: 11px;
  color: var(--muted);
}
.sidebar {
  display: grid;
  gap: 20px;
}
.section-content {
  padding: 20px 24px;
}
.messages {
  padding: 24px;
  min-height: 285px;
  max-height: 560px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.message {
  margin-bottom: 22px;
  max-width: 95%;
}
.message:last-child {
  margin-bottom: 0;
}
.message-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 7px;
}
.message-text {
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
}
.message.user {
  margin-left: auto;
  background: var(--soft);
  border-radius: 8px;
  padding: 14px 16px;
}
.empty {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.welcome h3 {
  font:
    normal 27px Georgia,
    serif;
  margin: 0 0 12px;
}
.sample {
  margin-top: 20px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.6;
}
.sample strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 7px;
}
#chat-form {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.composer {
  display: flex;
  align-items: flex-end;
  border: 1px solid #c6cec2;
  border-radius: 8px;
  background: white;
  padding: 8px;
  gap: 10px;
}
textarea {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  border: 0;
  padding: 7px;
  line-height: 1.6;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}
.composer button {
  flex-shrink: 0;
}
.helper {
  margin: 10px 0 0;
}
.section-note {
  margin: 0;
  padding: 0 24px 20px;
}
.trip + .trip,
.wind-form + .wind-form {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}
.trip-title {
  font:
    normal 21px Georgia,
    serif;
  margin: 0 0 7px;
}
.trip-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
}
.inline-form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.inline-form select {
  min-width: 0;
  flex: 1;
}
.inline-form input {
  width: 82px;
}
select,
input {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
  font-size: 13px;
}
.cancel {
  font-size: 11px;
  border: 0;
  background: transparent;
  color: #8a5341;
  padding: 10px 0;
}
.check {
  padding: 14px;
  background: var(--soft);
  border-radius: 7px;
  margin-top: 8px;
}
.check p {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.check button {
  font-size: 12px;
}
.wind-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.wind-title label {
  margin-top: 0;
}
.unit {
  font-size: 12px;
  color: var(--muted);
}
.memory-grid {
  display: grid;
  gap: 14px;
}
.memory {
  border-left: 2px solid #a3b09a;
  padding-left: 14px;
}
.memory p {
  font-size: 13px;
  line-height: 1.65;
  margin: 7px 0 0;
}
.scope {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
details + details {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  line-height: 1.6;
}
.run-status {
  color: var(--muted);
  font-size: 11px;
}
.step {
  margin-top: 14px;
  border-left: 2px solid var(--line);
  padding-left: 12px;
}
.tool-name {
  font:
    600 12px ui-monospace,
    monospace;
}
.step-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 10px 0 4px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    11px/1.65 ui-monospace,
    monospace;
  margin: 0;
  max-height: 230px;
  overflow: auto;
}
.error {
  background: #f6e6df;
  border: 1px solid #e0baaa;
  color: #763d2d;
  padding: 15px 20px;
  border-radius: 7px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
}
footer {
  font-size: 11px;
  color: var(--muted);
  padding: 30px 0 35px;
  line-height: 1.7;
}
@media (min-width: 1000px) {
  .conversation {
    grid-row: span 1;
  }
  .memory-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .masthead {
    gap: 12px;
    padding: 15px 20px;
  }
  .tagline {
    display: none;
  }
  .masthead .badge {
    margin-left: auto;
  }
  main {
    padding: 0 18px;
  }
  .intro {
    padding: 30px 0 25px;
    display: block;
  }
  .practice-start {
    padding: 20px 0 0;
    border: 0;
    max-width: none;
  }
  .practice-start button {
    width: auto;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .panel-heading,
  .section-content {
    padding: 19px;
  }
  .messages {
    padding: 20px;
    min-height: 210px;
    max-height: 460px;
  }
  #chat-form {
    padding: 18px;
  }
  .section-note {
    padding-left: 19px;
    padding-right: 19px;
  }
  .small-label {
    max-width: 90px;
    text-align: right;
  }
  h2 {
    font-size: 21px;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 {
    max-width: 420px;
  }
  .composer {
    gap: 3px;
  }
  .composer button {
    padding: 10px;
  }
  .primary span {
    margin-left: 5px;
  }
}
[hidden] {
  display: none !important;
}
.masthead .brand {
  margin-right: auto;
}
.auth-screen {
  max-width: 1050px;
  margin: 70px auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 70px;
  align-items: center;
}
.auth-card {
  padding: 30px;
}
.auth-card input {
  width: 100%;
  margin-bottom: 18px;
  padding: 12px;
}
.auth-card h2 {
  font-size: 28px;
}
.auth-card .helper {
  margin-bottom: 23px;
}
.auth-card .primary {
  width: 100%;
}
.auth-toggle {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.auth-card .error {
  margin-top: 18px;
}
.auth-loading {
  text-align: center;
  padding: 70px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .auth-screen {
    margin: 35px auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }
  .auth-card {
    padding: 24px;
  }
  .auth-intro h1 {
    font-size: 35px;
  }
  .masthead #account-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .masthead #mode {
    display: none;
  }
}
