/* Automation 07 live demo: the meeting (recording and transcript), AI notes, your tools (task board and
   inbox) and the recap email as an attendee reads it. Stage chrome, controls and the tabs come from
   demo.css and site.css; every rule here is scoped under #demo and every class invented here starts
   with mt-. Layout: meeting | notes and tools side by side from 1280px; from 901 to 1279px the meeting
   sits in column one and the notes / tools carousel in column two; at 900px and below the meeting is on
   top, then the carousel. The Fernhill paper palette is set on .mt-paper only, the call palette on
   .mt-meet only; board skins set on .mt-board[data-tool]. */

#demo [hidden] {
  display: none !important;
}

#demo-stage {
  scroll-margin-top: calc(var(--topbar-h) + 24px);
}

/* ---------- Tabs: four equal pills, number, label and meta ---------- */

#demo .mt-demo-bar {
  align-items: flex-start;
}

#demo .mt-demo-bar .tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

#demo .mt-demo-bar .tab {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 3px;
  align-items: center;
  padding: 12px 20px;
  text-align: left;
}

#demo .mt-demo-bar .tab-n {
  grid-row: 1 / span 2;
}

#demo .mt-demo-bar .tab-l,
#demo .mt-demo-bar .tab-m {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#demo .mt-demo-bar .tab-l {
  grid-column: 2;
  grid-row: 1;
}

#demo .mt-demo-bar .tab-m {
  grid-column: 2;
  grid-row: 2;
}

#demo .mt-demo-bar .demo-note {
  margin-left: auto;
}

@media (max-width: 1099px) {
  #demo .mt-demo-bar .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #demo .mt-demo-bar .demo-note {
    margin-left: 0;
  }
}

@media (max-width: 639px) {
  #demo .mt-demo-bar .tab {
    grid-template-rows: auto;
    row-gap: 0;
  }

  #demo .mt-demo-bar .tab-n,
  #demo .mt-demo-bar .tab-l {
    grid-row: auto;
  }

  #demo .mt-demo-bar .tab-m {
    display: none;
  }

  #demo .mt-demo-bar .tab-l {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.2;
  }
}

/* ---------- Palettes and tokens (set on the component roots named in the brief) ---------- */

#demo .mt-grid {
  --mt-h: 560px;
  --mt-soon: hsl(50 95% 58%);
  --mt-soon-ink: hsl(50 95% 68%);
  --mt-soon-tint: hsl(50 95% 58% / 0.14);
  --mt-soon-line: hsl(50 95% 58% / 0.5);
  --mt-rec-soft: hsl(0 70% 56% / 0.14);
}

#demo .mt-meet {
  --mt-call-bg: #0e1012;
  --mt-call-tile: #181b1f;
  --mt-call-line: rgba(255, 255, 255, 0.07);
  --mt-call-text: #e8eaed;
  --mt-call-muted: #9aa0a6;
  --mt-speak: #3ddc97;
  --mt-rec: #ea4b4b;
}

#demo .mt-paper {
  --fh-paper: #faf8f3;
  --fh-card: #ffffff;
  --fh-ink: #1f1e1b;
  --fh-muted: #6f6a60;
  --fh-line: #e7e2d8;
  --fh-chip: #f1ede4;
  --fh-fern: #2f6a4f;
  --fh-fern-tint: #e3eee8;
  --fh-red: #c2412d;
  --fh-red-tint: #fbebe7;
  --fh-green: #2f8a5b;
  --fh-green-tint: #e7f3ec;
}

#demo .mt-board[data-tool="clickup"] {
  --mt-accent: #8b7cf6;
  --mt-doing: var(--mt-accent);
  --mt-card: var(--elev);
  --mt-radius: 6px;
  --mt-boardbg: var(--surface);
}

#demo .mt-board[data-tool="notion"] {
  --mt-accent: #d6d3cc;
  --mt-doing: var(--info);
  --mt-card: #202020;
  --mt-radius: 4px;
  --mt-boardbg: #191919;
}

#demo .mt-board[data-tool="trello"] {
  --mt-accent: #579dff;
  --mt-doing: var(--mt-accent);
  --mt-card: #22272b;
  --mt-radius: 8px;
  --mt-boardbg: linear-gradient(135deg, #0d2340, #1b1538);
}

/* ---------- Grid: meeting | notes and tools (1280px and up) ---------- */

#demo .mt-grid {
  position: relative;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 2.16fr);
  column-gap: 28px;
  row-gap: 12px;
}

#demo .mt-grid > .mt-nav {
  display: none;
}

#demo .mt-col-meet,
#demo .mt-col-notes,
#demo .mt-col-tools {
  min-width: 0;
  min-height: 0;
}

