:root {
  color-scheme: light;
  font-family: Inter, system-ui, sans-serif;
  background: #f4f5ef;
  color: #183327;
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #315f3b; font-weight: 650; }
[hidden] { display: none !important; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px max(5vw, calc((100vw - 1100px) / 2)); background: #fffdf8;
  border-bottom: 1px solid #dde2d6; gap: 16px;
}
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; color: inherit; }
.brand span {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 11px; background: #214837; color: #eff6df;
}
#mode { font-size: .85rem; color: #52675b; }
.workspace { width: min(1100px, 92%); margin: 45px auto; }
.intro { padding: clamp(22px, 5vw, 54px); background: #dde9d2; border-radius: 22px; margin-bottom: 24px; }
h1, h2, p { margin: 0 0 12px; }
h1 { font-family: Georgia, serif; font-size: clamp(2.15rem, 6vw, 4.2rem); font-weight: 500; line-height: 1.07; letter-spacing: -.05em; }
h2 { font-size: 1.22rem; }
p, small { color: #506559; }
.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { padding: clamp(18px, 3vw, 30px); background: #fffdf8; border: 1px solid #dce2d5; border-radius: 18px; }
label { display: grid; gap: 3px; font-weight: 650; margin-bottom: 13px; font-size: .9rem; }
small { font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; font-weight: 400; padding: 9px 10px; color: inherit;
  background: white; border: 1px solid #bfcbbb; border-radius: 8px;
}
textarea { resize: vertical; }
button {
  font: inherit; font-weight: 650; border-radius: 8px; border: 1px solid #214837;
  color: white; background: #214837; padding: 9px 14px; cursor: pointer;
}
button.secondary { background: #fffdf8; color: #214837; border-color: #a9b9a7; }
button:hover:not(:disabled) { filter: brightness(.91); }
button:disabled { opacity: .54; cursor: default; }
.actions, .section-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.section-head { justify-content: space-between; align-items: flex-end; }
.section-head .actions { align-items: flex-end; }
.filter { margin-bottom: 0; }
.results { margin-top: 20px; }
.metrics { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.metrics div { background: #eef3e7; min-width: 165px; border-radius: 10px; padding: 10px 15px; }
.metrics strong, .metrics span { display: block; }
.metrics strong { font-size: 1.7rem; }
.metrics span { font-size: .86rem; color: #506559; }
#themes { display: flex; gap: 7px; flex-wrap: wrap; }
#themes span { border: 1px solid #dce2d5; border-radius: 100px; padding: 4px 10px; font-size: .85rem; }
.status { margin: 12px 0 0; }
.status:empty { display: none; }
details { border-top: 1px solid #dce2d5; margin-top: 10px; padding: 10px 0 0; }
summary { cursor: pointer; font-weight: 650; }
details p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 8px; }
#more { margin-top: 16px; }
.widget-page { padding: 14px; }
.widget { max-width: 660px; margin: 0 auto; }
.widget h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); }
.consent { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; }
.consent input { width: auto; margin-top: 5px; }
#room { width: 100%; border: 0; height: min(470px, 68vh); border-radius: 10px; background: #eef3e7; }
@media (max-width: 700px) { .setup { grid-template-columns: 1fr; } .workspace { margin-top: 24px; } }
.studio { background:#f8f8f2; color:#16382f; }
.studio .topbar { background:#f8f8f2; padding:18px 5vw; }
.workbench { display:grid; grid-template-columns:minmax(210px,26%) minmax(0,1fr); max-width:1260px; margin:48px auto; width:92%; min-height:680px; border:1px solid #c6d3c3; }
.rail { background:#173c32; color:#fafaf1; padding:36px clamp(16px,3vw,40px); }
.rail h2 { font:500 clamp(1.45rem,2.6vw,2.25rem)/1.1 Georgia,serif; margin:0 0 36px; }
.rail nav { display:grid; gap:4px; }
.rail nav a { display:flex; align-items:center; gap:12px; color:#d1e0d6; text-decoration:none; padding:12px 8px; font-weight:500; border-radius:4px; }
.rail nav a[aria-current] { background:#315949; color:white; }
.rail nav b { border:1px solid #9fb7a6; border-radius:50%; width:25px; height:25px; display:grid; place-items:center; font-size:.82rem; }
.rail nav a[aria-current] b { background:#d7ebad; color:#183c32; border-color:#d7ebad; }
.rail nav .response-link { margin:22px 0; border-top:1px solid #537666; border-radius:0; padding-top:20px; }
#switcher { color:#d5e5d8; font-size:.8rem; gap:7px; }
.pages { background:#fffef9; min-width:0; }
.page { padding:clamp(24px,4vw,60px); }
.page h1 { font:500 clamp(2.3rem,4.8vw,4rem)/1.04 Georgia,serif; letter-spacing:-.04em; text-wrap:balance; }
.lede { max-width:60ch; margin:12px 0 29px; }
.page form { max-width:590px; }
.page label { gap:6px; margin:0 0 17px; }
.page label small { display:inline; font-size:.78rem; }
.page input,.page textarea,.page select { border-radius:5px; padding:10px 12px; }
input::placeholder,textarea::placeholder { color:#586d60; }
.optional { margin:0 0 24px; padding:12px 0; border-bottom:1px solid #dce2d5; }
.optional label { margin:12px 0 0; }
.primary-link { display:inline-block; background:#214837; color:white; padding:10px 16px; border-radius:7px; text-decoration:none; }
.receipt { background:#f2f5eb; border:1px solid #bfcebe; margin:18px 0; }
.receipt-head { display:flex; justify-content:space-between; gap:8px; padding:16px; border-bottom:1px dashed #a3b5a5; overflow-wrap:anywhere; }
#customer-frame { display:block; width:100%; height:405px; border:0; }
.widget-page { background:#f2f5eb; }
.widget { border:none; background:transparent; }
#snippet { background:#173c32; color:#e4efdf; font: .88rem/1.6 ui-monospace,monospace; }
hr { border:0; border-top:1px solid #d3ddcd; margin:28px 0; }
.results { margin:0; }
::selection { background:#d7ebad; color:#173c32; }
:focus-visible { outline:3px solid #a3660f; outline-offset:3px; }
@media(max-width:740px) {
  .workbench { grid-template-columns:1fr; margin:15px auto; width:96%; min-height:0; }
  .rail { padding:14px; }
  .rail h2 { margin:0 0 12px; font-size:1.5rem; }
  .rail nav { display:flex; flex-wrap:wrap; gap:3px; }
  .rail nav a,.rail nav .response-link { font-size:.82rem; padding:7px 6px; margin:0; border:0; }
  .rail nav b { display:none; }
  #switcher { margin:12px 0 0; }
  .page { padding:24px 18px; }
}

#switcher select { color:#173c32; }
