/* The homepage uses the app's SeqViz viewer, with compact document chrome. */
#demo .view--ed { padding: 0; align-items: stretch; justify-content: stretch; }
.home-sequence { display: flex; flex-direction: column; width: 100%; height: 100%; min-width: 0; min-height: 0; background: #fff; color: #20232b; }
.home-sequence__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 10px 16px; border-bottom: 1px solid var(--rule); }
.home-sequence__identity { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.home-sequence__identity strong { font-weight: 500; white-space: nowrap; }
.home-sequence__identity > svg { width: 18px; height: 18px; flex: none; color: var(--purple); }
.home-sequence__identity > span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.home-sequence__lock { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.home-sequence__lock svg { width: 13px; height: 13px; }
.home-sequence__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 5px 12px; border-bottom: 1px solid var(--rule); }
.home-sequence__toolbar [role="tablist"] { display: flex; gap: 3px; }
.home-sequence__toolbar button { padding: 5px 9px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; font: 12px var(--body); cursor: pointer; }
.home-sequence__toolbar button[aria-selected="true"] { background: var(--card); color: var(--ink); }
.home-sequence__toolbar button:hover { color: var(--ink); }
.home-sequence__feature { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); }
.home-sequence__feature select { max-width: 130px; border: 1px solid var(--rule); border-radius: 4px; padding: 4px 6px; color: var(--ink-2); background: #fff; font: 11px var(--body); }
.home-sequence__toolbar :is(button,select):focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.home-sequence__viewer { flex: 1; position: relative; min-height: 0; width: 100%; overflow: hidden; padding: 8px 12px; }
.home-sequence__viewer > div { min-height: 0 !important; }
.home-sequence__viewer text { font-family: 'IBM Plex Mono', ui-monospace, monospace !important; }
.home-sequence__viewer .home-sequence__map-name { font-size: 17px; }
.home-sequence__viewer * { scroll-behavior: auto !important; overflow-anchor: none; }
.home-sequence__selection { display: flex; justify-content: space-between; gap: 12px; flex: none; padding: 8px 14px; min-height: 32px; border-top: 1px solid var(--rule); font-size: 10px; color: var(--ink-2); background: var(--card); }
.home-sequence__hint { color: var(--muted); white-space: nowrap; }
.home-sequence__fallback { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 24px; font-size: 12px; }
.home-sequence__fallback strong { font-size: 20px; }
.home-sequence__fallback p { margin: 8px 0; }
@media (min-width: 1181px) {
  .home-concise #demo .app__body { height: 600px; }
}
@media (max-width: 1180px) {
  /* Keep a full split view on tablets; choose one full-size pane on phones. */
  .home-concise #demo .app__view { height: 520px; }
}
@media (max-width: 700px) {
  .home-sequence__header { padding: 10px 12px; }
  .home-sequence__identity { flex-wrap: wrap; column-gap: 6px; row-gap: 3px; }
  .home-sequence__identity > span { width: 100%; padding-left: 24px; }
  .home-sequence__lock { align-self: flex-start; font-size: 0; margin-top: 3px; }
  .home-sequence__feature > span, .home-sequence__hint { display: none; }
  .home-sequence__feature select { max-width: 115px; }
  .home-sequence__toolbar { gap: 5px; padding: 5px 8px; }
  .home-sequence__toolbar button { padding: 5px 7px; }
  .home-sequence__toolbar [data-home-seq-view="both"] { display: none; }
  .home-sequence__viewer { padding: 8px 4px; }
  .home-concise #demo .app__view { height: 470px; }
  #demo .chat__body { overflow: hidden auto; }
  #demo .convo { bottom: auto; min-height: 100%; }
  #demo .convo:not(.is-active) { display: none; }
  #demo .app__status { height: auto; min-height: 32px; padding: 7px 10px; flex-wrap: wrap; gap: 4px 10px; font-size: 10px; }
  #demo .app__status-right { margin-left: 0; }
  #demo .app__status [data-home-seq-selection] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