#demo .mt-side {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.12fr);
  gap: 24px;
  align-items: stretch;
  height: calc(var(--mt-h) + 44px);
  min-width: 0;
}

#demo .mt-label {
  min-height: 32px;
}

#demo .mt-label--tools {
  flex-wrap: wrap;
  row-gap: 8px;
}

#demo .mt-meet {
  height: var(--mt-h);
}

#demo .mt-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 3;
}

#demo .mt-th {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
}

#demo .mt-th-dot {
  fill: var(--accent);
}

#demo .mt-jump {
  position: absolute;
  left: 50%;
  top: 4px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  background: hsl(30 10% 5% / 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 0) scale(0.96);
  pointer-events: none;
  transition: opacity 0.4s var(--ease-std), transform 0.35s var(--ease-out);
}

#demo .mt-jump.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  transition: opacity 0.35s var(--ease-std), transform 0.35s var(--ease-out);
}

#demo .mt-l-short {
  display: none;
}

#demo .mt-jump-l {
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .mt-jump-t {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--bone);
}

#demo .mt-jump-t::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  box-sizing: border-box;
}

/* ---------- Meeting panel: recording card and transcript ---------- */

#demo .mt-meet {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

#demo .mt-rec {
  flex: none;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

#demo .mt-thumb {
  position: relative;
  height: 128px;
  box-sizing: border-box;
  padding: 26px 6px 22px;
  border-radius: 6px;
  background: var(--mt-call-bg);
  overflow: hidden;
}

#demo .mt-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  height: 100%;
}

#demo .mt-tile {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--av) 22%, #181b1f), #14171a);
}

#demo .mt-tile .mt-av {
  --s: 26px;
}

#demo .mt-tile-n {
  position: absolute;
  left: 4px;
  bottom: 4px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 1px 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 10.5px;
  line-height: 1.4;
  color: #fff;
}

#demo .mt-plat,
#demo .mt-dur {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
}

#demo .mt-plat {
  top: 6px;
  left: 6px;
}

#demo .mt-dur {
  right: 6px;
  bottom: 5px;
}

#demo .mt-recdot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f6368;
}

#demo .mt-recdot.is-live {
  background: var(--mt-rec);
  animation: mt-blink 1.4s ease-in-out infinite;
}

#demo .mt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

#demo .mt-play svg {
  width: 13px;
  height: 13px;
  margin-left: 2px;
}

#demo .mt-rec-t {
  text-wrap: balance;
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
}

#demo .mt-rec-m {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .mt-rec-tag {
  display: inline-flex;
  margin: 8px 0 0;
  padding: 2px 7px;
  border: 1px solid hsl(214 85% 66% / 0.5);
  border-radius: 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--info);
}

#demo .mt-rec-st {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-top: 12px;
  font-size: 14px;
  color: var(--bone-70);
}

#demo .mt-rec-ic {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--ash);
}

#demo .mt-rec[data-state="received"] .mt-rec-ic,
#demo .mt-rec[data-state="transcribing"] .mt-rec-ic {
  color: var(--accent);
}

#demo .mt-rec[data-state="done"] .mt-rec-ic {
  color: var(--ok);
}

#demo .mt-ico {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
}

#demo .mt-ico svg {
  width: 12px;
  height: 12px;
}

#demo .mt-rec-tx {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#demo .mt-rec-time {
  flex: none;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#demo .mt-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

#demo .mt-bars i {
  display: block;
  width: 2.5px;
  height: 100%;
  border-radius: 1px;
  background: var(--accent);
  animation: mt-bar 1s ease-in-out infinite;
}

#demo .mt-bars i:nth-child(2) {
  animation-delay: 0.15s;
}

#demo .mt-bars i:nth-child(3) {
  animation-delay: 0.3s;
}

#demo .mt-track {
  position: relative;
  height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

#demo .mt-track span {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out), background-color 0.4s;
}

#demo .mt-track.is-done span {
  background: var(--ok);
}

#demo .mt-tx {
  flex: 1 1 0;
  min-height: 0;
  padding: 8px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .mt-tx-h {
  position: sticky;
  top: -8px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: -8px -10px 0;
  padding: 12px 18px 6px;
  background: var(--surface);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .mt-tx-ph {
  margin: 8px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ash);
}

#demo .mt-tx-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#demo .mt-ln {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  transition: opacity 0.3s var(--ease-std), outline-color 0.3s;
}

#demo .mt-ln > .mt-av {
  margin-top: 1px;
}

#demo .mt-ln-b {
  min-width: 0;
}

#demo .mt-ln-h {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#demo .mt-ln-n {
  min-width: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--mt-call-text, var(--bone));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#demo .mt-cl {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-ln-t {
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#demo .mt-ln-x {
  margin: 3px 0 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--bone-70);
  transition: color 0.6s var(--ease-std);
}

