:root {
  color-scheme: light;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: #192f29;
  background: #f3f6f3;
  --green: #163b32;
  --muted: #4a635a;
  --border: #d6e1d9;
  --accent: #296049;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
.shell { width: min(70rem, calc(100% - 3rem)); margin-inline: auto; }
.masthead { background: var(--green); color: #f2f9f4; }
.brand { display: flex; gap: .8rem; align-items: center; min-height: 4rem; letter-spacing: .015em; }
.brand strong { font-weight: 500; color: #c9ddd1; }
.brand-mark { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: #d7eade; color: var(--green); font-weight: 800; }
.intro { padding: 2.75rem 0 2rem; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); letter-spacing: -.055em; line-height: 1.1; }
.intro p, .answer-heading p, #empty { color: var(--muted); line-height: 1.55; }
.intro p { margin-top: .75rem; }
.workspace { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(0, 2.22fr); gap: 1.25rem; align-items: start; padding-bottom: 3rem; }
.topics, .answer { border: 1px solid var(--border); border-radius: 1rem; background: #fff; }
.topics { padding: 1.1rem; }
.topics h2 { font-size: 1rem; margin-bottom: .85rem; }
.search { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: .8rem; width: .78rem; height: .78rem; border: 1.6px solid var(--muted); border-radius: 50%; pointer-events: none; }
.search-icon::after { content: ''; position: absolute; height: 1.5px; width: .35rem; background: var(--muted); top: .63rem; left: .52rem; transform: rotate(45deg); }
input, select, textarea, button { font: inherit; }
input, select, textarea { color: inherit; border: 1px solid var(--border); border-radius: .6rem; }
input { width: 100%; padding: .7rem .65rem .7rem 2.15rem; background: #f7f9f7; }
.topic-list { display: grid; gap: .25rem; margin-top: .8rem; }
button { cursor: pointer; }
.topic { width: 100%; min-height: 2.8rem; padding: .55rem .7rem; border: 1px solid transparent; color: #263f35; border-radius: .55rem; background: transparent; text-align: left; font-size: .94rem; line-height: 1.35; }
.topic:hover, .secondary:hover { background: #edf5ef; }
.topic[aria-current='true'] { border-color: #c1d8c9; background: #e7f2ea; color: #163b32; font-weight: 700; }
#empty { margin: .8rem 0 0; }
.answer { padding: clamp(1.1rem, 3vw, 2rem); }
.answer-heading { border-bottom: 1px solid var(--border); padding-bottom: 1.1rem; margin-bottom: 1.2rem; }
.answer-heading h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.035em; line-height: 1.15; }
.answer-heading p { margin-top: .55rem; }
.answer label { display: block; margin-bottom: .5rem; font-weight: 650; }
select { appearance: none; min-height: 2.7rem; max-width: 100%; padding: .4rem 2.1rem .4rem .75rem; background: linear-gradient(45deg, transparent 50%, var(--accent) 50%) right 1rem center / .32rem .32rem no-repeat, linear-gradient(135deg, var(--accent) 50%, transparent 50%) right .69rem center / .32rem .32rem no-repeat, #fff; }
#variants-field { margin-bottom: 1rem; }
.message { display: flow-root; }
textarea { display: block; width: 100%; padding: .85rem 1rem; line-height: 1.55; resize: vertical; min-height: 6rem; background: #f7f9f7; }
.copy { float: right; margin-top: .65rem; padding: .6rem .9rem; min-height: 2.75rem; border-radius: .55rem; border: 1px solid var(--accent); font-size: .94rem; font-weight: 650; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: var(--green); }
.secondary { background: #fff; color: var(--green); }
.follow { border-top: 1px solid var(--border); margin-top: 1.15rem; padding-top: 1.15rem; }
.status { color: var(--accent); font-size: .94rem; line-height: 1.5; }
.status:not(:empty) { margin-top: .75rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 680px) {
  .shell { width: calc(100% - 1.5rem); }
  .intro { padding: 1.65rem 0 1.25rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
