/* Original AI Video Production Editor shell CSS; fixed source in vendor/oss/ai-video-editor-shell. */


.app-logo {
  color: var(--app-accent);
}

.app-toolbar {
  position: relative;
  z-index: 40;
  flex: 0 0 auto;
  background: rgb(var(--app-panel-rgb) / 0.82);
  border-bottom: 1px solid var(--shell-hairline);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-app-region: drag;
  user-select: none;
}

.app-toolbar button,
.app-toolbar input,
.app-toolbar select,
.app-toolbar a,
.app-toolbar [role="menu"] {
  -webkit-app-region: no-drag;
}

.app-toolbar__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  min-height: var(--toolbar-height);
  padding: 0 0.75rem 0 calc(0.75rem + var(--traffic-light-inset));
}

.app-toolbar__leading,
.app-toolbar__trailing {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.app-toolbar__trailing {
  justify-content: flex-end;
  gap: 0.6rem;
}

.app-toolbar__center {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.app-toolbar__brand {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  flex: 0 0 auto;
  margin-left: 0.15rem;
  border-radius: 0.45rem;
  background: rgb(var(--app-accent-rgb) / 0.12);
}

.app-toolbar__crumbs {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  margin-left: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.2;
}

.app-toolbar__crumb {
  color: var(--app-text);
  font-weight: 650;
  white-space: nowrap;
}

.app-toolbar__crumb--muted {
  color: var(--app-muted);
  font-weight: 500;
}

.app-toolbar__crumb-sep {
  width: 0.8rem;
  height: 0.8rem;
  align-self: center;
  color: var(--app-muted);
  opacity: 0.6;
}

.app-toolbar__crumb-hint {
  overflow: hidden;
  margin-left: 0.35rem;
  color: var(--app-muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-group {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 0.55rem;
  background: rgb(var(--app-muted-rgb) / 0.08);
}

.toolbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0 0.6rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--app-muted);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease;
}

.toolbar-button--icon {
  width: 1.85rem;
  padding: 0;
}

.toolbar-button--text {
  color: var(--app-accent);
}

.toolbar-button:hover:not(:disabled) {
  background: var(--shell-hover);
  color: var(--app-text);
}

.toolbar-button:active:not(:disabled) {
  background: rgb(var(--app-muted-rgb) / 0.16);
}

.toolbar-button:disabled {
  opacity: 0.35;
  cursor: default;
}

.toolbar-button:focus-visible,
.toolbar-project:focus-visible,
.toolbar-segmented__item:focus-visible,
.toolbar-activity:focus-visible,
.toolbar-avatar:focus-visible {
  outline: 2px solid rgb(var(--app-accent-rgb) / 0.7);
  outline-offset: 1px;
}

.toolbar-project {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(28rem, 40vw);
  min-height: 1.95rem;
  padding: 0 0.5rem 0 0.6rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: rgb(var(--app-muted-rgb) / 0.08);
  color: var(--app-text);
  transition: background 120ms ease, border-color 120ms ease;
}

.toolbar-project:hover,
.toolbar-project[aria-expanded="true"] {
  background: rgb(var(--app-muted-rgb) / 0.14);
  border-color: var(--shell-hairline);
}

.toolbar-project__icon {
  flex: 0 0 auto;
  color: var(--app-muted);
}

.toolbar-project__name {
  overflow: hidden;
  font-size: 0.84rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-project__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
  padding-left: 0.4rem;
  border-left: 1px solid var(--shell-hairline);
  color: var(--app-muted);
  font-size: 0.72rem;
  font-weight: 550;
  white-space: nowrap;
}

.toolbar-project__dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: currentColor;
}

.toolbar-project__status--ready { color: var(--app-success); }
.toolbar-project__status--busy { color: var(--app-accent-strong); }
.toolbar-project__status--attention { color: var(--app-warm); }

.toolbar-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
  padding: 0.15rem;
  border-radius: 0.55rem;
  background: rgb(var(--app-muted-rgb) / 0.08);
}

.toolbar-segmented__item {
  min-height: 1.6rem;
  padding: 0 0.62rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.42rem;
  background: transparent;
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.toolbar-segmented__item:hover {
  color: var(--app-text);
}

.toolbar-segmented__item--active {
  background: var(--app-panel);
  color: var(--app-text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 0 0 1px var(--shell-hairline);
}

.toolbar-activity {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.85rem;
  padding: 0 0.7rem 0 0.6rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgb(var(--app-muted-rgb) / 0.08);
  color: var(--app-muted);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.toolbar-activity:hover,
.toolbar-activity--open {
  background: rgb(var(--app-muted-rgb) / 0.14);
  color: var(--app-text);
}

.toolbar-activity__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--app-muted);
  opacity: 0.7;
}

.toolbar-activity--busy .toolbar-activity__dot { background: var(--app-accent-strong); opacity: 1; animation: pulse-dot 1.4s ease-in-out infinite; }
.toolbar-activity--attention .toolbar-activity__dot { background: var(--app-warm); opacity: 1; }
.toolbar-activity--ready .toolbar-activity__dot { background: var(--app-success); opacity: 1; }
.toolbar-activity--error .toolbar-activity__dot { background: var(--app-danger); opacity: 1; }
.toolbar-activity--attention { color: var(--app-text); border-color: rgb(var(--app-warm-rgb) / 0.35); background: rgb(var(--app-warm-rgb) / 0.12); }
.toolbar-activity--error { color: var(--app-text); background: rgb(221 124 124 / 0.14); }

.toolbar-avatar {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--shell-hairline);
  border-radius: 999px;
  background: rgb(var(--app-accent-rgb) / 0.16);
  color: var(--app-text);
  overflow: hidden;
  transition: box-shadow 120ms ease;
}