#demo .mt-w {
  display: inline;
}

#demo .mt-ln.is-enter .mt-w {
  animation: mt-word 0.25s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 26ms);
}

#demo .mt-ln::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.12);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}

#demo .mt-ln.is-mark::before {
  transform: scaleX(1);
}

#demo .mt-ln.is-mark::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--accent);
}

#demo .mt-ln.is-mark .mt-ln-x {
  color: var(--bone);
}

#demo .mt-ln.is-skip {
  opacity: 0.45;
}

#demo .mt-ln.is-focus,
#demo .mt-ln.is-linked {
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

#demo .mt-tx.has-focus .mt-ln:not(.is-focus) {
  opacity: 0.35;
}

#demo .mt-ln:focus-visible,
#demo .mt-dec:focus-visible,
#demo .mt-act:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0;
}

#demo .mt-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-pill.is-gold {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- AI notes panel ---------- */

#demo .mt-notes {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

#demo .mt-nh {
  flex: none;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}

#demo .mt-nh-r1 {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#demo .mt-nh-tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
  color: var(--accent);
}

#demo .mt-nh-tile svg {
  width: 13px;
  height: 13px;
}

#demo .mt-nh-t {
  text-wrap: balance;
  flex: 1;
  min-width: 0;
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--bone);
}

#demo .mt-pillst {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-pillst.is-writing {
  border-color: rgb(255 255 255 / 0.4);
  color: var(--accent);
}

#demo .mt-pillst.is-complete {
  border-color: hsl(152 60% 48% / 0.4);
  color: var(--ok);
}

#demo .mt-pillst.is-tracking {
  border-color: hsl(214 85% 66% / 0.4);
  color: var(--info);
}

#demo .mt-pill-ic svg {
  width: 11px;
  height: 11px;
}

#demo .mt-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

#demo .mt-dots i {
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  animation: mt-dot 1.2s ease-in-out infinite;
}

#demo .mt-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

#demo .mt-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

#demo .mt-nh-r2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  min-width: 0;
}

#demo .mt-nh-meta {
  min-width: 0;
  overflow: hidden;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#demo .mt-stack {
  display: inline-flex;
  flex: none;
  padding-left: 6px;
}

#demo .mt-av-s {
  box-shadow: 0 0 0 1.5px var(--surface);
}

#demo .mt-stack .mt-av + .mt-av {
  margin-left: -30%;
}

#demo .mt-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

#demo .mt-cell {
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--elev);
}

#demo .mt-cell[hidden] {
  display: none !important;
}

#demo .mt-cell.is-flash {
  animation: mt-flash 0.9s ease-out;
}

#demo .mt-cell-l {
  display: block;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#demo .mt-cell-v {
  position: relative;
  display: inline-block;
  margin-top: 2px;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 17.5px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  color: var(--bone);
  white-space: nowrap;
}

#demo .mt-cell-v.is-ok {
  color: var(--ok);
}

#demo .mt-roll-out {
  position: absolute;
  left: 0;
  top: 0;
  animation: mt-roll-out 0.35s var(--ease-out) forwards;
}

#demo .mt-roll-in {
  display: block;
  animation: mt-roll-in 0.35s var(--ease-out) both;
}

#demo .mt-nb {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  padding: 4px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .mt-blk {
  position: relative;
  margin-top: 14px;
  border-radius: var(--r-lg);
}

#demo .mt-blk.is-hl {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
  animation: mt-hl 1.6s ease-out both;
}

#demo .mt-bhd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .mt-bhd::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

#demo .mt-skel {
  display: grid;
  gap: 8px;
}

#demo .mt-skel i {
  position: relative;
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--elev);
  overflow: hidden;
}

#demo .mt-skel i:nth-child(1) {
  width: 92%;
}

#demo .mt-skel i:nth-child(2) {
  width: 86%;
}

#demo .mt-skel i:nth-child(3) {
  width: 58%;
}

#demo .mt-skel i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, hsl(42 30% 94% / 0.08), transparent);
  transform: translateX(-100%);
  animation: mt-sweep 1.6s linear infinite;
}

#demo .mt-sumtext {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--bone-70);
}

#demo .mt-sumtext.is-enter .mt-w {
  animation: mt-word 0.3s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 14ms);
}

#demo .mt-list {
  display: flex;
  flex-direction: column;
}

#demo .mt-none {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

#demo .mt-dec {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 0 -6px;
  padding: 8px 6px;
  border-radius: 6px;
  outline: 1px solid transparent;
  transition: opacity 0.3s var(--ease-std), outline-color 0.3s;
}

#demo .mt-dec.is-enter {
  animation: mt-rise 0.35s var(--ease-out) both;
}

