.task.is-recording::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ed8d79;
}

.desktop-frame[hidden],
.frame-icons[hidden],
.frame-controls[hidden],
.start-results[hidden],
.frame-selector[hidden],
.start-browser[hidden] {
  display: none !important;
}

.desktop-columns {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.desktop-columns .desktop-groups {
  pointer-events: auto;
}

#desktop-groups-right.desktop-groups-right {
  left: auto;
  right: 12px;
}

@media (max-width: 740px) {
  .desktop-columns {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 8px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
    scrollbar-width: thin;
    scrollbar-color: #9aac8b70 transparent;
  }

  .desktop-columns .desktop-groups,
  .desktop-columns #desktop-groups-right.desktop-groups-right {
    position: static;
    flex: 0 0 auto;
    width: min(342px, 100%);
    height: auto;
    max-height: none;
    padding: 12px 4px 4px;
    overflow: visible;
  }
}

.frame-heading h2 {
  padding: 0;
}

.frame-title {
  display: block;
  min-height: 22px;
  padding: 0 5px;
  border-radius: 3px;
  color: inherit;
  font: inherit;
  line-height: 22px;
  text-align: left;
  pointer-events: auto;
}

.frame-title:hover {
  background: #2d4133;
  color: #e0e9d7;
}

.frame-title:focus-visible {
  outline-offset: 1px;
}

.desktop-frame.is-collapsed {
  min-height: 26px;
  height: 26px;
}

.desktop-frame.is-collapsed .frame-toggle {
  display: none;
}

#start-button,
#toggle-all-frames {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 1px solid #ffffff35;
  border-radius: 7px;
  background: #ffffff09;
  color: #bdcbb4;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}

#start-button:hover,
#toggle-all-frames:hover {
  background: #ffffff15;
  border-color: #ffffff55;
}

.frame-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#start-button[aria-expanded="true"] {
  background: var(--accent);
  color: #24372b;
  border-color: var(--accent);
}

#start-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

#start-button img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.frame-controls {
  position: fixed;
  left: 12px;
  bottom: 56px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 80px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid #ffffff35;
  border-radius: 8px;
  background: #1b3029f5;
  box-shadow: 0 12px 32px #0005;
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
  scrollbar-color: #a4b79480 transparent;
}

.frame-controls-heading {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.frame-controls-heading h2 {
  margin: 0;
  color: #d2ddc8;
  font-size: 12px;
  font-weight: 600;
}

.start-session-actions {
  display: flex;
  flex-shrink: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ffffff1c;
}

#restart-session,
#shutdown-session {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  color: #d0dfbd;
  font-size: 11px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

#restart-session:hover,
#shutdown-session:hover {
  background: #ffffff12;
}

#close-start-menu {
  width: 26px;
  height: 24px;
  border-radius: 4px;
  color: #bdcbb4;
  font-size: 20px;
  line-height: 20px;
}

#close-start-menu:hover {
  background: #ffffff15;
}

#start-search {
  display: block;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  margin: 0 0 10px;
  padding: 9px 10px;
  border: 1px solid #ffffff35;
  border-radius: 5px;
  background: #10221c;
  color: #e8e8dc;
  font-size: 12px;
}

#start-search::placeholder {
  color: #9fb196;
}

#start-search:focus-visible {
  border-color: var(--accent);
  outline-offset: 1px;
}

.start-controls {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.start-controls h3 {
  margin: 0;
  color: #b7c7ac;
  font-size: 11px;
  font-weight: 400;
}

#menu-toggle-all {
  padding: 4px 7px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  color: #d0dfbd;
  font-size: 11px;
}

#menu-toggle-all:hover {
  background: #ffffff12;
}

.start-results {
  flex: 0 1 360px;
  min-height: 0;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #a4b79480 transparent;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-align: left;
}

.search-result:hover,
.search-result:focus-visible {
  border-color: #a4b79460;
  background: #ffffff0e;
}

.search-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 28px;
}

.search-icon img {
  width: 32px;
  height: 26px;
  border-radius: 3px;
  object-fit: contain;
}

.search-icon .external-badge {
  right: -2px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  font-size: 10px;
  line-height: 10px;
}

.search-copy {
  min-width: 0;
}

