[data-storyboard][hidden] {
  display: none !important;
}
.storyboard {
  margin: 12px 0;
  border: 1px solid #95ceb333;
  border-radius: 16px;
  background: #101c1c;
  color: #e8f3ef;
  min-width: 0;
}
.storyboard > summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.storyboard > summary::-webkit-details-marker {
  display: none;
}
.storyboard > summary small {
  font-size: 11px;
  color: #98b4a7;
  font-weight: 400;
  margin-left: 5px;
}
.storyboard-body {
  padding: 0 14px 14px;
}
.storyboard-toggle {
  display: flex !important;
  gap: 8px;
  align-items: center;
  font-size: 12px !important;
  margin: 0 0 12px !important;
}
.storyboard input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: #bbf86d;
}
.storyboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin-bottom: 12px;
}
.storyboard-tabs button {
  position: relative;
  min-height: 38px;
  padding: 6px 2px;
  border: 1px solid #ffffff18;
  border-radius: 9px;
  background: #172929;
  color: #adc2b8;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.storyboard-tabs button[aria-selected="true"] {
  background: #b3ed6f;
  color: #102017;
  border-color: #c5ff8c;
  font-weight: 700;
}
.storyboard-tabs i {
  position: absolute;
  right: 3px;
  top: 0;
  font-style: normal;
}
.storyboard [data-board-editor] {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}
.storyboard-frame {
  position: relative;
  min-height: 84px;
  border: 1px dashed #9adb8d66;
  border-radius: 12px;
  overflow: hidden;
  background: #07100f;
}
.storyboard-frame img {
  width: 100%;
  height: 84px;
  object-fit: cover;
  display: block;
}
.storyboard-file {
  position: absolute;
  inset: 0;
  display: flex !important;
  margin: 0 !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px;
  font-size: 11px !important;
  cursor: pointer;
  color: #ccecac !important;
  background: #06100a55;
}
.storyboard-file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.storyboard textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 84px;
  min-height: 84px;
  resize: vertical;
  border: 1px solid #ffffff22;
  border-radius: 12px;
  padding: 10px;
  background: #0b1414;
  color: #ecf7ee;
  font: inherit;
  font-size: 13px;
}
.storyboard-clear {
  grid-column: 1/-1;
  justify-self: end;
  padding: 3px;
  background: none;
  border: 0;
  color: #a9bdb2;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.storyboard-hint,
.storyboard-status {
  font-size: 11px !important;
  line-height: 1.5;
  color: #91aaa0 !important;
  margin: 10px 0 0 !important;
}
.storyboard-status {
  color: #c0e8a2 !important;
}
.storyboard :focus-visible {
  outline: 2px solid #b3ed6f;
  outline-offset: 2px;
}
#similarView:has([data-similar-kind="image"][aria-pressed="true"])
  [data-storyboard] {
  display: none;
}
@media (max-width: 380px) {
  .storyboard-tabs button {
    font-size: 10px;
  }
  .storyboard-body {
    padding: 0 10px 10px;
  }
}

.storyboard-remove {
  position: absolute;
  right: 4px;
  top: 4px;
  z-index: 2;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid #c3dcc766;
  border-radius: 50%;
  background: #07100ee6;
  color: #ecf7ee;
  font-size: 17px;
  cursor: pointer;
}
.storyboard-file:focus-within {
  outline: 2px solid #b3ed6f;
  outline-offset: -3px;
}

@media (max-width: 600px) {
  .storyboard textarea {
    font-size: 16px;
  }
}