#demo .mt-dec.is-enter.is-new {
  animation: mt-rise 0.35s var(--ease-out) both, mt-glow 1.2s ease-out both;
}

#demo .mt-dec.is-linked,
#demo .mt-dec.is-focus {
  outline-color: var(--accent);
}

#demo .mt-dia {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

#demo .mt-dtx {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--bone);
}

#demo .mt-dwho {
  padding-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-act {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--elev);
  transition: opacity 0.3s var(--ease-std), border-color 0.3s, box-shadow 0.3s;
}

#demo .mt-act.is-enter {
  animation: mt-rise 0.35s var(--ease-out) both;
}

#demo .mt-act.is-enter.is-new {
  animation: mt-rise 0.35s var(--ease-out) both, mt-glow 1.2s ease-out both;
}

#demo .mt-act.is-linked {
  border-color: var(--accent);
}

#demo .mt-act.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(255 255 255 / 0.08);
}

#demo .mt-act.is-pending::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--accent) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: mt-shimbg 1.4s linear infinite;
}

#demo .mt-nb.has-focus .mt-dec:not(.is-focus),
#demo .mt-nb.has-focus .mt-act:not(.is-focus) {
  opacity: 0.4;
}

#demo .mt-act-r1 {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
}

#demo .mt-cb {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--ash);
  border-radius: 50%;
}

#demo .mt-act-t {
  min-width: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--bone);
}

#demo .mt-sync {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

#demo .mt-sync.is-ok {
  color: var(--ok);
}

#demo .mt-sync .mt-ico svg {
  width: 11px;
  height: 11px;
}

#demo .mt-act-r2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 6px;
}

#demo .mt-own {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--bone-70);
}

#demo .mt-own .mt-av {
  --s: 18px;
}

#demo .mt-duep {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--bone);
}

#demo .mt-duep .mt-ico svg {
  width: 11px;
  height: 11px;
}

#demo .mt-said {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ash);
}

#demo .mt-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: var(--ash);
}

#demo .mt-hint.is-info {
  color: var(--info);
}

#demo .mt-hint .mt-ico svg {
  width: 10px;
  height: 10px;
}

#demo .mt-quote {
  margin: 8px 0 0;
  padding: 3px 0 3px 10px;
  border-left: 2px solid var(--accent);
}

#demo .mt-quote-t {
  margin: 0;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.45;
  color: var(--bone-70);
}

#demo .mt-quote-by {
  margin: 2px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

#demo .mt-hist {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

#demo .mt-hrow {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding: 4px 0;
}

#demo .mt-hrow.is-enter {
  animation: mt-rise 0.35s var(--ease-out) both;
}

#demo .mt-hdot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--ash);
}

#demo .mt-hdot.is-soon {
  background: var(--mt-soon);
}

#demo .mt-hdot.is-over {
  background: var(--danger);
}

#demo .mt-hdot.is-ok {
  background: var(--ok);
}

#demo .mt-ht {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ash);
}

#demo .mt-htx {
  margin: 2px 0 0;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--bone);
}

#demo .mt-hsub {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bone-70);
}

#demo .mt-skip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--ash);
}

#demo .mt-skip.is-enter {
  animation: mt-rise 0.35s var(--ease-out) both;
}

#demo .mt-skip .mt-ico svg {
  width: 12px;
  height: 12px;
}

#demo .mt-nf {
  display: none;
  flex: none;
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--ash);
}

@media (hover: hover) and (min-width: 1280px) {
  #demo .mt-nf {
    display: block;
  }
}

/* ---------- Your tools: task board, switch and inbox ---------- */

#demo .mt-toolsw {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  box-sizing: border-box;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

#demo .mt-toolsw button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 9px 0 6px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  color: var(--ash);
  transition: color 0.2s, background-color 0.2s;
}

#demo .mt-toolsw button:hover {
  color: var(--bone);
}

#demo .mt-toolsw button[aria-pressed="true"] {
  background: var(--bone);
  color: var(--ink);
}

#demo .mt-tmark {
  display: grid;
  flex: none;
  place-items: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--mt-tk) 24%, transparent);
  color: var(--mt-tk);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1;
}

#demo .mt-toolsw button[aria-pressed="true"] .mt-tmark {
  background: color-mix(in srgb, var(--mt-tk) 50%, #14120f);
  color: #14120f;
}

#demo .mt-tools {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#demo .mt-board {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--mt-boardbg);
}

#demo .mt-board.is-bar {
  flex: 0 0 auto;
}

#demo .mt-bh {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

#demo .mt-board.is-bar .mt-bh {
  border-bottom: 0;
}