.toolbar-avatar:hover,
.toolbar-avatar[aria-expanded="true"] {
  box-shadow: 0 0 0 3px rgb(var(--app-accent-rgb) / 0.18);
}

.toolbar-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toolbar-avatar__initial {
  font-size: 0.78rem;
  font-weight: 700;
}

.toolbar-popover {
  position: absolute;
  top: calc(100% + 0.45rem);
  z-index: 60;
  width: 18rem;
  max-width: calc(100vw - 1.5rem);
  padding: 0.3rem;
}

.toolbar-popover--right { right: 0; }
.toolbar-popover--center { left: 50%; transform: translateX(-50%); }

.app-toolbar__drawer {
  padding: 0 0.75rem 0.65rem;
  border-top: 1px solid var(--shell-hairline);
  animation: fadeIn 140ms ease-out;
}

.app-sidebar {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  width: var(--sidebar-width);
  min-height: 0;
  background: rgb(var(--app-panel-rgb) / 0.55);
  border-right: 1px solid var(--shell-hairline);
  transition: width 160ms ease;
  user-select: none;
}

.app-sidebar--collapsed {
  width: var(--sidebar-width-collapsed);
}

.app-sidebar__scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.6rem 0.5rem 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

.app-sidebar__group + .app-sidebar__group {
  margin-top: 0.85rem;
}

.app-sidebar__label {
  display: flex;
  align-items: center;
  min-height: 1.4rem;
  padding: 0 0.55rem;
  margin-bottom: 0.15rem;
  color: var(--app-muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar--collapsed .app-sidebar__label {
  justify-content: center;
  padding: 0;
  margin-bottom: 0.2rem;
}

.app-sidebar--collapsed .app-sidebar__label span {
  display: block;
  width: 1.4rem;
  height: 1px;
  background: var(--shell-hairline);
  overflow: hidden;
  color: transparent;
}

.app-sidebar__list {
  display: grid;
  gap: 0.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-sidebar__item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 1.85rem;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--app-text);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: left;
  transition: background 100ms ease, color 100ms ease;
}

.app-sidebar__item:hover {
  background: var(--shell-hover);
}

.app-sidebar__item--active {
  background: var(--shell-selected);
  color: var(--app-text);
  font-weight: 600;
}

.app-sidebar__item--active:hover {
  background: var(--shell-selected-strong);
}

.app-sidebar__item:focus-visible {
  outline: 2px solid rgb(var(--app-accent-rgb) / 0.7);
  outline-offset: -2px;
}

.app-sidebar__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--app-muted);
}

.app-sidebar__item--active .app-sidebar__icon {
  color: var(--app-accent-strong);
}

.app-sidebar__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-sidebar--collapsed .app-sidebar__item {
  justify-content: center;
  padding: 0.35rem 0;
}

.app-sidebar--collapsed .app-sidebar__text,
.app-sidebar--collapsed .app-sidebar__project-text {
  display: none;
}

.app-sidebar__group-hook {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  pointer-events: none;
}

.app-sidebar__footer {
  display: grid;
  gap: 0.2rem;
  padding: 0.5rem;
  border-top: 1px solid var(--shell-hairline);
}

.app-sidebar__project {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.6rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--app-text);
  text-align: left;
  transition: background 100ms ease, border-color 100ms ease;
}

.app-sidebar__project:hover {
  background: var(--shell-hover);
  border-color: var(--shell-hairline);
}

.app-sidebar--collapsed .app-sidebar__project {
  justify-content: center;
  padding: 0.35rem 0;
}

.app-sidebar__project-icon {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  border-radius: 0.42rem;
  background: rgb(var(--app-accent-rgb) / 0.14);
  color: var(--app-accent-strong);
}

.app-sidebar__project-text {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.app-sidebar__project-name {
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-sidebar__project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--app-muted);
  font-size: 0.7rem;
}

.app-sidebar__project-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: currentColor;
}

.app-sidebar__project-status--ready { color: var(--app-success); }
.app-sidebar__project-status--busy { color: var(--app-accent-strong); }
.app-sidebar__project-status--attention { color: var(--app-warm); }

.app-sidebar__item--utility {
  color: var(--app-muted);
}

.app-sidebar__item--utility:hover {
  color: var(--app-text);
}

.toolbar-activity__progress {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: rgb(var(--app-muted-rgb) / 0.2);
  overflow: hidden;
}
.toolbar-activity { position: relative; }
.toolbar-activity__progress span { display: block; height: 100%; border-radius: 999px; background: var(--app-accent-strong); transition: width 600ms ease; }
.studio-workspace ::-webkit-scrollbar, .project-hub ::-webkit-scrollbar, .app-sidebar__scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.studio-workspace ::-webkit-scrollbar-thumb, .project-hub ::-webkit-scrollbar-thumb, .app-sidebar__scroll::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgb(var(--app-muted-rgb) / 0.35); background-clip: padding-box; }
.app-sidebar__label { font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; }
.app-sidebar__item { min-height: 2rem; font-size: var(--fs-sm); }
