/* 4.1: live, code-drawn excerpts of Canvo's Agent sidebar. */
.local-status-demos {
  order: 12;
  width: 100%;
  min-width: 0;
  container-type: inline-size;
}
.local-status-demos .local-shot { min-width: 0; }
.framer-ghRYx .local-status-demos .local-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.local-status-scene {
  --status-ink: #202024;
  --status-muted: rgb(32 32 36 / 55%);
  --status-faint: rgb(32 32 36 / 30%);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 400px;
  padding: 16px 12px 0;
  overflow: hidden;
  border: 1px solid rgb(12 19 27 / 5%);
  border-radius: 20px;
  background: #fff;
  color: var(--status-ink);
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  box-sizing: border-box;
}
.local-status-scene *, .local-status-scene *::before, .local-status-scene *::after { box-sizing: border-box; }
.local-status-scene-working { justify-content: center; padding-bottom: 16px; }
.local-status-scene p { margin: 0; font: inherit; color: inherit; }
.local-status-scene svg { display: block; width: 16px; height: 16px; flex-shrink: 0; }
.local-status-scene button {
  appearance: none;
  border: 0;
  margin: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.local-status-scene [hidden] { display: none !important; }
.local-status-user {
  align-self: flex-end;
  max-width: 94%;
  padding: 9px 14px;
  border-radius: 20px;
  background: #f4f4f5;
}
.local-status-message { padding: 0 8px; }
.local-status-user + .local-status-message { margin-top: 24px; }
.local-status-work { margin-top: 14px; min-width: 0; }
.local-status-scene .local-status-work-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 6px 8px;
  border-radius: 6px;
  color: rgb(32 32 36 / 85%);
  text-align: left;
}
.local-status-work-head:hover { background: rgb(32 32 36 / 4%); }
.local-status-work-head:focus-visible { outline: 2px solid #8b72d0; outline-offset: 2px; }
.local-status-work-head > span { min-width: 0; }
.local-status-work-head .local-status-work-check { color: #009b73; margin-top: 2px; }
.local-status-work-tick { stroke-dashoffset: 46; animation: local-status-tick-draw 260ms cubic-bezier(.3,.7,.4,1) 100ms forwards; }
.local-status-work-head .local-status-work-chevron {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-left: 4px;
  vertical-align: -2px;
  color: var(--status-faint);
  transition: transform 160ms ease;
}
.local-status-work-head[aria-expanded="true"] .local-status-work-chevron { transform: rotate(90deg); }
.local-status-work-list { max-height: 166px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 4px 28px; }
.local-status-work-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 27px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--status-muted);
}
.local-status-work-row svg { width: 14px; height: 14px; color: var(--status-faint); }
.local-status-work-row > span { flex-shrink: 0; white-space: nowrap; }
.local-status-work-row .local-status-work-ref {
  min-width: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  border-radius: 4px;
  padding: 2px 6px;
  background: rgb(32 32 36 / 6%);
  color: rgb(32 32 36 / 60%);
  font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.local-status-work-row .local-status-work-chevron { width: 12px; height: 12px; }
.local-status-work-item > summary { cursor: pointer; list-style: none; border-radius: 4px; }
.local-status-work-item > summary::-webkit-details-marker { display: none; }
.local-status-work-item > summary:hover { background: rgb(32 32 36 / 4%); }
.local-status-work-item > summary:focus-visible { outline: 2px solid #8b72d0; outline-offset: -2px; }
.local-status-work-item[open] .local-status-work-chevron { transform: rotate(90deg); }
.local-status-work-detail { margin: 2px 8px 6px 15px; padding: 4px 0 4px 12px; border-left: 1px solid rgb(32 32 36 / 10%); font-size: 12px; color: var(--status-muted); }
.local-status-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 8px;
  color: var(--status-muted);
}
.local-status-roll { position: relative; display: inline-block; overflow: hidden; min-width: 0; padding: 1px 0; }
.local-status-roll [data-status-label-sizer] { display: block; visibility: hidden; white-space: nowrap; user-select: none; }
.local-status-roll [data-status-label-current], .local-status-roll [data-status-label-old] {
  position: absolute;
  inset: 1px 0 auto;
  white-space: nowrap;
}
.local-status-roll [data-status-label-old] { opacity: 0; }
.local-status-roll [data-status-label-current]::after {
  content: attr(data-shimmer-label);
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 35%, color-mix(in oklab, #202024 20%, #fff) 50%, transparent 65%);
  background-size: 200% 100%;
  background-repeat: no-repeat;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: local-status-shimmer 1.4s linear infinite;
}
.local-status-roll[data-changing="true"] [data-status-label-current] { animation: local-status-roll-in 260ms cubic-bezier(.22,.61,.36,1) both; }
.local-status-roll[data-changing="true"] [data-status-label-old] { animation: local-status-roll-out 220ms cubic-bezier(.4,0,1,1) both; }
.local-status-scene time { color: var(--status-faint); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.local-status-message-tools { display: flex; gap: 14px; margin: 12px 0 0 8px; color: var(--status-faint); }
.local-status-message-tools svg { width: 14px; height: 14px; }
.local-status-footer { display: flex; flex: none; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 12px; }
.local-status-composer-crop { height: 58px; flex: none; overflow: hidden; }
.local-status-composer {
  min-height: 108px;
  padding: 12px 14px 10px;
  border: 1px solid rgb(32 32 36 / 8%);
  border-radius: 24px;
  box-shadow: 0 1px 3px rgb(32 32 36 / 4%);
  background: #fdfdfd;
}
.local-status-composer p { max-height: 3.1em; overflow: hidden; color: rgb(32 32 36 / 40%); font-size: 12px; line-height: 1.55; }
.local-status-busy { border: 1px solid rgb(32 32 36 / 10%); border-radius: 24px; background: #fff; padding: 4px; }
.local-status-scene .local-status-busy-head {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--status-muted);
  transition: background-color 140ms ease;
}
.local-status-busy-head:hover { background: rgb(32 32 36 / 4%); }
.local-status-busy-head:focus-visible { outline: 2px solid #8b72d0; outline-offset: 3px; }
.local-status-busy-head [data-status-count] { flex: 1; min-width: 0; text-align: left; line-height: 1.4; }
.local-status-busy-head .local-status-chevron { width: 13px; height: 13px; color: var(--status-faint); transition: transform 200ms; }
.local-status-busy[data-open="true"] .local-status-chevron { transform: rotate(90deg); }
.local-status-busy-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 240ms cubic-bezier(.22,1,.36,1), opacity 160ms ease; }
.local-status-busy[data-open="true"] .local-status-busy-wrap { grid-template-rows: 1fr; opacity: 1; }
.local-status-busy-wrap > div { min-height: 0; overflow: hidden; }
.local-status-task-slot {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  transition: grid-template-rows 380ms cubic-bezier(.22,1,.36,1), opacity 240ms ease, transform 380ms cubic-bezier(.22,1,.36,1);
}
.local-status-task-slot[data-active="false"] { grid-template-rows: 0fr; opacity: 0; transform: translateY(-5px); pointer-events: none; }
.local-status-task-clip { min-height: 0; overflow: hidden; }
.local-status-task { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 8px; border-radius: 20px; font-size: 12px; color: var(--status-muted); }
.local-status-task svg { color: var(--status-faint); }
.local-status-task > span { flex: 1; min-width: 0; }
.local-status-task::after { content: ""; width: 13px; flex-shrink: 0; }
.local-status-demos .local-shots figcaption { text-align: center; }
.local-status-demos[data-demo-playing="false"] *, .local-status-demos[data-demo-playing="false"] *::after { animation-play-state: paused !important; }
@keyframes local-status-shimmer { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes local-status-tick-draw { to { stroke-dashoffset: 0; } }
@keyframes local-status-roll-in { from { transform: translateY(60%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes local-status-roll-out { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-60%); opacity: 0; } }
@media (max-width: 600px) {
  .framer-ghRYx .local-status-demos .local-shots { grid-template-columns: 1fr; gap: 24px; }
  .local-status-demos .local-shot { width: 100%; max-width: 480px; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .local-status-demos *, .local-status-demos *::after { animation: none !important; transition: none !important; }
  .local-status-work-tick { stroke-dashoffset: 0; }
  .local-status-roll [data-status-label-current]::after, .local-status-roll [data-status-label-old] { display: none; }
}