#demo .mt-bmark {
  display: grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border-radius: 5px;
  border: 1px solid color-mix(in srgb, var(--mt-accent) 40%, transparent);
  background: color-mix(in srgb, var(--mt-accent) 18%, transparent);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  color: var(--mt-accent);
}

#demo .mt-bname {
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
}

#demo .mt-bchips {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#demo .mt-bchips span {
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ash);
}

#demo .mt-bchips .is-on {
  background: var(--bone-70);
  color: var(--ink);
}

#demo .mt-bcount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-bcount-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ok);
}

#demo .mt-bcount-ok svg {
  width: 11px;
  height: 11px;
}

#demo .mt-bpath {
  flex-basis: 100%;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--ash);
  overflow-wrap: anywhere;
}

#demo .mt-cols {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px 8px;
}

#demo .mt-board.is-bar .mt-cols {
  display: none;
}

#demo .mt-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

#demo .mt-colh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  min-width: 0;
}

#demo .mt-status {
  min-width: 0;
  max-width: 100%;
  padding: 2px 7px;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

#demo .mt-col[data-col="todo"] .mt-status {
  background: rgba(141, 141, 147, 0.18);
  color: #c9c9cf;
}

#demo .mt-col[data-col="doing"] .mt-status {
  background: color-mix(in srgb, var(--mt-doing) 20%, transparent);
  color: var(--mt-doing);
}

#demo .mt-col[data-col="done"] .mt-status {
  background: hsl(152 60% 48% / 0.18);
  color: var(--ok);
}

#demo .mt-count {
  flex: none;
  font-size: 11.5px;
  color: var(--ash);
}

#demo .mt-cards {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 3px;
  margin: -3px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .mt-card {
  position: relative;
  flex: none;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--mt-radius);
  background: var(--mt-card);
  transition: opacity 0.3s var(--ease-std), border-color 0.3s, box-shadow 0.3s;
}

#demo .mt-card.is-out {
  opacity: 0;
  transition: opacity 0.2s var(--ease-std);
}

#demo .mt-card.is-drop {
  animation: mt-drop 0.5s var(--ease-out) both;
}

#demo .mt-card.is-drop.is-new {
  animation: mt-drop 0.5s var(--ease-out) both, mt-glow 1.6s ease-out 0.5s both;
}

#demo .mt-card-t {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--bone);
  overflow-wrap: anywhere;
}

#demo .mt-badge {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  margin: 5px 0 0;
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

#demo .mt-badge span {
  min-width: 0;
}

#demo .mt-badge .mt-ico svg {
  width: 10px;
  height: 10px;
  margin-top: 1px;
}

#demo .mt-badge.is-soon {
  color: var(--mt-soon-ink);
  background: var(--mt-soon-tint);
  border-color: var(--mt-soon-line);
}

#demo .mt-badge.is-over {
  color: var(--danger);
  background: var(--mt-rec-soft);
  border-color: hsl(0 70% 56% / 0.5);
}

#demo .mt-badge.is-enter {
  animation: mt-pop 0.3s var(--ease-out) both;
}

#demo .mt-from {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  margin-left: 0;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-from .mt-ico svg {
  width: 9px;
  height: 9px;
}

#demo .mt-card-m {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
  min-width: 0;
  margin-top: 4px;
}

#demo .mt-card-m .mt-av {
  --s: 16px;
}

#demo .mt-due {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-due .mt-ico svg {
  width: 11px;
  height: 11px;
}

#demo .mt-cmt {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font-size: 11px;
  color: var(--ash);
}

#demo .mt-cmt .mt-ico svg {
  width: 10px;
  height: 10px;
}

#demo .mt-card-cx {
  margin: 4px 0 0;
  font-size: 14px;
  font-style: italic;
  line-height: 1.4;
  color: var(--bone-70);
}

#demo .mt-card-cx.is-enter {
  animation: mt-rise 0.35s var(--ease-out) both;
}

#demo .mt-card.is-focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(255 255 255 / 0.12);
}

#demo .mt-board.has-focus .mt-card:not(.is-focus) {
  opacity: 0.4;
}

/* Inbox: the list, and the reading pane that slides over it */

#demo .mt-inbox {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: flex-grow 0.45s var(--ease-out);
}

#demo .mt-inbox.is-open {
  flex: 1 1 0;
}

#demo .mt-ih {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

#demo .mt-ih-ic {
  display: inline-flex;
  flex: none;
  color: var(--ash);
}

#demo .mt-ih-ic svg {
  width: 14px;
  height: 14px;
}

#demo .mt-ih-t {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  color: var(--bone);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#demo [data-mt-iname].is-enter {
  animation: mt-fade 0.3s ease-out both;
}

#demo .mt-ih-av {
  display: inline-flex;
  flex: none;
}

#demo .mt-ibody {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

