#mind-demo {
  --em-pink: #ff3ba6;
  --em-paper: #f8f4f7;
  --em-secondary: #c0b6c0;
  --em-muted: #a89da9;
  --em-rule: #39303a;
  container-type: inline-size;
  position: relative;
  min-width: 0;
  color-scheme: dark;
  color: var(--em-paper);
  font-family: inherit;
  text-align: left;
}

#mind-demo *, #mind-demo *::before, #mind-demo *::after { box-sizing: border-box; }
#mind-demo [hidden] { display: none !important; }
#mind-demo .em-frame {
  background: #17131b;
  border: 1px solid #443844;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 45px #0005, inset 0 1px 0 #ffffff09;
}
#mind-demo button, #mind-demo summary {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#mind-demo button {
  appearance: none;
  background: transparent;
  border: 0;
  margin: 0;
  color: inherit;
}
#mind-demo :is(button, summary, [tabindex="0"]):focus-visible {
  outline: 2px solid var(--em-pink);
  outline-offset: -3px;
  border-radius: 3px;
}
#mind-demo .em-bar, #mind-demo .em-foot, #mind-demo .em-draft-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#mind-demo .em-bar { padding: 18px 24px; background: #201b23; }
#mind-demo .em-workspace { display: inline-flex; align-items: center; gap: 11px; }
#mind-demo .em-workspace strong { font-size: 14px; font-weight: 600; line-height: 1.4; }
#mind-demo .em-file {
  position: relative;
  width: 15px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  color: var(--em-pink);
}
#mind-demo .em-file::before {
  content: "";
  position: absolute;
  inset: 5px 3px auto;
  height: 5px;
  border-block: 1px solid;
}
#mind-demo .em-stamp, #mind-demo .em-context, #mind-demo .em-page {
  color: var(--em-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
#mind-demo .em-tabs { display: flex; padding: 0 24px; gap: 20px; border-bottom: 1px solid var(--em-rule); }
#mind-demo .em-tabs button {
  position: relative;
  min-width: 52px;
  min-height: 46px;
  padding: 4px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--em-muted);
  transition: color 150ms ease-out;
}
#mind-demo .em-tabs button::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 1px;
  right: 1px;
  height: 2px;
  background: var(--em-pink);
  transform: scaleX(0);
  transition: transform 160ms ease-out;
}
#mind-demo .em-tabs button[aria-selected="true"] { color: var(--em-paper); font-weight: 600; }
#mind-demo .em-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
#mind-demo .em-body { min-height: 252px; padding: 23px 28px 22px; }
#mind-demo .em-context { display: flex; align-items: center; gap: 8px; }
#mind-demo .em-context-line { width: 17px; height: 1px; background: #e456a2; }
#mind-demo .em-panel:not([hidden]) { animation: em-panel-enter 185ms cubic-bezier(.22,.75,.25,1) both; }
#mind-demo .em-panel h3, #mind-demo .em-quote {
  margin: 16px 0;
  color: var(--em-paper);
  font-size: clamp(20px, 5cqi, 28px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.035em;
}
#mind-demo .em-quote { border: 0; padding: 0; background: none; }
#mind-demo .em-facts { margin: 4px 0 0; font-size: 14px; line-height: 1.65; }
#mind-demo .em-facts > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid var(--em-rule);
}
#mind-demo .em-facts dt { color: var(--em-muted); font-size: 12px; }
#mind-demo .em-facts dd { margin: 0; color: var(--em-secondary); }
#mind-demo .em-draft-heading { flex-wrap: wrap; gap: 6px 8px; margin: 14px 0 8px; }
#mind-demo .em-draft-heading h3 { margin: 0; }
#mind-demo .em-review {
  color: #ff9acf;
  font-size: 12px;
  line-height: 1.5;
  padding: 2px 8px;
  border: 1px solid #60344d;
  border-radius: 4px;
}
#mind-demo .em-letter, #mind-demo .em-source p {
  margin: 0;
  color: var(--em-secondary);
  font-size: 14px;
  line-height: 1.75;
}
#mind-demo .em-source { margin-top: 9px; border-top: 1px solid var(--em-rule); }
#mind-demo .em-source summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 42px;
  color: var(--em-secondary);
  font-size: 12px;
  line-height: 1.5;
  list-style: none;
}
#mind-demo .em-source summary::-webkit-details-marker { display: none; }
#mind-demo .em-source[open] summary span { transform: rotate(45deg); }
#mind-demo .em-source p { font-size: 13px; }
#mind-demo .em-foot { min-height: 51px; background: #141016; border-top: 1px solid var(--em-rule); padding: 0 24px; }
#mind-demo .em-page { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; }
#mind-demo .em-next { min-height: 44px; color: #ff8ac8; padding: 3px 0 3px 10px; font-size: 13px; line-height: 1.5; }
#mind-demo .em-next span { display: inline-block; margin-left: 6px; }
@media (hover:hover) {
  #mind-demo .em-tabs button:hover, #mind-demo .em-source summary:hover { color: var(--em-paper); }
  #mind-demo .em-next:hover { color: #ffc2e4; }
}
@container (max-width: 370px) {
  #mind-demo .em-bar, #mind-demo .em-foot { padding-inline: 16px; }
  #mind-demo .em-tabs { padding-inline: 14px; gap: 12px; }
  #mind-demo .em-body { padding-inline: 16px; min-height: 269px; }
  #mind-demo .em-facts > div { grid-template-columns: 54px minmax(0,1fr); gap: 6px; }
}
@container (max-width: 265px) {
  #mind-demo .em-tabs { justify-content: space-between; gap: 1px; }
}
@keyframes em-panel-enter {
  from { opacity: .2; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  #mind-demo *, #mind-demo *::after { animation: none !important; transition: none !important; }
}
