/* The case picker owns playback. The section stays in normal document flow. */
[data-everyday-section] .everyday-demo {
  --demo-height: 560px;
}
[data-everyday-section] .everyday-demo[hidden] {
  display: none !important;
}
[data-everyday-section] .everyday-heading > p:not(.everyday-step-label) {
  display: block;
  max-width: 57ch;
}
.everyday-case-switch {
  display: flex;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin: 25px auto 0;
  padding: 5px;
  border: 1px solid #ffffff16;
  border-radius: 999px;
  background: #15151a;
}
.everyday-case-switch button {
  padding: 11px 20px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: #aaa6b3;
  background: transparent;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.everyday-case-switch [aria-selected="true"] {
  color: #f1eaf9;
  background: #34303e;
  box-shadow: inset 0 0 0 1px #b19bc22e;
}
.everyday-case-switch button:hover { color: #fff; }
[data-static-cases] .everyday-demo * { transition: none !important; }
.everyday-explore {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  margin: 18px auto 0;
  font-size: 15px;
}
.everyday-code {
  background: #171a20;
  color: #d4dce7;
  border-radius: 22px;
}
.everyday-editor-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid #ffffff0e;
  background: #20232b;
  font-size: 13px;
}
.everyday-editor-tabs b { font-weight: 450; color: #e0e3ec; }
.everyday-editor-tabs > span:last-child { margin-left: auto; color: #929bac; }
.editor-dot { width: 7px; height: 7px; border-radius: 50%; background: #a18fc9; }
.everyday-code-area {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
}
.code-breadcrumb { padding: 17px 20px 12px; font-size: 13px; color: #9099aa; }
.everyday-code pre {
  margin: 0;
  padding: 5px 0 24px;
  font: 13px/1.9 "JetBrains Mono", monospace;
  letter-spacing: -.025em;
}
.code-line { display: block; padding: 0 10px; white-space: pre; }
.code-line > i {
  display: inline-block;
  width: 22px;
  margin-right: 6px;
  font-style: normal;
  color: #77808d;
  user-select: none;
}
.code-line em { font-style: normal; color: #bda4df; }
.everyday-terminal {
  min-height: 200px;
  padding: 18px 22px;
  border-top: 1px solid #ffffff12;
  background: #111318;
  font: 13px/1.8 "JetBrains Mono", monospace;
}
.terminal-label {
  margin-bottom: 14px;
  font: 13px/1.4 "Outfit", sans-serif;
  color: #919aab;
}
.everyday-terminal p { margin: 0 0 10px; font: inherit; }
.everyday-terminal p > span { color: #b29acd; padding-right: 7px; }
.everyday-terminal code { background: none; padding: 0; border: 0; color: inherit; font: inherit; }
.terminal-check > span { color: #8ec9a9; padding-right: 7px; }
.everyday-terminal .terminal-result { margin-top: 14px; color: #a3d2b7; }
[data-case-reveal] { opacity: .12; transition: opacity .35s; }
[data-case-reveal].is-revealed { opacity: 1; }
.everyday-research { border-radius: 22px; background: #f7f7f3; color: #303633; }
.everyday-research-body { flex: 1; min-height: 0; padding: 18px 22px; overflow: auto; scrollbar-width: thin; }
.research-sources { display: flex; gap: 7px; margin-bottom: 15px; }
.research-sources span { padding: 5px 10px; border-radius: 8px; border: 1px solid #dcded5; background: #fff; font-size: 12px; color: #6c7469; }
.research-heading > span { display: block; font-size: 13px; color: #7c8477; }
.research-heading h3 { margin: 7px 0 17px; font-size: 25px; line-height: 1.2; letter-spacing: -.035em; font-weight: 450; color: #29332a; }
.research-table { width: 100%; min-width: 0; border-collapse: collapse; table-layout: fixed; }
.research-table th { font-family: inherit; text-transform: none; letter-spacing: normal; color: #35412f; }
[data-everyday-section] .research-table thead th { background: transparent; color: #7c8278; font-weight: 400; }
.research-table :is(th,td) { border-bottom: 0; }
.research-table thead th { padding: 0 7px 10px; text-align: left; font-size: 12px; font-weight: 400; color: #7c8278; }
.research-table thead th:first-child { width: 38%; }
.research-table thead th:nth-child(2) { width: 17%; }
.research-table tbody th { font-size: 14px; font-weight: 450; text-align: left; }
.research-room { display: flex; align-items: center; gap: 10px; }
.research-table tbody :is(th,td) { padding: 11px 7px; border-top: 1px solid #dde1d7; }
.research-table td { font-size: 13px; line-height: 1.4; color: #727a6d; }
.research-table td:nth-child(2) { color: #354631; font-weight: 500; white-space: nowrap; }
.research-table th small { display: block; margin-top: 4px; font-size: 11px; color: #608054; font-weight: 400; }
.research-chosen { background: #e9eee3; }
.research-venue { position: relative; flex: none; width: 32px; height: 36px; overflow: hidden; border-radius: 6px; background: #e7d9c6; border: 1px solid #d9cdb9; }
.research-venue i:first-child { position: absolute; inset: 5px 5px 12px; background: linear-gradient(90deg,#a2b4aa 46%,#efe6d5 47% 53%,#acbeb2 54%); border: 2px solid #f6f1e8; }
.research-venue i:last-child { position: absolute; width: 24px; height: 7px; left: 3px; bottom: 4px; background: #b59a78; border-radius: 2px; }
.research-venue.venue-1 { background: #dadbdf; border-color: #cbced5; }
.research-venue.venue-2 { background: #e9dbc9; border-color: #dbcdb9; }
.research-conclusion { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px; border: 1px solid #dce4d4; border-radius: 12px; background: #eef2e9; }
.research-check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; color: #62834e; background: #dde9d5; }
.research-conclusion b { font-size: 13px; font-weight: 500; color: #465b3b; }
.research-conclusion p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; color: #74806b; }
@media (min-width: 821px) and (max-width: 1100px) {
  [data-everyday-section] .everyday-demo { grid-template-columns: .85fr 1.15fr; }
  .everyday-code pre { font-size: 12px; }
}
@media (max-width: 820px), (max-aspect-ratio: 9/10) {
  [data-everyday-section] .everyday-demo { --demo-height: 540px; }
  [data-everyday-section] .everyday-chat,
  [data-everyday-section] .everyday-browser { height: var(--demo-height); }
  [data-everyday-section] .everyday-step-label { min-height: 22px; }
  .everyday-case-switch { gap: 1px; padding: 4px; }
  .everyday-case-switch button { padding: 10px 11px; font-size: 14px; }
  .everyday-code pre { font-size: 12px; }
  .code-line > i { width: 14px; margin-right: 3px; }
  .code-line { padding-inline: 6px; }
  .everyday-editor-tabs > span:last-child { font-size: 12px; }
}
@media (max-width: 370px) {
  .everyday-case-switch button { padding-inline: 7px; font-size: 12px; }
  .everyday-code pre { font-size: 12px; }
}
@media (max-width: 560px) {
  .everyday-research-body { padding: 16px; }
  .research-sources { display: none; }
  .research-heading h3 { font-size: 23px; margin-bottom: 16px; }
  .research-table { table-layout: auto; }
  .research-table,.research-table thead,.research-table tbody { display: block; }
  .research-table thead tr { display: grid; grid-template-columns: 1fr auto; }
  .research-table thead th:last-child { display: none; }
  .research-table thead th:first-child { width: auto; }
  .research-table thead th:nth-child(2) { width: auto; text-align: right; }
  .research-table tbody tr { display: grid; grid-template-columns: 1fr auto; }
  .research-table tbody th { padding-bottom: 4px; }
  .research-table tbody td:nth-child(2) { padding-bottom: 4px; text-align: right; }
  .research-table tbody td:last-child { grid-column: 1 / -1; border-top: 0; padding: 0 7px 10px 49px; font-size: 12px; }
  .research-table th small { display: inline; margin: 0 0 0 6px; }
  .research-conclusion { padding: 10px; margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-everyday-section] .everyday-demo { gap: 18px; }
  [data-everyday-section] .everyday-demo[data-step="2"] .everyday-chat,
  [data-everyday-section] .everyday-browser { height: auto; }
  [data-everyday-section] .everyday-code-area,
  [data-everyday-section] .everyday-research-body { overflow: visible; }
  [data-case-reveal],.everyday-case-switch button { transition: none; }
}