#demo .mt-ilist {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  transition: transform 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}

#demo .mt-inbox.is-open .mt-ilist {
  transform: translateX(-24px);
  opacity: 0;
  pointer-events: none;
}

#demo .mt-read {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

#demo .mt-inbox.is-open .mt-read {
  transform: none;
}

#demo .mt-readbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 12px 0;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ash);
}

#demo .mt-readbar svg {
  width: 12px;
  height: 12px;
}

#demo .mt-mail {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line-soft);
}

#demo .mt-mail.is-seed {
  opacity: 0.8;
}

#demo .mt-mail.is-enter {
  animation: mt-mailin 0.45s var(--ease-out) both;
}

#demo .mt-mail.is-enter.is-new {
  animation: mt-mailin 0.45s var(--ease-out) both, mt-mailgold 1.6s ease-out both;
}

#demo .mt-mm {
  box-sizing: border-box;
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--elev);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--bone-70);
}

#demo .mt-mm.is-ai {
  border-color: rgb(255 255 255 / 0.45);
  color: var(--accent);
}

#demo .mt-mm.is-ai svg {
  width: 12px;
  height: 12px;
}

#demo .mt-mm.is-tool {
  border-color: color-mix(in srgb, var(--mt-tk) 40%, transparent);
  background: color-mix(in srgb, var(--mt-tk) 18%, var(--elev));
  font-family: var(--font-mono);
  color: var(--mt-tk);
}

#demo .mt-mm.is-person {
  border: 0;
  background: none;
  padding: 0;
}

#demo .mt-mm.is-grey {
  color: var(--ash);
}

#demo .mt-mb {
  min-width: 0;
}

#demo .mt-mf {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bone);
  text-overflow: ellipsis;
  white-space: nowrap;
}

#demo .mt-ms {
  display: -webkit-box;
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--bone);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#demo .mt-unread {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

#demo .mt-mp {
  margin: 2px 0 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ash);
}

#demo .mt-mr {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

#demo .mt-mtop {
  display: flex;
  align-items: center;
  gap: 5px;
}

#demo .mt-mt {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #8f897f;
  white-space: nowrap;
}

#demo .mt-tone {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

#demo .mt-tone.is-soon {
  background: var(--mt-soon);
}

#demo .mt-tone.is-over {
  background: var(--danger);
}

#demo .mt-tone.is-ok {
  background: var(--ok);
}

#demo .mt-mrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#demo .mt-stack-s {
  display: inline-flex;
}

#demo .mt-stack-s .mt-av + .mt-av {
  margin-left: -30%;
  box-shadow: 0 0 0 1.5px var(--surface);
}

#demo .mt-chipto {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ash);
  white-space: nowrap;
}

#demo .mt-chipto.is-internal {
  color: var(--info);
  border-color: hsl(214 85% 66% / 0.5);
}

/* The recap email as an attendee reads it: light paper (Fernhill palette) */

#demo .mt-paper {
  margin: 10px;
  padding: 16px 18px;
  border-radius: var(--r-lg);
  background: var(--fh-paper);
  color: var(--fh-ink);
  font-family: var(--font-sans);
}

#demo .mt-ps {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--fh-ink);
}

#demo .mt-pfrom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--fh-ink);
}

#demo .mt-pfrom .mt-mm.is-ai {
  width: 22px;
  height: 22px;
  border-color: rgb(255 255 255 / 0.45);
  background: var(--fh-chip);
}

#demo .mt-pfn {
  font-weight: 600;
}

#demo .mt-pfor {
  color: var(--fh-muted);
}

#demo .mt-pmeta {
  margin: 6px 0 0;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fh-muted);
}

#demo .mt-dlv {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--fh-line);
}

#demo .mt-dlvl {
  width: 100%;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fh-muted);
}

#demo .mt-dchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px 2px 3px;
  border: 1px solid var(--fh-line);
  border-radius: 999px;
  background: var(--fh-card);
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--fh-ink);
  opacity: 0.35;
  transition: opacity 0.35s var(--ease-std);
}

#demo .mt-dchip.is-ok {
  opacity: 1;
}

#demo .mt-dchip .mt-av {
  --s: 16px;
}

#demo .mt-dclient {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fh-muted);
}

#demo .mt-dtick {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fh-green);
  transform: scale(0);
  transition: transform 0.35s var(--ease-out);
}

#demo .mt-dtick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 3px;
  height: 5px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

#demo .mt-dchip.is-ok .mt-dtick {
  transform: scale(1);
}

#demo .mt-pb {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

#demo .mt-pb.is-on {
  opacity: 1;
  transform: none;
}

#demo .mt-pbh {
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--fh-muted);
}

#demo .mt-pbp {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fh-ink);
}