.search-copy strong,
.search-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.search-copy strong {
  color: #e4e9dd;
  font-size: 12px;
  font-weight: 500;
}

.search-copy small {
  margin-top: 3px;
  color: #a7b79d;
  font-size: 10px;
}

.start-results .menu-empty {
  margin: 8px 4px;
}

.start-browser {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  flex: 0 1 360px;
  height: 360px;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #ffffff1c;
}

.start-categories {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px 7px 2px 0;
  border-right: 1px solid #ffffff1c;
  scrollbar-width: thin;
  scrollbar-color: #a4b79480 transparent;
}

.start-category-row {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 3px;
}

.category-browse {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
  min-height: 35px;
  padding: 7px 6px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #cad7c0;
  font-size: 11px;
  text-align: left;
}

.category-browse:hover {
  background: #ffffff0d;
  border-color: #ffffff1c;
}

.category-browse[aria-current="true"] {
  border-color: #c3d69a80;
  background: #d4e5a1;
  color: #24372b;
}

.category-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.category-count {
  flex-shrink: 0;
  color: #93a58b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.category-browse[aria-current="true"] .category-count {
  color: #526448;
}

.category-arrow {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  opacity: .65;
}

.frame-visibility {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 5px;
  border: 1px solid #ffffff18;
  border-radius: 5px;
  background: #ffffff03;
  color: #879b82;
}

.frame-visibility svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.frame-visibility[aria-pressed="true"] {
  border-color: #c3d69a50;
  background: #a2bb7f18;
  color: #d5e4c1;
}

.frame-visibility:hover {
  border-color: #c3d69aa0;
  background: #a2bb7f38;
  color: #e4efd4;
}

.category-browse:focus-visible,
.frame-visibility:focus-visible,
#start-back:focus-visible {
  outline-offset: -2px;
}

.start-category-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding-left: 10px;
}

.start-category-heading {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
  min-height: 39px;
  padding: 7px 5px;
  border-bottom: 1px solid #ffffff12;
}

.start-category-heading h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #e0e8d7;
  font-size: 12px;
  font-weight: 600;
}

#start-category-count {
  color: #9daf95;
  font-size: 10px;
  white-space: nowrap;
}

#start-back {
  display: none;
  padding: 5px 7px;
  border: 1px solid #ffffff2a;
  border-radius: 4px;
  color: #d2dfc7;
  font-size: 11px;
}

#start-back:hover {
  background: #ffffff12;
}

.start-category-items {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 5px 2px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: #a4b79480 transparent;
}

.start-category-status {
  margin: 7px 5px;
  color: #9daf95;
  font-size: 10px;
}

@media (max-width: 700px) {
  #start-button,
  #toggle-all-frames {
    padding: 5px 8px;
    font-size: 11px;
  }

  #start-button {
    padding-top: 3px;
    padding-bottom: 3px;
    gap: 5px;
  }

  #start-button img {
    width: 18px;
    height: 18px;
  }

  .frame-controls {
    left: 8px;
    bottom: 72px;
    width: min(480px, calc(100vw - 16px));
    max-height: calc(100dvh - 92px);
  }
}

@media (max-width: 560px) {
  .start-browser {
    grid-template-columns: minmax(0, 1fr);
  }

  .start-categories {
    padding-right: 2px;
    border-right: 0;
  }

  .category-browse {
    min-height: 37px;
    font-size: 12px;
  }

  .start-category-panel {
    display: none;
    padding-left: 0;
  }

  .start-browser.has-selection .start-categories {
    display: none;
  }

  .start-browser.has-selection .start-category-panel {
    display: flex;
  }

  .start-category-heading {
    padding-top: 5px;
  }

  #start-back {
    display: inline-flex;
    flex: 0 0 100%;
    align-self: flex-start;
    justify-content: flex-start;
    width: max-content;
    max-width: max-content;
    margin-bottom: 3px;
  }
}

@media (max-width: 360px) {
  #start-button span {
    display: none;
  }

  #start-button {
    gap: 0;
  }
}

/* Use the official logo variant that suits each icon background. */
.glyph img[src$="chatgpt-official.svg"]{color-scheme:light}
.search-icon img[src$="chatgpt-official.svg"]{color-scheme:dark}