#demo .mt-pdec {
  margin: 0;
  padding: 0;
  list-style: none;
}

#demo .mt-pdec li {
  position: relative;
  margin: 5px 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--fh-ink);
}

#demo .mt-pdec li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 6px;
  height: 6px;
  background: var(--fh-fern);
  transform: rotate(45deg);
}

#demo .mt-tbl {
  border-top: 1px solid var(--fh-line);
}

#demo .mt-tr {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.9fr) auto minmax(0, 1.2fr);
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fh-line);
  font-size: 14px;
  color: var(--fh-muted);
}

#demo .mt-tr.mt-th {
  padding: 7px 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}

#demo .mt-trow {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

#demo .mt-trow.is-on {
  opacity: 1;
  transform: none;
}

#demo .mt-tt {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--fh-ink);
}

#demo .mt-to {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 14.5px;
  color: var(--fh-ink);
}

#demo .mt-to .mt-av {
  --s: 16px;
}

#demo .mt-td {
  font-size: 14px;
  white-space: nowrap;
  color: var(--fh-muted);
}

#demo .mt-tl {
  display: block;
  min-width: 0;
  font-size: 14px;
  line-height: 1.3;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--fh-fern);
}

#demo .mt-tl .mt-ico {
  display: inline-flex;
  vertical-align: -1px;
  margin-left: 3px;
}

#demo .mt-tl .mt-ico svg {
  width: 10px;
  height: 10px;
}

#demo .mt-pfoot p {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--fh-line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--fh-muted);
}

/* ---------- Under the stage ---------- */

#demo .mt-demo-foot {
  min-height: calc(1.5em * 2 + 16px);
}

#demo .mt-demo-caption {
  margin: 16px 0 0;
  max-width: 60ch;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-transform: none;
  color: var(--bone-70);
}

#demo .demo-after {
  margin-top: 8px;
}

#demo .demo-after .link-mono {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
}

/* ---------- 901 to 1279px: the meeting on the left, the carousel on the right ---------- */

@media (max-width: 1279px) {
  #demo .mt-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    --mt-h: 580px;
  }

  #demo .mt-col-meet {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  #demo .mt-grid > .mt-nav {
    display: inline-flex;
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    align-items: center;
    gap: 2px;
    width: max-content;
    box-sizing: border-box;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
  }

  #demo .mt-nav button {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ash);
    transition: color 0.2s, background-color 0.2s;
  }

  #demo .mt-nav button[aria-pressed="true"] {
    background: var(--bone);
    color: var(--ink);
  }

  #demo .mt-side {
    grid-column: 2;
    grid-row: 2;
    display: block;
    position: relative;
    height: calc(var(--mt-h) + 44px);
    overflow: hidden;
  }

  #demo .mt-side > .demo-col {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s var(--ease-out), visibility 0.6s;
  }

  #demo .mt-side > .mt-col-tools {
    transform: translateX(100%);
  }

  #demo .mt-side[data-show="tools"] > .mt-col-notes {
    transform: translateX(-100%);
  }

  #demo .mt-side[data-show="tools"] > .mt-col-tools {
    transform: none;
  }

  #demo .mt-side:not([data-show="tools"]) > .mt-col-tools,
  #demo .mt-side[data-show="tools"] > .mt-col-notes {
    visibility: hidden;
  }

  #demo .mt-meet {
    height: calc(var(--mt-h) - 8px);
  }

  #demo .demo-status,
  #demo .demo-status-text {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

/* ---------- 900px and below: the meeting on top, then the carousel ---------- */

@media (max-width: 900px) {
  #demo .mt-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    --mt-h: 470px;
  }

  #demo .demo-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  #demo .mt-col-meet {
    grid-column: auto;
    grid-row: auto;
    order: 1;
  }

  #demo .mt-grid > .mt-nav {
    grid-column: auto;
    grid-row: auto;
    order: 2;
  }

  #demo .mt-side {
    order: 3;
    height: 600px;
    grid-column: auto;
    grid-row: auto;
  }

  #demo .mt-meet {
    height: var(--mt-h);
  }
}

/* ---------- Phones: the board columns scroll sideways, the switch wraps ---------- */

@media (max-width: 600px) {
  #demo .mt-grid {
    padding: 14px;
  }

  #demo .mt-cols {
    display: flex;
    gap: 8px;
    padding: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  #demo .mt-col {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  #demo .mt-tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    padding: 9px 0;
  }

  #demo .mt-tr.mt-th {
    display: none;
  }

  #demo .mt-tr .mt-to,
  #demo .mt-tr .mt-td,
  #demo .mt-tr .mt-tl {
    font-size: 13.5px;
  }

  #demo .mt-paper {
    margin: 0;
    padding: 16px;
    border-radius: 0;
  }

  #demo .mt-ln-x,
  #demo .mt-htx,
  #demo .mt-card-cx {
    font-size: 15px;
  }

  #demo .mt-rec-t {
    font-size: 15.5px;
  }
}

@media (max-width: 600px) {
  #demo .demo-clock {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 10px;
    padding: 6px 12px;
    border-radius: var(--r-lg);
    white-space: normal;
    line-height: 1.5;
  }

  #demo .demo-clock-state {
    padding-left: 0;
    border-left: 0;
  }

  #demo .mt-nh-r1 {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  #demo .mt-nh-t {
    flex: 1 1 calc(100% - 40px);
  }

  #demo .mt-nh-r1 .mt-pillst {
    margin-left: 34px;
  }
}

@media (max-width: 480px) {
  #demo .mt-thumb {
    height: 112px;
    padding: 24px 6px 20px;
  }

  #demo .mt-label--tools .mt-toolsw {
    max-width: 100%;
  }
}

/* Stable clock and inbox heights: no layout shift when the scenario changes */
#demo .demo-clock-day,
#demo .demo-clock-time {
  font-variant-numeric: tabular-nums;
}

#demo .demo-clock-time {
  display: inline-block;
  min-width: 5.6em;
}

#demo .mt-inbox {
  min-height: 150px;
}

/* attendee chips and the avatar stack keep a gap */
#demo .mt-mrow {
  gap: 6px;
}

/* Phones: the status and the stat labels read in full; tap targets are 44px */
@media (max-width: 640px) {
  #demo .mt-demo-bar .tab {
    min-height: 44px;
  }

  #demo .mt-toolsw button {
    min-height: 44px;
  }

  #demo .mt-col-meet .demo-controls {
    flex-wrap: nowrap;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  #demo .mt-rec-tx {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  #demo .mt-l-full {
    display: none;
  }

  #demo .mt-l-short {
    display: inline;
  }
}

/* Touch: bigger targets for the switches */
@media (pointer: coarse) {
  #demo .mt-toolsw button,
  #demo .mt-nav button {
    min-height: 44px;
  }
}

/* ---------- Keyframes ---------- */

@keyframes mt-word {
  from {
    opacity: 0;
    transform: translateY(2px);
  }
}

@keyframes mt-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

@keyframes mt-pop {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}

@keyframes mt-fade {
  from {
    opacity: 0;
  }
}

@keyframes mt-drop {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
}

@keyframes mt-glow {
  from {
    box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px rgb(255 255 255 / 0.08);
  }
  to {
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0), 0 0 0 4px rgb(255 255 255 / 0);
  }
}

@keyframes mt-mailin {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}

@keyframes mt-mailgold {
  from {
    box-shadow: inset 2px 0 0 0 var(--accent);
  }
  to {
    box-shadow: inset 2px 0 0 0 transparent;
  }
}

@keyframes mt-hl {
  from {
    outline-color: var(--accent);
  }
  to {
    outline-color: transparent;
  }
}

@keyframes mt-flash {
  from {
    border-color: var(--accent);
  }
  to {
    border-color: var(--line);
  }
}

@keyframes mt-roll-out {
  to {
    opacity: 0;
    transform: translateY(-100%);
  }
}

@keyframes mt-roll-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

@keyframes mt-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes mt-shimbg {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}

@keyframes mt-dot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@keyframes mt-bar {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

@keyframes mt-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

/* ---------- Static (seeked finished state) and reduced motion: nothing animates ---------- */

#demo .mt-demo-stage.is-static *,
#demo .mt-demo-stage.is-static *::before,
#demo .mt-demo-stage.is-static *::after {
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #demo .mt-demo-stage *,
  #demo .mt-demo-stage *::before,
  #demo .mt-demo-stage *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* The gold phrase of the heading moves to its own line as a whole */
#demo .sec-title .gold-i {
  display: inline-block;
}

/* ---------- Avatars (shared rule from the brief: circle, the person's colour, dark initial) ---------- */

#demo .mt-av {
  display: inline-grid;
  flex: none;
  place-items: center;
  box-sizing: border-box;
  width: var(--s, 24px);
  height: var(--s, 24px);
  border-radius: 50%;
  background: var(--av);
  color: #14120f;
  font-family: var(--font-sans);
  font-size: calc(var(--s, 24px) * 0.46);
  font-weight: 600;
  line-height: 1;
}

#demo .mt-av.is-client {
  box-shadow: 0 0 0 1.5px var(--ink), 0 0 0 2.5px var(--ash);
}

#demo .mt-av-s.is-client,
#demo .mt-stack .mt-av.is-client {
  box-shadow: 0 0 0 1.5px var(--surface), 0 0 0 2.5px var(--ash);
}
